Skip to content

Commit

Permalink
fix: use consistent k8s API semver comparison logic (opensearch-proje…
Browse files Browse the repository at this point in the history
…ct#19)

This is required to work around bugs in the version string returned by
kubernetes distros such as EKS and GKE, where they have invalid Semantic
Version strings. See helm/helm#3810.
  • Loading branch information
smlx committed Sep 21, 2021
1 parent 7c04d1e commit f0d8f50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion charts/opensearch-dashboards/templates/ingress.yaml
Expand Up @@ -29,7 +29,7 @@ spec:
{{- end }}
{{- end }}
rules:
{{- if semverCompare ">=1.19" .Capabilities.KubeVersion.Version -}}
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.Version -}}
{{- range .Values.ingress.hosts }}
- host: {{ .host | quote }}
http:
Expand Down

0 comments on commit f0d8f50

Please sign in to comment.