Skip to content

Conversation

@euven
Copy link

@euven euven commented Aug 27, 2024

No description provided.

@euven
Copy link
Author

euven commented Aug 27, 2024

@FabianKramm I also note that there's no default set for ingress.ingressClassName in values.yaml. Do you want me to add one there as part of this too?

Comment on lines +64 to +65
acme.cert-manager.io/http01-ingress-class: {{ $.Values.ingress.ingressClassName | default "nginx" | quote }}
certmanager.k8s.io/http01-ingress-class: {{ $.Values.ingress.ingressClassName | default "nginx" | quote }}
Copy link

@zerbitx zerbitx Oct 31, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rather than replacing here, could you change it to coalesce so its backward compatible with anyone still using the ingressClass value?

Could we also add a version check, something like:

{{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion -}}
  {{- if $.Values.ingress.ingressClassName }}
  ingressClassName: {{ $.Values.ingress.ingressClassName }}
  {{- end }}
{{- end}} 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants