Targeting the base of an overlay set #5513
Unanswered
randeepbydesign
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a service
dummy-service
that deploys via a helmchart.Based on traffic pattern, I need to deploy the same image as a different service with a different configuration. So I create a dummy-service-rock service with a similar setup:
The definition for my replica rock service:
and I make all services referential from an env kustomization:
Now let's say I want to modify the base service only in the dev env.
For the purpose of this example, let's say when I deploy to the dev env I want to add an env variable to the list of vars available:
The problem is... no matter what value I use for target, it modifies both dummy-service and dummy-service-rock.
I've tried the following permutations for target.name:
dummy-service
^dummy-service$
".+service$"
But all of them modify both main and rock configurations. On the other hand, if I target rock only with:
.+-rock$
dummy-service-rock
^dummy-service-rock$
it modifies rock and leaves main alone. Can someone point me in the right direction here? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions