harbor-operator: converge secrets

This commit is contained in:
2025-12-28 23:40:48 +02:00
parent 574cf9fc87
commit d05b92cc92
3 changed files with 3 additions and 11 deletions

View File

@@ -1,11 +1,3 @@
Deploy with:
```
kubectl create namespace harbor-operator
kubectl -n harbor-operator create secret generic harbor-minio-credentials --from-literal REGISTRY_STORAGE_S3_ACCESSKEY=...--from-literal=REGISTRY_STORAGE_S3_SECRETKEY=...
kubectl -n harbor-operator create secret generic harbor-postgres-password --from-literal password=...
```
# Deployment
With ArgoCD. Render it locally:

View File

@@ -95,7 +95,7 @@ spec:
valueFrom:
secretKeyRef:
name: postgres-appuser-password
key: POSTGRES_APPUSER_PASSWORD
key: password # required by harbor
- name: EXPORTER_PASSWORD
valueFrom:
secretKeyRef:
@@ -138,7 +138,7 @@ metadata:
spec:
size: 32
mapping:
- key: POSTGRES_APPUSER_PASSWORD
- key: password
value: "%(plaintext)s"
---
apiVersion: codemowers.cloud/v1beta1

View File

@@ -130,7 +130,7 @@ database:
port: "5432"
username: "kspace_harbor"
coreDatabase: "harbor-operator"
existingSecret: "harbor-postgres-password"
existingSecret: "postgres-appuser-password"
sslmode: "disable"
redis: