New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merge Key Language-Independent Type support for YAML anchor/alias #4215
Comments
@RE-codes: This issue is currently awaiting triage. SIG CLI takes a lead on issue triage for this repo, but any Kubernetes member can accept issues by applying the The Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
/remove-lifecycle stale |
Closed by #4383 |
Describe the bug
Following up on #3675. I have found anchor/alias support improved. However, when using Merge Key Language-Independent Type notation (i.e.
<<: *some_anchor
) I am presented with this error:Error: map[string]interface {}{"apiVersion":"apps/v1", "kind":"Deployment", "metadata":map[string]interface {}{"annotations":map[string]interface {}{"annotation1":"annotation1", "annotation2":"annotation2", "annotation3":"annotation3"}, "labels":map[string]interface {}{"app":"myApp", "label1":"label1", "label2":"label2", "label3":"label3"}, "name":"myApp", "namespace":"app-namespace"}, "spec":map[string]interface {}{"replicas":3, "selector":map[string]interface {}{"matchLabels":map[string]interface {}{"app":"myApp"}}, "template":map[string]interface {}{"copy-of-metadata":map[string]interface {}{"annotations":map[string]interface {}{"annotation1":"annotation1", "annotation2":"annotation2", "annotation3":"annotation3"}, "labels":map[string]interface {}{"app":"myApp", "label1":"label1", "label2":"label2", "label3":"label3"}, "name":"myApp", "namespace":"app-namespace"}, "metadata":map[string]interface {}{"annotations":map[interface {}]interface {}{"annotation1":"annotation1", "annotation2":"annotation2", "annotation3":"annotation3", "annotation4":"annotation4"}, "labels":map[string]interface {}{"app":"myApp", "label1":"label1", "label2":"label2", "label3":"label3"}, "name":"myApp", "namespace":"app-namespace"}, "spec":map[string]interface {}{"containers":[]interface {}{map[string]interface {}{"image":"some-registry/some-namespace/myApp:latest", "name":"myApp"}}, "imagePullSecrets":[]interface {}{map[string]interface {}{"name":"some_secret"}}}}}}: json: unsupported type: map[interface {}]interface {}
Files that can reproduce the issue
kustomization.yaml
test-deployment.yaml
Expected output
Actual output
See error message above.
Kustomize version
{Version:kustomize/v4.4.0 GitCommit:63ec6bdb3d737a7c66901828c5743656c49b60e1 BuildDate:2021-09-27T16:13:36Z GoOs:darwin GoArch:amd64}
Platform
macOS Big Sur
Additional context
The same error is noted in #4212.
The text was updated successfully, but these errors were encountered: