Replies: 1 comment 4 replies
-
Variable substitution are a post build action, so you can't use vars in some patch target nor anywhere in the kustomization.yaml fields. The API naming should make this clear, as it's under |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
I may be doing something wrong, but it looks like flux variable substitution and patching resources doesn't really work. Here's my example with a Gateway:
The
_base
kustomization is then used by actual cluster kustomizations.There seems to be a problem when
${gateway_name}
variable placeholder is used in the patch.If my base
gateway.yaml
kustomization doesn't specify the patch,${gateway_name}
inGateway
'smetadata.name
is substituted properly, andGateway
with the namefrontend
and thedummy
listener is created.If I specify the patch as above (with
target.name
set to${gateway_name}
), the patch silently doesn't get applied.If I set patch
target.name
tofrontend
explicitly, the patch still doesn't get applied.Only if I set both the patch
target.name
andGateway
'smetadata.name
explicitly tofrontend
does the patch get applied. Is this a bug, or am I doing something wrong here?Beta Was this translation helpful? Give feedback.
All reactions