Skip to content

Commit ed29ba0

Browse files
authored
fix: Wrong typo in capabilities
* Ref: https://helm.sh/docs/chart_template_guide/function_list/#semantic-version-functions * Capabilities.KubeVersion and Capabilities.KubeVersion.Version is the Kubernetes version as a built-in object: https://helm.sh/docs/chart_template_guide/builtin_objects/
1 parent 1a797ff commit ed29ba0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

charts/docker-mailserver/templates/deployment.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ spec:
128128

129129
resources:
130130
{{ toYaml .Values.deployment.resources | indent 12 }}
131-
{{- if and .Values.deployment.resizePolicy (semverCompare ">=1.33-0" .Capabilities.KubeVersion.GitVersion) }}
131+
{{- if and .Values.deployment.resizePolicy (semverCompare ">=1.33-0" .Capabilities.KubeVersion.Version) }}
132132
resizePolicy:
133133
{{ toYaml .Values.deployment.resizePolicy | indent 12 }}
134134
{{- end }}
@@ -276,7 +276,7 @@ spec:
276276
protocol: TCP
277277
resources:
278278
{{ toYaml .Values.metrics.resources | indent 12 }}
279-
{{- if and .Values.metrics.resizePolicy (semverCompare ">=1.33-0" .Capabilities.KubeVersion.GitVersion) }}
279+
{{- if and .Values.metrics.resizePolicy (semverCompare ">=1.33-0" .Capabilities.KubeVersion.Version) }}
280280
resizePolicy:
281281
{{ toYaml .Values.metrics.resizePolicy | indent 12 }}
282282
{{- end }}

0 commit comments

Comments
 (0)