Skip to content

Commit

Permalink
Merge pull request #105 from cybozu-go/charts/mantle/use-app-version-…
Browse files Browse the repository at this point in the history
…by-default

charts/mantle: change `image:` so that mantle can work right out of the box
  • Loading branch information
satoru-takeuchi authored Jan 24, 2025
2 parents aadd150 + 184bd87 commit dcbc367
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 4 deletions.
4 changes: 3 additions & 1 deletion charts/mantle/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ spec:
drop:
- "ALL"
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
{{- with .Values.image.pullPolicy }}
imagePullPolicy: {{ . }}
{{- end }}
livenessProbe:
httpGet:
path: /healthz
Expand Down
6 changes: 3 additions & 3 deletions charts/mantle/values.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
replicaCount: 1

image:
repository: controller
pullPolicy: IfNotPresent
tag: latest
repository: ghcr.io/cybozu-go/mantle
pullPolicy:
tag: # {{ .Chart.AppVersion }}

imagePullSecrets: []
nameOverride: ""
Expand Down
5 changes: 5 additions & 0 deletions test/e2e/testdata/values-mantle-primary-template.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
image:
repository: controller
pullPolicy: IfNotPresent
tag: latest

controller:
role: primary
mantleServiceEndpoint: {ENDPOINT}
Expand Down
5 changes: 5 additions & 0 deletions test/e2e/testdata/values-mantle-secondary-template.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
image:
repository: controller
pullPolicy: IfNotPresent
tag: latest

controller:
role: secondary
mantleServiceEndpoint: ":58080"
Expand Down
5 changes: 5 additions & 0 deletions test/e2e/testdata/values-mantle1.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
image:
repository: controller
pullPolicy: IfNotPresent
tag: latest

controller:
overwriteMBCSchedule: "* * * * *"
gcInterval: 1s
5 changes: 5 additions & 0 deletions test/e2e/testdata/values-mantle2.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
image:
repository: controller
pullPolicy: IfNotPresent
tag: latest

controller:
gcInterval: 1s

0 comments on commit dcbc367

Please sign in to comment.