Skip to content

Commit

Permalink
Allow to set securityPolicy for GKE BackendConfig (#1125)
Browse files Browse the repository at this point in the history
  • Loading branch information
pawelmrowka authored Feb 5, 2024
1 parent 101502a commit cf7f15c
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sentry/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: sentry
description: A Helm chart for Kubernetes
type: application
version: 21.2.0
version: 21.3.0
appVersion: 24.1.1
dependencies:
- name: memcached
Expand Down
6 changes: 5 additions & 1 deletion sentry/templates/gke/backendconfig-sentry-relay.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- if and (.Values.ingress.enabled) (eq (default "nginx" .Values.ingress.regexPathStyle) "gke") }}
apiVersion: cloud.google.com/v1beta1
apiVersion: cloud.google.com/v1
kind: BackendConfig
metadata:
name: {{ include "sentry.fullname" . }}-relay
Expand All @@ -18,4 +18,8 @@ spec:
type: HTTP
requestPath: {{ template "relay.healthCheck.requestPath" }}
port: {{ template "relay.port" . }}
{{- if .Values.relay.securityPolicy }}
securityPolicy:
name: {{ .Values.relay.securityPolicy }}
{{- end }}
{{- end }}
6 changes: 5 additions & 1 deletion sentry/templates/gke/backendconfig-sentry-web.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- if and (.Values.ingress.enabled) (eq (default "nginx" .Values.ingress.regexPathStyle) "gke") }}
apiVersion: cloud.google.com/v1beta1
apiVersion: cloud.google.com/v1
kind: BackendConfig
metadata:
name: {{ include "sentry.fullname" . }}-web
Expand All @@ -18,4 +18,8 @@ spec:
type: HTTP
requestPath: {{ template "sentry.healthCheck.requestPath" }}
port: {{ .Values.service.externalPort }}
{{- if .Values.sentry.web.securityPolicy }}
securityPolicy:
name: {{ .Values.sentry.web.securityPolicy }}
{{- end }}
{{- end }}
2 changes: 2 additions & 0 deletions sentry/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ relay:
affinity: {}
nodeSelector: {}
securityContext: {}
securityPolicy: ""
containerSecurityContext: {}
service:
annotations: {}
Expand Down Expand Up @@ -146,6 +147,7 @@ sentry:
affinity: {}
nodeSelector: {}
securityContext: {}
securityPolicy: ""
containerSecurityContext: {}
service:
annotations: {}
Expand Down

0 comments on commit cf7f15c

Please sign in to comment.