Skip to content

Commit

Permalink
Forgot to inject registry credentials into default service account af…
Browse files Browse the repository at this point in the history
…ter switching to secrets manager.
  • Loading branch information
GrahamDumpleton committed Apr 21, 2022
1 parent a3eef35 commit e919bd5
Showing 1 changed file with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,24 @@ spec:
#@yaml/text-templated-strings
(@= "training.{}/component".format(data.values.operator.apiGroup) @): session
#@ end

---
apiVersion: #@ "secrets.{}/v1beta1".format(data.values.operator.apiGroup)
kind: SecretInjector
metadata:
name: #@ "{}-registry-credentials".format(data.values.operator.namePrefix)
spec:
rules:
- targetNamespaces:
labelSelector:
matchLabels:
#@yaml/text-templated-strings
(@= "training.{}/component".format(data.values.operator.apiGroup) @): session
sourceSecrets:
nameSelector:
matchNames:
- #@ "{}-registry-credentials".format(data.values.operator.namePrefix)
serviceAccounts:
nameSelector:
matchNames:
- default

0 comments on commit e919bd5

Please sign in to comment.