Skip to content

Commit

Permalink
Make pbc deployment wait for the first run of cron job (#760)
Browse files Browse the repository at this point in the history
* make pbc deployment wait for the first run of cron job

* minor
vincentni authored Jan 18, 2023
1 parent 141eb27 commit eb0a230
Showing 2 changed files with 48 additions and 58 deletions.
48 changes: 48 additions & 0 deletions charts/eks-anywhere-packages/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -103,6 +103,54 @@ spec:
- mountPath: /tmp/ecr-token
name: ecr-token
readOnly: true
initContainers:
- name: init-job
image: {{.Values.sourceRegistry}}{{ template "template.image" .Values.cronjob }}
imagePullPolicy: {{ .Values.imagePullPolicy }}
env:
- name: ECR_TOKEN_SECRET_NAME
value: ecr-token
- name: AWS_ACCESS_KEY_ID
valueFrom:
secretKeyRef:
name: aws-secret
key: AWS_ACCESS_KEY_ID
- name: AWS_SECRET_ACCESS_KEY
valueFrom:
secretKeyRef:
name: aws-secret
key: AWS_SECRET_ACCESS_KEY
- name: AWS_REGION
valueFrom:
secretKeyRef:
name: aws-secret
key: REGION
- name: REGISTRY_MIRROR_ENDPOINT
valueFrom:
secretKeyRef:
name: registry-mirror-secret
key: ENDPOINT
- name: REGISTRY_MIRROR_USERNAME
valueFrom:
secretKeyRef:
name: registry-mirror-secret
key: USERNAME
- name: REGISTRY_MIRROR_PASSWORD
valueFrom:
secretKeyRef:
name: registry-mirror-secret
key: PASSWORD
- name: REGISTRY_MIRROR_CACERTCONTENT
valueFrom:
secretKeyRef:
name: registry-mirror-secret
key: CACERTCONTENT
- name: HTTP_PROXY
value: {{ .Values.proxy.HTTP_PROXY | quote}}
- name: HTTPS_PROXY
value: {{ .Values.proxy.HTTPS_PROXY | quote}}
- name: NO_PROXY
value: {{ .Values.proxy.NO_PROXY | quote}}
volumes:
- name: cert
secret:
58 changes: 0 additions & 58 deletions charts/eks-anywhere-packages/templates/job.yaml

This file was deleted.

0 comments on commit eb0a230

Please sign in to comment.