Skip to content

Commit 23568a7

Browse files
committed
fix(templates): add identity ref patch to kustomize
Signed-off-by: Ashutosh Kumar <[email protected]>
1 parent 6861356 commit 23568a7

File tree

4 files changed

+10
-0
lines changed

4 files changed

+10
-0
lines changed

templates/cluster-template-system-assigned-identity.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ metadata:
2525
name: ${CLUSTER_NAME}
2626
namespace: default
2727
spec:
28+
identityRef:
29+
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
30+
kind: AzureClusterIdentity
31+
name: ${CLUSTER_IDENTITY_NAME}
2832
location: ${AZURE_LOCATION}
2933
networkSpec:
3034
subnets:

templates/cluster-template-user-assigned-identity.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ metadata:
2525
name: ${CLUSTER_NAME}
2626
namespace: default
2727
spec:
28+
identityRef:
29+
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
30+
kind: AzureClusterIdentity
31+
name: ${CLUSTER_IDENTITY_NAME}
2832
location: ${AZURE_LOCATION}
2933
networkSpec:
3034
subnets:

templates/flavors/system-assigned-identity/kustomization.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ resources:
44
- ../default/machine-deployment.yaml
55
patchesStrategicMerge:
66
- patches/system-assigned-identity.yaml
7+
- ../../azure-cluster-identity/azurecluster-identity-ref.yaml

templates/flavors/user-assigned-identity/kustomization.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ resources:
44
- ../default/machine-deployment.yaml
55
patchesStrategicMerge:
66
- patches/user-assigned-identity.yaml
7+
- ../../azure-cluster-identity/azurecluster-identity-ref.yaml

0 commit comments

Comments
 (0)