Skip to content

Commit 823da14

Browse files
feat: keep GatewayClass on uninstall via helm.sh/resource-policy when it's the default (#1283)
Signed-off-by: Md. Istiak <mdistiak@appscode.com> Signed-off-by: Arnob kumar saha <arnob@appscode.com> Co-authored-by: Arnob kumar saha <arnob@appscode.com>
1 parent 4679ce5 commit 823da14

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

charts/service-gateway/templates/gateway/gwclass.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ metadata:
1212
{{- with .Values.gatewayClass.annotations }}
1313
{{- toYaml . | nindent 4 }}
1414
{{- end }}
15+
{{- if eq (dig "catalog.appscode.com/is-default-gatewayclass" "" (.Values.gatewayClass.annotations | default dict)) "true" }}
16+
helm.sh/resource-policy: keep
17+
{{- end }}
1518
spec:
1619
controllerName: {{ .Values.gateway.config.envoyGateway.gateway.controllerName }}
1720
{{- with .Values.gatewayClass.description }}

0 commit comments

Comments
 (0)