diff --git a/carvel-package/bundle/config/12-session-manager/10-secretinjectors.yaml b/carvel-package/bundle/config/12-session-manager/10-secretinjectors.yaml index 254c1791..8f9b3893 100644 --- a/carvel-package/bundle/config/12-session-manager/10-secretinjectors.yaml +++ b/carvel-package/bundle/config/12-session-manager/10-secretinjectors.yaml @@ -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