-
Notifications
You must be signed in to change notification settings - Fork 617
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
flux diff fails if the namespace does not exist #3270
Comments
The
|
Flux behaves like |
+1 on this. Given that Flux (and GitOps in general) champions a fully declarative model (vs the imperative nature of We're running Currently, our CI pipeline fails (with a false negative) and refuses to show us a useful diff unless we explicitly create the required namespace(s) first via As a side note, more granular detail in the diff would be amazing if possible (especially being able to drill down into changes resulting from updating |
Applying with the Wouldn't adding a dry-run capability on the |
Something like
would be nice to allow downstream CI workflows to display/inspect infra changes 🔬 |
I think |
My goal with
I agree that behaving differently from |
Describe the bug
If a namespace does not exist the diff fails with the resources complaining that the namespace does not exist.
I've tried this on k8s 1.22, and 1.24 with same result.
Steps to reproduce
Create the following files
Then running
Expected behavior
I expected to show the resources that would be created
Screenshots and recordings
No response
OS / Distro
Linux x1c 5.19.0-2-amd64 #1 SMP PREEMPT_DYNAMIC Debian 5.19.11-1 (2022-09-24) x86_64 GNU/Linux
Flux version
0.35.0 and 0.36.0
Flux check
► checking prerequisites
✔ Kubernetes 1.24.2 >=1.20.6-0
► checking controllers
✔ helm-controller: deployment ready
► ghcr.io/fluxcd/helm-controller:v0.26.0
✔ kustomize-controller: deployment ready
► ghcr.io/fluxcd/kustomize-controller:v0.30.0
✔ notification-controller: deployment ready
► ghcr.io/fluxcd/notification-controller:v0.28.0
✔ source-controller: deployment ready
► ghcr.io/fluxcd/source-controller:v0.31.0
► checking crds
✔ alerts.notification.toolkit.fluxcd.io/v1beta1
✔ buckets.source.toolkit.fluxcd.io/v1beta2
✔ gitrepositories.source.toolkit.fluxcd.io/v1beta2
✔ helmcharts.source.toolkit.fluxcd.io/v1beta2
✔ helmreleases.helm.toolkit.fluxcd.io/v2beta1
✔ helmrepositories.source.toolkit.fluxcd.io/v1beta2
✔ kustomizations.kustomize.toolkit.fluxcd.io/v1beta2
✔ ocirepositories.source.toolkit.fluxcd.io/v1beta2
✔ providers.notification.toolkit.fluxcd.io/v1beta1
✔ receivers.notification.toolkit.fluxcd.io/v1beta1
✔ all checks passed
Git provider
No response
Container Registry provider
No response
Additional context
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: