Skip to content

Commit bba95ac

Browse files
committed
Added namespace override to all kustomize files
1 parent fc0a458 commit bba95ac

File tree

12 files changed

+27
-0
lines changed

12 files changed

+27
-0
lines changed

templates/cluster-template-aks.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ apiVersion: exp.infrastructure.cluster.x-k8s.io/v1alpha3
2121
kind: AzureManagedControlPlane
2222
metadata:
2323
name: ${CLUSTER_NAME}-control-plane
24+
namespace: default
2425
spec:
2526
defaultPoolRef:
2627
name: agentpool0
@@ -34,13 +35,15 @@ apiVersion: exp.infrastructure.cluster.x-k8s.io/v1alpha3
3435
kind: AzureManagedCluster
3536
metadata:
3637
name: ${CLUSTER_NAME}
38+
namespace: default
3739
spec:
3840
subscriptionID: ${AZURE_SUBSCRIPTION_ID}
3941
---
4042
apiVersion: exp.cluster.x-k8s.io/v1alpha3
4143
kind: MachinePool
4244
metadata:
4345
name: agentpool0
46+
namespace: default
4447
spec:
4548
clusterName: ${CLUSTER_NAME}
4649
replicas: ${WORKER_MACHINE_COUNT}
@@ -61,6 +64,7 @@ apiVersion: exp.infrastructure.cluster.x-k8s.io/v1alpha3
6164
kind: AzureManagedMachinePool
6265
metadata:
6366
name: agentpool0
67+
namespace: default
6468
spec:
6569
osDiskSizeGB: 512
6670
sku: ${AZURE_NODE_MACHINE_TYPE}
@@ -69,6 +73,7 @@ apiVersion: exp.cluster.x-k8s.io/v1alpha3
6973
kind: MachinePool
7074
metadata:
7175
name: agentpool1
76+
namespace: default
7277
spec:
7378
clusterName: ${CLUSTER_NAME}
7479
replicas: ${WORKER_MACHINE_COUNT}
@@ -89,6 +94,7 @@ apiVersion: exp.infrastructure.cluster.x-k8s.io/v1alpha3
8994
kind: AzureManagedMachinePool
9095
metadata:
9196
name: agentpool1
97+
namespace: default
9298
spec:
9399
osDiskSizeGB: 1024
94100
sku: ${AZURE_NODE_MACHINE_TYPE}

templates/cluster-template-external-cloud-provider.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ apiVersion: cluster.x-k8s.io/v1alpha3
124124
kind: MachineDeployment
125125
metadata:
126126
name: ${CLUSTER_NAME}-md-0
127+
namespace: default
127128
spec:
128129
clusterName: ${CLUSTER_NAME}
129130
replicas: ${WORKER_MACHINE_COUNT}
@@ -147,6 +148,7 @@ apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3
147148
kind: AzureMachineTemplate
148149
metadata:
149150
name: ${CLUSTER_NAME}-md-0
151+
namespace: default
150152
spec:
151153
template:
152154
spec:
@@ -163,6 +165,7 @@ apiVersion: bootstrap.cluster.x-k8s.io/v1alpha3
163165
kind: KubeadmConfigTemplate
164166
metadata:
165167
name: ${CLUSTER_NAME}-md-0
168+
namespace: default
166169
spec:
167170
template:
168171
spec:

templates/cluster-template-machinepool.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ apiVersion: exp.cluster.x-k8s.io/v1alpha3
124124
kind: MachinePool
125125
metadata:
126126
name: ${CLUSTER_NAME}-mp-0
127+
namespace: default
127128
spec:
128129
clusterName: ${CLUSTER_NAME}
129130
replicas: ${WORKER_MACHINE_COUNT}
@@ -145,6 +146,7 @@ apiVersion: exp.infrastructure.cluster.x-k8s.io/v1alpha3
145146
kind: AzureMachinePool
146147
metadata:
147148
name: ${CLUSTER_NAME}-mp-0
149+
namespace: default
148150
spec:
149151
location: ${AZURE_LOCATION}
150152
template:
@@ -160,6 +162,7 @@ apiVersion: bootstrap.cluster.x-k8s.io/v1alpha3
160162
kind: KubeadmConfig
161163
metadata:
162164
name: ${CLUSTER_NAME}-mp-0
165+
namespace: default
163166
spec:
164167
files:
165168
- content: |

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ apiVersion: cluster.x-k8s.io/v1alpha3
125125
kind: MachineDeployment
126126
metadata:
127127
name: ${CLUSTER_NAME}-md-0
128+
namespace: default
128129
spec:
129130
clusterName: ${CLUSTER_NAME}
130131
replicas: ${WORKER_MACHINE_COUNT}
@@ -148,6 +149,7 @@ apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3
148149
kind: AzureMachineTemplate
149150
metadata:
150151
name: ${CLUSTER_NAME}-md-0
152+
namespace: default
151153
spec:
152154
template:
153155
spec:
@@ -165,6 +167,7 @@ apiVersion: bootstrap.cluster.x-k8s.io/v1alpha3
165167
kind: KubeadmConfigTemplate
166168
metadata:
167169
name: ${CLUSTER_NAME}-md-0
170+
namespace: default
168171
spec:
169172
template:
170173
spec:

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ apiVersion: cluster.x-k8s.io/v1alpha3
127127
kind: MachineDeployment
128128
metadata:
129129
name: ${CLUSTER_NAME}-md-0
130+
namespace: default
130131
spec:
131132
clusterName: ${CLUSTER_NAME}
132133
replicas: ${WORKER_MACHINE_COUNT}
@@ -150,6 +151,7 @@ apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3
150151
kind: AzureMachineTemplate
151152
metadata:
152153
name: ${CLUSTER_NAME}-md-0
154+
namespace: default
153155
spec:
154156
template:
155157
spec:
@@ -169,6 +171,7 @@ apiVersion: bootstrap.cluster.x-k8s.io/v1alpha3
169171
kind: KubeadmConfigTemplate
170172
metadata:
171173
name: ${CLUSTER_NAME}-md-0
174+
namespace: default
172175
spec:
173176
template:
174177
spec:

templates/cluster-template.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ apiVersion: cluster.x-k8s.io/v1alpha3
124124
kind: MachineDeployment
125125
metadata:
126126
name: ${CLUSTER_NAME}-md-0
127+
namespace: default
127128
spec:
128129
clusterName: ${CLUSTER_NAME}
129130
replicas: ${WORKER_MACHINE_COUNT}
@@ -147,6 +148,7 @@ apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3
147148
kind: AzureMachineTemplate
148149
metadata:
149150
name: ${CLUSTER_NAME}-md-0
151+
namespace: default
150152
spec:
151153
template:
152154
spec:
@@ -163,6 +165,7 @@ apiVersion: bootstrap.cluster.x-k8s.io/v1alpha3
163165
kind: KubeadmConfigTemplate
164166
metadata:
165167
name: ${CLUSTER_NAME}-md-0
168+
namespace: default
166169
spec:
167170
template:
168171
spec:
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
apiVersion: kustomize.config.k8s.io/v1beta1
22
kind: Kustomization
3+
namespace: default
34
resources:
45
- cluster-template.yaml
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
namespace: default
12
resources:
23
- ../base
34
- machine-deployment.yaml

templates/flavors/external-cloud-provider/kustomization.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
namespace: default
12
resources:
23
- ../default
34
patchesStrategicMerge:
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
namespace: default
12
resources:
23
- ../base
34
- machine-pool-deployment.yaml

0 commit comments

Comments
 (0)