rimusz / charts

Helm Charts for Kubernetes
MIT License
90 stars 70 forks source link

gcloud-sqlproxy - HPA kind #142

Closed tasnyc closed 11 months ago

tasnyc commented 1 year ago

Is this a BUG REPORT or FEATURE REQUEST? (choose one): BUG

If this is a BUG REPORT, please:

Version of Helm and Kubernetes: helm: 3.13.0 kubernetes: 1.24

Which chart: gcloud-sqlproxy:0.25.2

What happened: Template is setting my HPA kind as Deployment even though in my values.yaml file i have useStatefulset: true.

What you expected to happen: Should set the HPA kind as Statefulset instead of Deployment

Possible Fix: Probably just need an if else statement depending on what useStatefulset is set to in the values.yaml file.

Thank you

tasnyc commented 1 year ago

gcloud-sqlproxy/templates/horizontalpodautoscaler.yaml

  {{- if .Values.useStatefulset }}
    kind: Statefulset
  {{- else }}
    kind: Deployment
  {{- end }}