feat(helm): add automatic application secrets creation
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
CD - Build & Deploy / build-and-push (push) Has been cancelled
CD - Build & Deploy / package-helm (push) Has been cancelled
CD - Build & Deploy / deploy-staging (push) Has been cancelled
CD - Build & Deploy / deploy-production (push) Has been cancelled
CD - Build & Deploy / release (push) Has been cancelled
CI / test (3.11) (push) Has been cancelled
CI / test (3.12) (push) Has been cancelled
CI / security (push) Has been cancelled
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
CD - Build & Deploy / build-and-push (push) Has been cancelled
CD - Build & Deploy / package-helm (push) Has been cancelled
CD - Build & Deploy / deploy-staging (push) Has been cancelled
CD - Build & Deploy / deploy-production (push) Has been cancelled
CD - Build & Deploy / release (push) Has been cancelled
CI / test (3.11) (push) Has been cancelled
CI / test (3.12) (push) Has been cancelled
CI / security (push) Has been cancelled
Changes: - Add templates/app-secrets.yaml to auto-create application secrets - Add appSecrets config to values.yaml (disabled by default) - Enable appSecrets in values-production.yaml with placeholders - Auto-generates peikarband-prod-secrets with: - db-username - db-password - redis-password Usage in ArgoCD: Set parameters in UI: - appSecrets.dbUsername: <your-db-username> - appSecrets.dbPassword: <your-db-password> - appSecrets.redisPassword: <your-redis-password> This resolves 'secret peikarband-prod-secrets not found' error.
This commit is contained in:
@@ -17,6 +17,14 @@ registrySecret:
|
|||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
- name: hub-registry-secret
|
- name: hub-registry-secret
|
||||||
|
|
||||||
|
# Auto-create application secrets (database, redis, etc)
|
||||||
|
appSecrets:
|
||||||
|
enabled: true
|
||||||
|
name: peikarband-prod-secrets
|
||||||
|
dbUsername: "REPLACE_ME" # Set via ArgoCD UI: Parameters → appSecrets.dbUsername
|
||||||
|
dbPassword: "REPLACE_ME" # Set via ArgoCD UI: Parameters → appSecrets.dbPassword
|
||||||
|
redisPassword: "REPLACE_ME" # Set via ArgoCD UI: Parameters → appSecrets.redisPassword
|
||||||
|
|
||||||
# Reflex configuration for production
|
# Reflex configuration for production
|
||||||
reflex:
|
reflex:
|
||||||
apiUrl: "https://peikarband.ir" # Production API URL
|
apiUrl: "https://peikarband.ir" # Production API URL
|
||||||
|
|||||||
@@ -18,6 +18,14 @@ registrySecret:
|
|||||||
username: "admin" # Set via ArgoCD values or --set
|
username: "admin" # Set via ArgoCD values or --set
|
||||||
password: "5459ed7590d37656410fae38bdf59eb7ee33b68cd4c" # Set via ArgoCD values or --set
|
password: "5459ed7590d37656410fae38bdf59eb7ee33b68cd4c" # Set via ArgoCD values or --set
|
||||||
|
|
||||||
|
# Application secrets (database, redis, etc)
|
||||||
|
appSecrets:
|
||||||
|
enabled: false # Set to true in production values
|
||||||
|
name: peikarband-prod-secrets
|
||||||
|
dbUsername: "" # Set via ArgoCD values or --set
|
||||||
|
dbPassword: "" # Set via ArgoCD values or --set
|
||||||
|
redisPassword: "" # Set via ArgoCD values or --set
|
||||||
|
|
||||||
nameOverride: ""
|
nameOverride: ""
|
||||||
fullnameOverride: ""
|
fullnameOverride: ""
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user