-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Variable Fieldpath can't reference key name with dashes #3421
Comments
kustomize/api/internal/wrappy/wnode.go Line 67 in 735befe
In kustomize version >= v3.9, we just simply split the field path by BTW, we are planning to remove |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
Rotten issues close after 30d of inactivity. Send feedback to sig-contributor-experience at kubernetes/community. |
@fejta-bot: Closing this issue. In response to this:
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. |
What is the solution for this? My ingress: apiVersion: networking.k8s.io/v1
kind: Ingress
ingressClassName: traefik
metadata:
name: longhorn-ingress
annotations:
external-dns.alpha.kubernetes.io/target: $(DNS) My replacement: replacements:
- source:
kind: Ingress
fieldPath: metadata.annotations.dns
name: longhorn-ingress
targets:
- select:
kind: Ingress
name: longhorn-ingress
fieldPaths:
- metadata.annotations[external-dns.alpha.kubernetes.io/target] I have tried wrapping it with quotes. No success. |
I had the same problem and solved it with this tip: #1256 (comment) I used (workaround) |
Describe the bug
I have a kustomize variable which was working until a recent update. Now the variables are misbehaving for strange reasons.
Files that can reproduce the issue
Here is the var in my
kustomization.yaml
Then here is the corresponding PV with the label
pv.yaml
Expected output
I expect the variable to be able to reference any key even with special characters in the name
Actual output
Kustomize version
Platform
Tested on Mac and Windows, both had the issue
Additional context
I pretty much determined it's the dash because below works:
... so long as there are no dashes
-
, a key can be referenced even with dots and slashes in the nameThe text was updated successfully, but these errors were encountered: