From aab38aa67b9fcb94160e08e1f7a34a05d979a94b Mon Sep 17 00:00:00 2001 From: Platform Engineer Date: Mon, 6 Jul 2026 12:39:51 +0000 Subject: [PATCH] fix(myorg-assistant): point cronjobs at registry image + add imagePullSecrets CronJob pods were stuck in ImagePullBackOff because they referenced the local-only image 'myorg-assistant:latest' which is not present on the node. Switch all 5 cronjobs to the Gitea registry image git.rogi.casa/roger/myorg-assistant/myorg-assistant:fcf79bf (matching the Deployment), set imagePullPolicy: Always, and add imagePullSecrets: gitea-registry so they can authenticate to the private registry. --- myorg-assistant/cronjobs/deadline-checker.yaml | 6 ++++-- myorg-assistant/cronjobs/evening-summary.yaml | 6 ++++-- myorg-assistant/cronjobs/git-sync.yaml | 6 ++++-- myorg-assistant/cronjobs/morning-briefing.yaml | 6 ++++-- myorg-assistant/cronjobs/waiting-followup.yaml | 6 ++++-- 5 files changed, 20 insertions(+), 10 deletions(-) diff --git a/myorg-assistant/cronjobs/deadline-checker.yaml b/myorg-assistant/cronjobs/deadline-checker.yaml index d6e0c2a..bde44b5 100644 --- a/myorg-assistant/cronjobs/deadline-checker.yaml +++ b/myorg-assistant/cronjobs/deadline-checker.yaml @@ -22,10 +22,12 @@ spec: job: deadline-checker spec: restartPolicy: OnFailure + imagePullSecrets: + - name: gitea-registry containers: - name: deadline-checker - image: myorg-assistant:latest - imagePullPolicy: IfNotPresent + image: git.rogi.casa/roger/myorg-assistant/myorg-assistant:fcf79bf + imagePullPolicy: Always command: - python - run_job.py diff --git a/myorg-assistant/cronjobs/evening-summary.yaml b/myorg-assistant/cronjobs/evening-summary.yaml index f4e35d5..2a0e432 100644 --- a/myorg-assistant/cronjobs/evening-summary.yaml +++ b/myorg-assistant/cronjobs/evening-summary.yaml @@ -22,10 +22,12 @@ spec: job: evening-summary spec: restartPolicy: OnFailure + imagePullSecrets: + - name: gitea-registry containers: - name: evening-summary - image: myorg-assistant:latest - imagePullPolicy: IfNotPresent + image: git.rogi.casa/roger/myorg-assistant/myorg-assistant:fcf79bf + imagePullPolicy: Always command: - python - run_job.py diff --git a/myorg-assistant/cronjobs/git-sync.yaml b/myorg-assistant/cronjobs/git-sync.yaml index 45d42ea..8659d4b 100644 --- a/myorg-assistant/cronjobs/git-sync.yaml +++ b/myorg-assistant/cronjobs/git-sync.yaml @@ -22,10 +22,12 @@ spec: job: git-sync spec: restartPolicy: OnFailure + imagePullSecrets: + - name: gitea-registry containers: - name: git-sync - image: myorg-assistant:latest - imagePullPolicy: IfNotPresent + image: git.rogi.casa/roger/myorg-assistant/myorg-assistant:fcf79bf + imagePullPolicy: Always command: - python - run_job.py diff --git a/myorg-assistant/cronjobs/morning-briefing.yaml b/myorg-assistant/cronjobs/morning-briefing.yaml index b73bb9a..59bc97b 100644 --- a/myorg-assistant/cronjobs/morning-briefing.yaml +++ b/myorg-assistant/cronjobs/morning-briefing.yaml @@ -22,10 +22,12 @@ spec: job: morning-briefing spec: restartPolicy: OnFailure + imagePullSecrets: + - name: gitea-registry containers: - name: morning-briefing - image: myorg-assistant:latest - imagePullPolicy: IfNotPresent + image: git.rogi.casa/roger/myorg-assistant/myorg-assistant:fcf79bf + imagePullPolicy: Always command: - python - run_job.py diff --git a/myorg-assistant/cronjobs/waiting-followup.yaml b/myorg-assistant/cronjobs/waiting-followup.yaml index 33d70c0..1366a31 100644 --- a/myorg-assistant/cronjobs/waiting-followup.yaml +++ b/myorg-assistant/cronjobs/waiting-followup.yaml @@ -22,10 +22,12 @@ spec: job: waiting-followup spec: restartPolicy: OnFailure + imagePullSecrets: + - name: gitea-registry containers: - name: waiting-followup - image: myorg-assistant:latest - imagePullPolicy: IfNotPresent + image: git.rogi.casa/roger/myorg-assistant/myorg-assistant:fcf79bf + imagePullPolicy: Always command: - python - run_job.py