Skip to content

Commit

Permalink
Added job-init.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
KDNeufeld committed Mar 1, 2024
1 parent 6f512e7 commit 9fba5b9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion gitops/charts/form-recognizer-3.0/deploy-acs.bat
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ helm template . --show-only templates/pvc-logs.yaml | oc -n %server% apply -f -
helm template . --show-only templates/pvc-shared.yaml | oc -n %server% apply -f -
pause

helm template . --show-only templates/deployment-init.yaml | oc -n %server% apply -f -
helm template . --show-only templates/job-init.yaml | oc -n %server% apply -f -
pause

::helm template . --show-only templates/configmap-proxy-config.yaml | oc -n %server% apply -f -
Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
apiVersion: apps/v1
kind: Deployment
apiVersion: batch/v1
kind: Job
metadata:
name: {{ include "form-recognizer.fullname" . }}-init
labels:
{{- include "form-recognizer.labels" . | nindent 4 }}
annotations:
"helm.sh/hook": pre-install,pre-upgrade
"helm.sh/hook-weight": "-1"
"helm.sh/hook-delete-policy": hook-succeeded
spec:
selector:
matchLabels:
app.kubernetes.io/instance: {{ include "form-recognizer.fullname" . }}-init
app.kubernetes.io/name: {{ include "form-recognizer.fullname" . }}-init
template:
metadata:
labels:
app.kubernetes.io/instance: {{ include "form-recognizer.fullname" . }}-init
app.kubernetes.io/name: {{ include "form-recognizer.fullname" . }}-init
name: {{ include "form-recognizer.fullname" . }}-init
spec:
restartPolicy: Never
containers:
- name: {{ include "form-recognizer.fullname" . }}-init
image: "{{ .Values.init.image.repository }}:{{ .Values.init.image.tag }}"
Expand Down

0 comments on commit 9fba5b9

Please sign in to comment.