-
Notifications
You must be signed in to change notification settings - Fork 175
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
Ability to control deploy-to namespace using a Zarf Variable #2407
Comments
I've achieved this by defining Warning: Zarf will only be able to deploy one version of such deployment, deleting any previous one using same package. |
Do you know if there is a way to template the zarf package name? In our case, we're wanting to deploy the same package twice to a single cluster without overriding the previous. |
We get the same problem but worse (can't override at the UDS bundle level(?)) with the onDeploy wait commands. They're often used like this to ensure the system is totally up: actions:
onDeploy:
after:
- description: Validate Valkey Package
maxTotalSeconds: 300
wait:
cluster:
kind: packages.uds.dev
name: valkey
condition: "'{.status.phase}'=Ready"
namespace: valkey
- description: Valkey to be Healthy
maxTotalSeconds: 90
wait:
cluster:
kind: pod
name: app.kubernetes.io/name=valkey
condition: Ready
namespace: valkey The problem is this is hardcoded now into the package, and at the bundle level I may be redeploying to a different namespace. The consequence is that I have to override both of the component namespaces (as mentioned above) and these on-deploy values. It makes this layer of encapsulation rather porous. To speak outside of UDS terms, if you're trying to deploy a package down the road, this kind of hard-coded build-time namespace declaration is a pain. If I could just reference a Zarf var in this package config I think I could fix it (it's always |
Related zarf-dev/proposals#18 |
Is your feature request related to a problem? Please describe.
I have to deploy the same zarf package more than once to the same cluster, using a different namespace each time. The number of deployments needed and namespace names are both not always known in advance.
Describe the solution you'd like
NAMESPACE
and a zarf.yaml component like:zarf package deploy --set NAMESPACE=foo
is run and followed byzarf package deploy --set NAMESPACE=bar
Describe alternatives you've considered
The text was updated successfully, but these errors were encountered: