Compare commits

..

1 Commits

Author SHA1 Message Date
platform-engineer
c971647734 fix(argocd): add argocd-rbac-cm granting platform-engineer read+sync on applications
The platform-engineer ArgoCD local account had apiKey+login capabilities
but no RBAC role assignment. With no argocd-rbac-cm ConfigMap in the repo,
the default policy gave the account zero permissions, so every API call
to list applications returned an empty list — the watchdog could not see
any apps to check their health.

This adds an argocd-rbac-cm ConfigMap with a role:platform-engineer that
has get (read) and sync on all applications in all projects, and assigns
the platform-engineer account to that role.
2026-07-06 13:06:51 +00:00
8 changed files with 28 additions and 29 deletions

View File

@@ -22,9 +22,3 @@ spec:
selfHeal: true selfHeal: true
syncOptions: syncOptions:
- CreateNamespace=false - CreateNamespace=false
ignoreDifferences:
- group: argoproj.io
kind: Application
jsonPointers:
- /status
- /operation

View File

@@ -0,0 +1,15 @@
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:
policy.csv: |
# Grant the platform-engineer local account read + sync access to all applications
p, role:platform-engineer, applications, get, */*, allow
p, role:platform-engineer, application, sync, */*, allow
g, platform-engineer, role:platform-engineer
policy.default: ""

View File

@@ -22,12 +22,10 @@ spec:
job: deadline-checker job: deadline-checker
spec: spec:
restartPolicy: OnFailure restartPolicy: OnFailure
imagePullSecrets:
- name: gitea-registry
containers: containers:
- name: deadline-checker - name: deadline-checker
image: git.rogi.casa/roger/myorg-assistant/myorg-assistant:fcf79bf image: myorg-assistant:latest
imagePullPolicy: Always imagePullPolicy: IfNotPresent
command: command:
- python - python
- run_job.py - run_job.py

View File

@@ -22,12 +22,10 @@ spec:
job: evening-summary job: evening-summary
spec: spec:
restartPolicy: OnFailure restartPolicy: OnFailure
imagePullSecrets:
- name: gitea-registry
containers: containers:
- name: evening-summary - name: evening-summary
image: git.rogi.casa/roger/myorg-assistant/myorg-assistant:fcf79bf image: myorg-assistant:latest
imagePullPolicy: Always imagePullPolicy: IfNotPresent
command: command:
- python - python
- run_job.py - run_job.py

View File

@@ -22,12 +22,10 @@ spec:
job: git-sync job: git-sync
spec: spec:
restartPolicy: OnFailure restartPolicy: OnFailure
imagePullSecrets:
- name: gitea-registry
containers: containers:
- name: git-sync - name: git-sync
image: git.rogi.casa/roger/myorg-assistant/myorg-assistant:fcf79bf image: myorg-assistant:latest
imagePullPolicy: Always imagePullPolicy: IfNotPresent
command: command:
- python - python
- run_job.py - run_job.py

View File

@@ -22,12 +22,10 @@ spec:
job: morning-briefing job: morning-briefing
spec: spec:
restartPolicy: OnFailure restartPolicy: OnFailure
imagePullSecrets:
- name: gitea-registry
containers: containers:
- name: morning-briefing - name: morning-briefing
image: git.rogi.casa/roger/myorg-assistant/myorg-assistant:fcf79bf image: myorg-assistant:latest
imagePullPolicy: Always imagePullPolicy: IfNotPresent
command: command:
- python - python
- run_job.py - run_job.py

View File

@@ -22,12 +22,10 @@ spec:
job: waiting-followup job: waiting-followup
spec: spec:
restartPolicy: OnFailure restartPolicy: OnFailure
imagePullSecrets:
- name: gitea-registry
containers: containers:
- name: waiting-followup - name: waiting-followup
image: git.rogi.casa/roger/myorg-assistant/myorg-assistant:fcf79bf image: myorg-assistant:latest
imagePullPolicy: Always imagePullPolicy: IfNotPresent
command: command:
- python - python
- run_job.py - run_job.py

View File

@@ -9,18 +9,18 @@ data:
config.yaml: | config.yaml: |
model: model:
provider: openai-api provider: openai-api
default: qwen3.6 default: z-ai/glm-5.2
base_url: "http://litellm-service.litellm:80/v1" base_url: "http://litellm-service.litellm:80/v1"
api_mode: chat_completions api_mode: chat_completions
auxiliary: auxiliary:
compression: compression:
provider: openai-api provider: openai-api
model: qwen3.6 model: z-ai/glm-5.2
base_url: "http://litellm-service.litellm:80/v1" base_url: "http://litellm-service.litellm:80/v1"
title_generation: title_generation:
provider: openai-api provider: openai-api
model: qwen3.6 model: z-ai/glm-5.2
base_url: "http://litellm-service.litellm:80/v1" base_url: "http://litellm-service.litellm:80/v1"
terminal: terminal: