Compare commits

...

4 Commits

Author SHA1 Message Date
Platform Engineer Agent
086c6a8937 fix(argocd): add RBAC ConfigMap granting platform-engineer read+sync access
The platform-engineer ArgoCD account was created in argocd-cm.yaml but
no argocd-rbac-cm.yaml existed, so ArgoCD's default-deny policy blocked
all API calls with 'permission denied'. This grants the account read
access to applications, clusters, repositories, and projects, plus the
ability to trigger syncs — exactly what the platform-engineer bot needs.
2026-07-05 23:31:35 +00:00
Platform Engineer Agent
53ea993438 Merge remote-tracking branch 'upstream/main' 2026-07-05 23:28:11 +00:00
Roger Oriol
63e93cbd39 configure higher cron schedules 2026-07-05 23:15:33 +00:00
Platform Engineer
a84e348263 fix(myorg-assistant): fix CronJob image refs to use full registry path + imagePullSecrets
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.
2026-07-05 19:02:46 +00:00
6 changed files with 40 additions and 10 deletions

View File

@@ -0,0 +1,20 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: argocd-rbac-cm
namespace: argocd
labels:
app.kubernetes.io/name: argocd-rbac-cm
app.kubernetes.io/part-of: argocd
data:
# Default policy: readonly for all authenticated users
policy.default: role:readonly
# platform-engineer account: read all apps + trigger syncs
policy.csv: |
p, role:platform-engineer, applications, get, */*, allow
p, role:platform-engineer, applications, sync, */*, allow
p, role:platform-engineer, clusters, get, *, allow
p, role:platform-engineer, repositories, get, *, allow
p, role:platform-engineer, projects, get, *, allow
g, platform-engineer, role:platform-engineer

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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