Skip to content

Commit da848cb

Browse files
author
cleverhu
authored
[bitnami/haproxy] optimize annos (#13121)
Signed-off-by: cleverhu <shouping.hu@daocloud.io> Signed-off-by: cleverhu <shouping.hu@daocloud.io>
1 parent 6459075 commit da848cb

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

bitnami/haproxy/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ name: haproxy
2323
sources:
2424
- https://github.com/bitnami/containers/tree/main/bitnami/haproxy
2525
- https://github.com/haproxytech/haproxy
26-
version: 0.6.1
26+
version: 0.6.2

bitnami/haproxy/templates/ingress.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,15 @@ metadata:
88
{{- if .Values.commonLabels }}
99
{{- include "common.tplvalues.render" (dict "value" .Values.commonLabels "context" $) | nindent 4 }}
1010
{{- end }}
11+
{{- if or .Values.commonAnnotations .Values.ingress.annotations }}
1112
annotations:
1213
{{- if .Values.commonAnnotations }}
1314
{{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
1415
{{- end }}
1516
{{- if .Values.ingress.annotations }}
1617
{{- include "common.tplvalues.render" (dict "value" .Values.ingress.annotations "context" $) | nindent 4 }}
1718
{{- end }}
19+
{{- end }}
1820
spec:
1921
{{- if and .Values.ingress.ingressClassName (eq "true" (include "common.ingress.supportsIngressClassname" .)) }}
2022
ingressClassName: {{ .Values.ingress.ingressClassName | quote }}

bitnami/haproxy/templates/service.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,15 @@ metadata:
1212
{{- if .Values.service.labels }}
1313
{{- include "common.tplvalues.render" (dict "value" .Values.service.labels "context" $) | nindent 4 }}
1414
{{- end }}
15+
{{- if or .Values.service.annotations .Values.commonAnnotations }}
1516
annotations:
1617
{{- if .Values.service.annotations }}
1718
{{- include "common.tplvalues.render" ( dict "value" .Values.service.annotations "context" $ ) | nindent 4 }}
1819
{{- end }}
1920
{{- if .Values.commonAnnotations }}
2021
{{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
2122
{{- end }}
23+
{{- end }}
2224
spec:
2325
type: {{ .Values.service.type }}
2426
{{- if .Values.clusterIP }}

0 commit comments

Comments
 (0)