fluxcd-community / helm-charts

Community maintained Helm charts for Flux
Apache License 2.0
121 stars 76 forks source link

Ability to set name for gitrepository and kustomization #209

Open grzegorzgniadek opened 8 months ago

grzegorzgniadek commented 8 months ago

Is your feature request related to a problem ?

Allow flux2-sync to set gitrepository and kustomization .metadata.name

Describe the solution you'd like.

metadata:
  name: {{ .Values.gitRepository.name | default .Release.Name  }}

in flux-gitrepository.yaml and

metadata:
  name: {{ .Values.kustomization.name | default .Release.Name  }}
sourceRef:
  kind: GitRepository
  name:  {{ .Values.gitRepository.name | default .Release.Name  }}

in flux-kustomization.yaml

Describe alternatives you've considered.

None

Additional context.

No response

davralin commented 2 hours ago

There's an active PR for this, testers wanted?