1
0
mirror of synced 2026-02-07 03:05:56 +00:00

Template AzureIdentityBinding using $(AZ_IDENTITY_NAME) for integrations

Signed-off-by: leigh capili <leigh@null.net>
This commit is contained in:
leigh capili
2021-06-01 10:31:01 -06:00
parent 1355962b3c
commit bd255800db
10 changed files with 42 additions and 26 deletions

View File

@@ -5,3 +5,12 @@ kind: AzureIdentity
metadata:
name: credentials-sync # if this is changed, also change in config-patches.yaml
namespace: flux-system
---
apiVersion: aadpodidentity.k8s.io/v1
kind: AzureIdentityBinding
metadata:
name: credentials-sync # this can have a different name, but it's nice to keep them the same
namespace: flux-system
spec:
azureIdentity: $(AZ_IDENTITY_NAME) # match the AzureIdentity name
selector: $(AZ_IDENTITY_NAME) # match the AzureIdentity name

View File

@@ -1,3 +1,7 @@
varReference:
- path: spec/jobTemplate/spec/template/metadata/labels
kind: Deployment
kind: CronJob
- path: spec/azureIdentity
kind: AzureIdentityBinding
- path: spec/selector
kind: AzureIdentityBinding