From a84e348263066a05afa9bff621e0f0353112ec84 Mon Sep 17 00:00:00 2001 From: Platform Engineer Date: Sun, 5 Jul 2026 19:01:32 +0000 Subject: [PATCH] fix(myorg-assistant): fix CronJob image refs to use full registry path + imagePullSecrets MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CronJobs were using bare image name 'myorg-assistant:latest' with imagePullPolicy: IfNotPresent and no imagePullSecrets. K8s tried to pull from Docker Hub → ImagePullBackOff on all 4 running CronJob pods. Changed to git.rogi.casa/roger/myorg-assistant/myorg-assistant:fcf79bf (matching the Deployment), imagePullPolicy: Always, and added imagePullSecrets: gitea-registry to all 5 CronJob manifests. --- 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