Skip to content
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

Allow ability to override a components namespace when imported into a bundle. #442

Closed
zachariahmiller opened this issue Feb 20, 2024 · 2 comments · Fixed by #539
Closed
Assignees
Labels
enhancement New feature or request

Comments

@zachariahmiller
Copy link
Contributor

Is your feature request related to a problem? Please describe

I would like to be able to override the namespace a chart in a zarf package is deploying into when i create a bundle. Currently in zarf, namespace is a mandatory field and depending on the use case that makes it difficult to reuse packages. For example

This package is used for dev dependencies in the SWF individual packages. For SWF integration, i cannot use this package as it stands today because it just deploys over/overwrites itself in the dev-postgres namespace.

Describe the solution you'd like

something like:

kind: UDSBundle
metadata:
  name: uds-stuff
  version: dev

packages:
  - name: dev-postgres
    repository: ghcr.io/defenseunicorns/packages/uds/dev-postgres
    ref: 0.0.1
  - name: dev-postgres-sonarqube
    repository: ghcr.io/defenseunicorns/packages/uds/dev-postgres
    ref: 0.0.1
    overrides:
      postgres:
        postgresql:
          namespace: dev-postgres-sonarqube

I dont feel strongly about the syntax at all except for a general desire for it to be as simple and clear as possible.

Describe alternatives you've considered

For the example case i've entertained using the zalando operator instead of the existing chart. Also creating multiple duplicae optional components in the source zarf package that override the namespace

Additional context

I can see multiple places where this might break down/would still very much depend on how the upstream package was composed. For example, in the common dev postgres chart, the zarf package does a wait on the cluster resource that also depends on knowing the namespace

@zachariahmiller zachariahmiller added the enhancement New feature or request label Feb 20, 2024
@zachariahmiller
Copy link
Contributor Author

Just a note a more reasonable (not dev dependency) example of this issue is reuse of the gitlab runner package https://github.com/defenseunicorns/uds-package-gitlab-runner

@UncleGedd UncleGedd self-assigned this Mar 28, 2024
@UncleGedd
Copy link
Collaborator

Relates to #372

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants