Skip to content

Commit

Permalink
fx: secret db name + argo app template name
Browse files Browse the repository at this point in the history
  • Loading branch information
shivanshs9 committed Nov 11, 2024
1 parent 0830a82 commit b94c949
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions iac/pulumi-gcp/infra/k8s-tools/argocd/appset/gitops.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ spec:
metadata:
labels:
app.kubernetes.io/component: argo-app
app.kubernetes.io/instance: app-{{ path[1] }}
app.kubernetes.io/instance: app-{{ path[2] }}
app.kubernetes.io/managed-by: Argo
app.kubernetes.io/part-of: argocd
polynomial.fi/environment: production
name: app-{{ path[1] }}
name: app-{{ path[2] }}
spec:
destination:
server: https://kubernetes.default.svc
Expand Down
2 changes: 1 addition & 1 deletion iac/pulumi-gcp/infra/whisper-notes-db/index.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
instance: '${DbInstance.name}',
password: '${DbUserPassword.result}',
},
} + (import '../../lib/secrets/index.libsonnet').CreateSecretData('service-whisper-notes-db', '${secDataWhisperDbCreds}', $.Config),
} + (import '../../lib/secrets/index.libsonnet').CreateSecretData('service-notes-db', '${secDataWhisperDbCreds}', $.Config),
outputs: {
dbEndpoint: '${DbInstance.privateIpAddress}',
dbConnectionString: '${DbInstance.connectionName}',
Expand Down
1 change: 1 addition & 0 deletions iac/services/backend/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ kind: Kustomization
resources:
- deployment.yaml
- service.yaml
- secret.yaml

namePrefix: whisper-notes-
namespace: default
Expand Down
2 changes: 1 addition & 1 deletion iac/services/backend/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
spec:
dataFrom:
- extract:
key: service-whisper-notes-db
key: whisper-prod-service-notes-db
refreshInterval: 15s
secretStoreRef:
kind: ClusterSecretStore
Expand Down

0 comments on commit b94c949

Please sign in to comment.