diff --git a/charts/flagsmith/Chart.yaml b/charts/flagsmith/Chart.yaml index 850b62a..252afae 100644 --- a/charts/flagsmith/Chart.yaml +++ b/charts/flagsmith/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: flagsmith description: Flagsmith type: application -version: 0.64.0 +version: 0.65.0 appVersion: 2.159.0 dependencies: - name: postgresql diff --git a/charts/flagsmith/templates/ingress-sse.yaml b/charts/flagsmith/templates/ingress-sse.yaml new file mode 100644 index 0000000..755eef5 --- /dev/null +++ b/charts/flagsmith/templates/ingress-sse.yaml @@ -0,0 +1,59 @@ +{{- if .Values.ingress.sse.enabled -}} +{{- $fullName := include "flagsmith.fullname" . -}} +{{- $svcPort := .Values.service.sse.port -}} +{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}} +apiVersion: networking.k8s.io/v1 +{{- else -}} +{{- if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}} +apiVersion: networking.k8s.io/v1beta1 +{{- else -}} +apiVersion: extensions/v1beta1 +{{- end }} +{{- end }} +kind: Ingress +metadata: + name: {{ $fullName }}-sse + labels: + {{- include "flagsmith.labels" . | nindent 4 }} + app.kubernetes.io/component: sse + {{- $annotations := include "flagsmith.annotations" ( dict "customAnnotations" .Values.ingress.sse.annotations "commonValues" .Values.common ) }} + {{- with $annotations }} + annotations: + {{- . | nindent 4 }} + {{- end }} +spec: +{{- with .Values.ingress.sse.ingressClassName }} + ingressClassName: {{ . }} +{{- end }} + {{- if .Values.ingress.sse.tls }} + tls: + {{- range .Values.ingress.sse.tls }} + - hosts: + {{- range .hosts }} + - {{ . | quote }} + {{- end }} + secretName: {{ .secretName }} + {{- end }} + {{- end }} + rules: + {{- range .Values.ingress.sse.hosts }} + - host: {{ .host | quote }} + http: + paths: + {{- range .paths }} + - path: {{ . }} + {{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }} + pathType: Prefix + backend: + service: + name: {{ $fullName}}-sse + port: + number: {{ $svcPort }} + {{- else }} + backend: + serviceName: {{ $fullName }}-sse + servicePort: {{ $svcPort }} + {{- end }} + {{- end }} + {{- end }} + {{- end }} diff --git a/charts/flagsmith/values.yaml b/charts/flagsmith/values.yaml index e724690..0dd1016 100644 --- a/charts/flagsmith/values.yaml +++ b/charts/flagsmith/values.yaml @@ -315,6 +315,7 @@ sse: # extraEnv: # REDIS_HOST: redis.example.com # REDIS_PORT: 6379 + # USE_CLUSTER_MODE: true # - set this if connecting to a Redis cluster, not a single node # extraEnvFromSecret: # REDIS_PASSWORD: # secretName: my_redis_secrets