Skip to content

Commit

Permalink
feat: cookie revert
Browse files Browse the repository at this point in the history
  • Loading branch information
akurilov committed Mar 21, 2024
1 parent 5c2de08 commit b7c9194
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 18 deletions.
10 changes: 0 additions & 10 deletions helm/webapp/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,6 @@ metadata:
nginx.ingress.kubernetes.io/use-regex: "true"
nginx.ingress.kubernetes.io/ssl-redirect: "true"
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
nginx.ingress.kubernetes.io/affinity: "cookie"
{{- range .Values.ingress.hosts }}
{{- if .cookie.enabled }}
nginx.ingress.kubernetes.io/session-cookie-domain: "{{ .host }}"
nginx.ingress.kubernetes.io/session-cookie-expires: "{{ .cookie.expires.seconds }}"
nginx.ingress.kubernetes.io/session-cookie-max-age: "{{ .cookie.expires.seconds }}"
nginx.ingress.kubernetes.io/session-cookie-name: "{{ .cookie.name }}"
nginx.ingress.kubernetes.io/session-cookie-samesite: "{{ .cookie.samesite }}"
{{- end }}
{{- end }}
spec:
{{- if and .Values.ingress.className (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion) }}
ingressClassName: {{ .Values.ingress.className }}
Expand Down
6 changes: 0 additions & 6 deletions helm/webapp/values-demo-0.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
ingress:
hosts:
- host: awakari.com
cookie:
enabled: true
name: "awkappuser"
expires:
seconds: 86400
samesite: "Strict"
paths:
- path: /
pathType: Prefix
Expand Down
2 changes: 0 additions & 2 deletions helm/webapp/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ ingress:
enabled: true
hosts:
- host: webapp.local
cookie:
enabled: false
paths:
- path: /
pathType: Prefix
Expand Down

0 comments on commit b7c9194

Please sign in to comment.