Replies: 2 comments
-
This could maybe also realized via kustomize plugins. However, they are not available in Flux due to security reasons: But nevertheless, I think some sort of pre-processing a source must be possible? |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am currently trying to build a new controller which consumes events from the
source-controller
to get notified about new commits in aGitRepository
.This new controller fetches the latest artifact from the
GitRepository
and then performs some transformation/evaluation of the repository contents.I would like to make these evaluated contents available as a source so it can be consumed by the other controllers in the GOTK (e.g.
kustomize-controller
orhelm-controller
).Background
I am using a Nix Flake to declare my Kubernetes resources.
My custom controller is running
nix build
to evaluate my Nix expressions which return a the usual K8S & Flux resources.Possible Approaches
GitRepository
or another branch of the source repoOCIRepository
orBucket
GitRepository
, and manually update its.status.artifact
attribute to point to my controller.The last point brings me to my main question:
Does
the kustomize-controller
and/orhelm-controller
support custom source CRDs?References
In this video a similar approach is presented using ArgoCD and its hooks:
https://media.ccc.de/v/nixcon-2023-35290-nix-and-kubernetes-deployments-done-right
Also interesting:
Beta Was this translation helpful? Give feedback.
All reactions