diff --git a/charts/service-gateway/templates/gateway/gwclass.yaml b/charts/service-gateway/templates/gateway/gwclass.yaml index 0e9f87cdf..d6b807d9c 100644 --- a/charts/service-gateway/templates/gateway/gwclass.yaml +++ b/charts/service-gateway/templates/gateway/gwclass.yaml @@ -12,6 +12,9 @@ metadata: {{- with .Values.gatewayClass.annotations }} {{- toYaml . | nindent 4 }} {{- end }} + {{- if eq (dig "catalog.appscode.com/is-default-gatewayclass" "" (.Values.gatewayClass.annotations | default dict)) "true" }} + helm.sh/resource-policy: keep + {{- end }} spec: controllerName: {{ .Values.gateway.config.envoyGateway.gateway.controllerName }} {{- with .Values.gatewayClass.description }}