Skip to content

Commit

Permalink
Option to use the all-in-one Docker image (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
plumdog authored Jan 11, 2022
1 parent ceb094d commit 7766438
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/flagsmith/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: flagsmith
description: Flagsmith
type: application
version: 0.4.0
version: 0.5.0
appVersion: 2.9.4
dependencies:
- name: postgresql
Expand Down
2 changes: 2 additions & 0 deletions charts/flagsmith/templates/deployment-frontend.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.api.separateApiAndFrontend }}
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -90,3 +91,4 @@ spec:
timeoutSeconds: {{ .Values.frontend.readinessProbe.timeoutSeconds }}
resources:
{{ toYaml .Values.frontend.resources | indent 10 }}
{{- end }}
4 changes: 2 additions & 2 deletions charts/flagsmith/templates/service-frontend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ spec:
type: {{ .Values.service.frontend.type }}
ports:
- port: {{ .Values.service.frontend.port }}
targetPort: {{ .Values.service.frontend.port }}
targetPort: {{ .Values.api.separateApiAndFrontend | ternary .Values.service.frontend.port .Values.service.api.port }}
protocol: TCP
name: http
selector: {{- include "flagsmith.selectorLabels" . | nindent 4 }}
app.kubernetes.io/component: frontend
app.kubernetes.io/component: {{ if .Values.api.separateApiAndFrontend }}frontend{{ else }}api{{ end }}
9 changes: 9 additions & 0 deletions charts/flagsmith/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@ api:
tag: null # defaults to .Chart.AppVersion
imagePullPolicy: IfNotPresent
imagePullSecrets: []
# Note that if setting this to false, need to set
# api.image.repository to flagsmith/flagsmith (or some other
# repository hosting the image with combined frontend and backend)
# and that the image tag exists (for flagsmith/flagsmith, >=2.10.0)
#
# Also, note that the ingress and service for the frontend remain
# (unless explicitly switched off), but both are handled by the api
# deployment's pods.
separateApiAndFrontend: true
replicacount: 1
podAnnotations: {}
resources: {}
Expand Down

0 comments on commit 7766438

Please sign in to comment.