kubebuilder
kubebuilder copied to clipboard
(helm/v1-alpha) Add ignore flags when generating charts
trafficstars
What do you want to happen?
Motivated by this discussion.
Today, when we want to use the helm plugin, the values.yaml is scaffolled with many defaults settings that the develope may not want to have (promtheus, some samples CRs, ...).
Our proposal is to implement ignore- flags that could be used when generating the values.yaml. The flags could be the following:
ignore-samplesignore-prometheusignore-networkPolicyignore-certmanagerignore-webhook
How to implement it?
Here is my proposal:
-
Add the flags here: https://github.com/kubernetes-sigs/kubebuilder/blob/e9beffb5926f8fcf1abf97ada7ae3a3c675d0591/pkg/plugins/optional/helm/v1alpha/edit.go#L31-L34
-
Add one function per flag in this file in order to not add the settings to the scaffold if the
ignoreflag is specified
Extra Labels
No response