Skip to content

Commit a554f66

Browse files
committed
support pypi image
1 parent 93e44b4 commit a554f66

File tree

3 files changed

+46
-0
lines changed

3 files changed

+46
-0
lines changed

helm/crabserver/templates/deployment.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,14 @@ spec:
5050
name: crabserver-mon
5151
resources:
5252
{{- toYaml .Values.resources | nindent 12 }}
53+
{{- if .Values.image.command }}
5354
command:
5455
{{- toYaml .Values.image.command | nindent 10 }}
56+
{{- end }}
57+
{{- if .Values.image.args }}
58+
args:
59+
{{- toYaml .Values.image.args | nindent 10 }}
60+
{{- end }}
5561
env:
5662
{{- toYaml .Values.image.env | nindent 10 }}
5763
livenessProbe:
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
environment: "test"
3+
4+
image:
5+
path: registry.cern.ch/cmscrab/crabserver
6+
pullPolicy: IfNotPresent
7+
tag: "pypi-devthree-1715075269"
8+
command:
9+
- /data/entrypoint.sh
10+
args:
11+
- /bin/bash
12+
- -c
13+
- |
14+
sudo cp /host/etc/grid-security/* /etc/grid-security \
15+
&& echo 'INFO Files in /etc/grid-security' \
16+
&& ls -lahZ /etc/grid-security \
17+
&& /data/run.sh
18+
19+
# disable liveness/readiness
20+
# https://helm.sh/docs/chart_template_guide/values_files/#deleting-a-default-key
21+
livenessProbePreProd: null
22+
readinessProbePreProd: null
23+
livenessProbeTest: null
24+
readinessProbeTest: null
25+
livenessProbe: null
26+
readinessProbe: null

helm/crabserver/values-test12.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
environment: "test"
3+
4+
image:
5+
tag: "v3.240530"
6+
7+
# disable liveness/readiness
8+
# https://helm.sh/docs/chart_template_guide/values_files/#deleting-a-default-key
9+
livenessProbePreProd: null
10+
readinessProbePreProd: null
11+
livenessProbeTest: null
12+
readinessProbeTest: null
13+
livenessProbe: null
14+
readinessProbe: null

0 commit comments

Comments
 (0)