forked from roger/k3s-cluster
fix(myorg-assistant): add missing GIT_TOKEN/GIT_REPO_URL/GIT_USERNAME to deadline-checker CronJob
The deadline-checker container crashed at import (pydantic ValidationError: git_token field required) because the CronJob pod did not mount GIT_TOKEN from myorg-assistant-secret, unlike the main Deployment. Added the three git-related secret env vars so Settings() validates.
This commit is contained in:
@@ -59,6 +59,21 @@ spec:
|
|||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: myorg-assistant-secret
|
name: myorg-assistant-secret
|
||||||
key: WEB_SECRET_KEY
|
key: WEB_SECRET_KEY
|
||||||
|
- name: GIT_REPO_URL
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: myorg-assistant-secret
|
||||||
|
key: GIT_REPO_URL
|
||||||
|
- name: GIT_USERNAME
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: myorg-assistant-secret
|
||||||
|
key: GIT_USERNAME
|
||||||
|
- name: GIT_TOKEN
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: myorg-assistant-secret
|
||||||
|
key: GIT_TOKEN
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: myorg-data
|
- name: myorg-data
|
||||||
mountPath: /data/myorg
|
mountPath: /data/myorg
|
||||||
|
|||||||
Reference in New Issue
Block a user