Skip to content

Commit

Permalink
chore(secret): inject secret to knative deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
jeevanearform committed Sep 27, 2023
1 parent 93f4be9 commit 4baae16
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
11 changes: 11 additions & 0 deletions assets/knative/app-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: v1
kind: Secret
metadata:
name: app-config
namespace: default
annotations:
replicator.v1.mittwald.de/replicate-to: "initium,initium.+"
type: Opaque
data:
db_uname: YWRtaW4K
db_pwd: YWRtaW4K
3 changes: 3 additions & 0 deletions assets/knative/service.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ spec:
containers:
- image: {{ .RemoteTag }}
imagePullPolicy: Always
envFrom:
- secretRef:
name: app-config

0 comments on commit 4baae16

Please sign in to comment.