Skip to content

Commit

Permalink
Fix nil pointer issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Tharsanan1 committed Feb 21, 2024
1 parent 1955043 commit 6227b47
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
apiVersion: gateway.networking.k8s.io/v1beta1
kind: GatewayClass
metadata:
{{- if .Values.wso2.apk.dp.gatewayClass }}
name: {{ .Values.wso2.apk.dp.gatewayClass.name | default "wso2-apk-default" }}
{{- else }}
name: "wso2-apk-default"
{{- end }}
spec:
controllerName: "wso2.com/apk-gateway-default"
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ metadata:
annotations:
cert-manager.io/issuer: selfsigned-issuer
spec:
{{- if .Values.wso2.apk.dp.gatewayClass }}
gatewayClassName: {{ .Values.wso2.apk.dp.gatewayClass.name | default "wso2-apk-default" }}
{{- else }}
gatewayClassName: "wso2-apk-default"
{{- end }}
listeners:
{{ if and .Values.wso2.apk.dp.gateway.httpListener .Values.wso2.apk.dp.gateway.httpListener.enabled }}
- name: httplistener
Expand Down

0 comments on commit 6227b47

Please sign in to comment.