flagger icon indicating copy to clipboard operation
flagger copied to clipboard

feat(charts): adding extraDeploy key for additional k8s objects

Open sc250024 opened this issue 9 months ago • 1 comments

This adds an extraDeploy key to the chart, enabling users to attach additional Kubernetes manifests to the deployment as needed. The extra-deploy.yaml and render function were lifted from the Bitnami charts, which do the same thing.

  • https://github.com/bitnami/charts/blob/03e195bff6757cc3f7ceef76e6179d51d0be8a4e/bitnami/wordpress/templates/extra-list.yaml
  • https://github.com/bitnami/charts/blob/03e195bff6757cc3f7ceef76e6179d51d0be8a4e/bitnami/common/templates/_tplvalues.tpl#L7-L24

The reasoning for this is that my company uses a CRD linked with Backstage for ownership over certain components in Kubernetes. For owning this resource, we would need to deploy extra templates alongside this component.

sc250024 avatar Apr 01 '25 14:04 sc250024

~~@stefanprodan @aryan9600 Could this be included in the https://github.com/fluxcd/flagger/pull/1788 release?~~

Nevermind

sc250024 avatar Apr 01 '25 14:04 sc250024