Skip to content

Commit f0f1853

Browse files
committed
updates kustomization files
- config folder - templates/addons - templates/azure-cluster-identity - templates/flavors - templates/test/ci - templates/test/dev - hack/observabilty - test/e2e/data remove --reorder none flag from the kustomize command and add sortOption:legacy to below folder - flavors - test/ci - test/dev
1 parent 31dd10c commit f0f1853

File tree

72 files changed

+966
-793
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+966
-793
lines changed

config/aso/kustomization.yaml

Lines changed: 70 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -7,79 +7,79 @@ resources:
77
- settings.yaml
88

99
patches:
10-
- path: patches/visualizer_label_in_bastionhosts.yaml
11-
- path: patches/visualizer_label_in_extensions.yaml
12-
- path: patches/visualizer_label_in_fleetmembers.yaml
13-
- path: patches/visualizer_label_in_managedclusteragentpools.yaml
14-
- path: patches/visualizer_label_in_managed_clusters.yaml
15-
- path: patches/visualizer_label_in_natgateways.yaml
16-
- path: patches/visualizer_label_in_privateendpoints.yaml
17-
- path: patches/visualizer_label_in_resourcegroups.yaml
18-
- path: patches/visualizer_label_in_subnets.yaml
19-
- path: patches/visualizer_label_in_virtualnetworks.yaml
20-
- patch: |- # default kustomization includes a namespace already
21-
$patch: delete
22-
apiVersion: v1
23-
kind: Namespace
24-
metadata:
25-
name: azureserviceoperator-system
26-
- patch: |-
27-
- op: test
28-
path: /spec/template/spec/containers/0/args/4
29-
value: --crd-pattern=
30-
- op: replace # Users can specify additional ASO CRDs. CRDs should be appended with ';'
31-
path: /spec/template/spec/containers/0/args/4
32-
value: --crd-pattern=${ADDITIONAL_ASO_CRDS:= }
33-
target:
34-
group: apps
35-
version: v1
36-
kind: Deployment
37-
name: azureserviceoperator-controller-manager
10+
- path: patches/visualizer_label_in_bastionhosts.yaml
11+
- path: patches/visualizer_label_in_extensions.yaml
12+
- path: patches/visualizer_label_in_fleetmembers.yaml
13+
- path: patches/visualizer_label_in_managedclusteragentpools.yaml
14+
- path: patches/visualizer_label_in_managed_clusters.yaml
15+
- path: patches/visualizer_label_in_natgateways.yaml
16+
- path: patches/visualizer_label_in_privateendpoints.yaml
17+
- path: patches/visualizer_label_in_resourcegroups.yaml
18+
- path: patches/visualizer_label_in_subnets.yaml
19+
- path: patches/visualizer_label_in_virtualnetworks.yaml
20+
- patch: |- # default kustomization includes a namespace already
21+
$patch: delete
22+
apiVersion: v1
23+
kind: Namespace
24+
metadata:
25+
name: azureserviceoperator-system
26+
- patch: |-
27+
- op: test
28+
path: /spec/template/spec/containers/0/args/4
29+
value: --crd-pattern=
30+
- op: replace # Users can specify additional ASO CRDs. CRDs should be appended with ';'
31+
path: /spec/template/spec/containers/0/args/4
32+
value: --crd-pattern=${ADDITIONAL_ASO_CRDS:= }
33+
target:
34+
group: apps
35+
kind: Deployment
36+
name: azureserviceoperator-controller-manager
37+
version: v1
38+
3839
# This implements https://github.com/Azure/azure-service-operator/pull/4011
3940
# for versions of ASO which don't include that fix.
40-
- patch: |-
41-
apiVersion: apps/v1
42-
kind: Deployment
43-
metadata:
44-
name: azureserviceoperator-controller-manager
45-
namespace: azureserviceoperator-system
46-
spec:
47-
template:
48-
spec:
49-
containers:
50-
- name: manager
51-
env:
52-
- name: AZURE_USER_AGENT_SUFFIX
53-
valueFrom:
54-
secretKeyRef:
55-
key: AZURE_USER_AGENT_SUFFIX
56-
name: aso-controller-settings
57-
optional: true
41+
- patch: |-
42+
apiVersion: apps/v1
43+
kind: Deployment
44+
metadata:
45+
name: azureserviceoperator-controller-manager
46+
namespace: azureserviceoperator-system
47+
spec:
48+
template:
49+
spec:
50+
containers:
51+
- name: manager
52+
env:
53+
- name: AZURE_USER_AGENT_SUFFIX
54+
valueFrom:
55+
secretKeyRef:
56+
key: AZURE_USER_AGENT_SUFFIX
57+
name: aso-controller-settings
58+
optional: true
5859
5960
replacements:
60-
- source:
61-
kind: Certificate
62-
group: cert-manager.io
61+
- source:
62+
fieldPath: metadata.namespace
63+
group: cert-manager.io
64+
kind: Certificate
65+
name: azureserviceoperator-serving-cert
66+
version: v1
67+
targets:
68+
- fieldPaths:
69+
- metadata.annotations.cert-manager\.io/inject-ca-from
70+
options:
71+
delimiter: /
72+
select:
73+
annotationSelector: cert-manager.io/inject-ca-from
6374
version: v1
75+
- fieldPaths:
76+
- spec.dnsNames.0
77+
- spec.dnsNames.1
78+
options:
79+
delimiter: .
80+
index: 1
81+
select:
82+
group: cert-manager.io
83+
kind: Certificate
6484
name: azureserviceoperator-serving-cert
65-
fieldPath: metadata.namespace
66-
targets:
67-
- select:
68-
version: v1
69-
annotationSelector: cert-manager.io/inject-ca-from
70-
fieldPaths:
71-
- metadata.annotations.cert-manager\.io/inject-ca-from
72-
options:
73-
delimiter: /
74-
index: 0
75-
- select:
76-
group: cert-manager.io
77-
version: v1
78-
kind: Certificate
79-
name: azureserviceoperator-serving-cert
80-
fieldPaths:
81-
- spec.dnsNames.0
82-
- spec.dnsNames.1
83-
options:
84-
delimiter: .
85-
index: 1
85+
version: v1

config/capz/kustomization.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
apiVersion: kustomize.config.k8s.io/v1beta1
2+
kind: Kustomization
13
namespace: capz-system
2-
34
namePrefix: capz-
45

56
# Labels to add to all resources and selectors.
@@ -51,7 +52,6 @@ replacements:
5152
index: 1
5253
select:
5354
annotationSelector: cert-manager.io/inject-ca-from
54-
5555
- source: # SERVICE_NAMESPACE
5656
fieldPath: metadata.namespace
5757
kind: Service
@@ -79,7 +79,6 @@ replacements:
7979
name: serving-cert
8080
namespace: system
8181
version: v1
82-
8382
- source: # SERVICE_NAME
8483
kind: Service
8584
name: webhook-service

config/certmanager/kustomization.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
apiVersion: kustomize.config.k8s.io/v1beta1
2+
kind: Kustomization
13
resources:
2-
- certificate.yaml
4+
- certificate.yaml
35
configurations:
4-
- kustomizeconfig.yaml
6+
- kustomizeconfig.yaml

config/crd/kustomization.yaml

Lines changed: 67 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -1,79 +1,80 @@
11
# This kustomization.yaml is not intended to be run by itself,
22
# since it depends on service name and namespace that are out of this kustomize package.
33
# It should be run by config/
4+
apiVersion: kustomize.config.k8s.io/v1beta1
5+
kind: Kustomization
46

57
resources:
6-
- bases/infrastructure.cluster.x-k8s.io_azuremachines.yaml
7-
- bases/infrastructure.cluster.x-k8s.io_azureclusters.yaml
8-
- bases/infrastructure.cluster.x-k8s.io_azureclustertemplates.yaml
9-
- bases/infrastructure.cluster.x-k8s.io_azuremachinetemplates.yaml
10-
- bases/infrastructure.cluster.x-k8s.io_azureclusteridentities.yaml
11-
- bases/infrastructure.cluster.x-k8s.io_azuremachinepools.yaml
12-
- bases/infrastructure.cluster.x-k8s.io_azuremanagedmachinepools.yaml
13-
- bases/infrastructure.cluster.x-k8s.io_azuremanagedclusters.yaml
14-
- bases/infrastructure.cluster.x-k8s.io_azuremanagedcontrolplanes.yaml
15-
- bases/infrastructure.cluster.x-k8s.io_azuremachinepoolmachines.yaml
16-
- bases/infrastructure.cluster.x-k8s.io_azuremanagedclustertemplates.yaml
17-
- bases/infrastructure.cluster.x-k8s.io_azuremanagedcontrolplanetemplates.yaml
18-
- bases/infrastructure.cluster.x-k8s.io_azuremanagedmachinepooltemplates.yaml
19-
- bases/infrastructure.cluster.x-k8s.io_azureasomanagedclusters.yaml
20-
- bases/infrastructure.cluster.x-k8s.io_azureasomanagedclustertemplates.yaml
21-
- bases/infrastructure.cluster.x-k8s.io_azureasomanagedcontrolplanes.yaml
22-
- bases/infrastructure.cluster.x-k8s.io_azureasomanagedcontrolplanetemplates.yaml
23-
- bases/infrastructure.cluster.x-k8s.io_azureasomanagedmachinepools.yaml
24-
- bases/infrastructure.cluster.x-k8s.io_azureasomanagedmachinepooltemplates.yaml
8+
- bases/infrastructure.cluster.x-k8s.io_azuremachines.yaml
9+
- bases/infrastructure.cluster.x-k8s.io_azureclusters.yaml
10+
- bases/infrastructure.cluster.x-k8s.io_azureclustertemplates.yaml
11+
- bases/infrastructure.cluster.x-k8s.io_azuremachinetemplates.yaml
12+
- bases/infrastructure.cluster.x-k8s.io_azureclusteridentities.yaml
13+
- bases/infrastructure.cluster.x-k8s.io_azuremachinepools.yaml
14+
- bases/infrastructure.cluster.x-k8s.io_azuremanagedmachinepools.yaml
15+
- bases/infrastructure.cluster.x-k8s.io_azuremanagedclusters.yaml
16+
- bases/infrastructure.cluster.x-k8s.io_azuremanagedcontrolplanes.yaml
17+
- bases/infrastructure.cluster.x-k8s.io_azuremachinepoolmachines.yaml
18+
- bases/infrastructure.cluster.x-k8s.io_azuremanagedclustertemplates.yaml
19+
- bases/infrastructure.cluster.x-k8s.io_azuremanagedcontrolplanetemplates.yaml
20+
- bases/infrastructure.cluster.x-k8s.io_azuremanagedmachinepooltemplates.yaml
21+
- bases/infrastructure.cluster.x-k8s.io_azureasomanagedclusters.yaml
22+
- bases/infrastructure.cluster.x-k8s.io_azureasomanagedclustertemplates.yaml
23+
- bases/infrastructure.cluster.x-k8s.io_azureasomanagedcontrolplanes.yaml
24+
- bases/infrastructure.cluster.x-k8s.io_azureasomanagedcontrolplanetemplates.yaml
25+
- bases/infrastructure.cluster.x-k8s.io_azureasomanagedmachinepools.yaml
26+
- bases/infrastructure.cluster.x-k8s.io_azureasomanagedmachinepooltemplates.yaml
2527
# +kubebuilder:scaffold:crdkustomizeresource
2628

27-
2829
patches:
29-
# [WEBHOOK] To enable webhook, uncomment all the sections with [WEBHOOK] prefix.
30-
# patches here are for enabling the conversion webhook for each CRD
31-
- path: patches/webhook_in_azuremachines.yaml
32-
- path: patches/webhook_in_azureclusters.yaml
33-
- path: patches/webhook_in_azureclustertemplates.yaml
34-
- path: patches/webhook_in_azureclusteridentities.yaml
35-
- path: patches/webhook_in_azuremachinetemplates.yaml
36-
- path: patches/webhook_in_azuremachinepools.yaml
37-
- path: patches/webhook_in_azuremachinepoolmachines.yaml
38-
# - path: patches/webhook_in_azuremanagedmachinepools.yaml
39-
# - path: patches/webhook_in_azuremanagedclusters.yaml
40-
# - path: patches/webhook_in_azuremanagedcontrolplanes.yaml
41-
# +kubebuilder:scaffold:crdkustomizewebhookpatch
30+
# [WEBHOOK] To enable webhook, uncomment all the sections with [WEBHOOK] prefix.
31+
# patches here are for enabling the conversion webhook for each CRD
32+
- path: patches/webhook_in_azuremachines.yaml
33+
- path: patches/webhook_in_azureclusters.yaml
34+
- path: patches/webhook_in_azureclustertemplates.yaml
35+
- path: patches/webhook_in_azureclusteridentities.yaml
36+
- path: patches/webhook_in_azuremachinetemplates.yaml
37+
- path: patches/webhook_in_azuremachinepools.yaml
38+
- path: patches/webhook_in_azuremachinepoolmachines.yaml
39+
# - path: patches/webhook_in_azuremanagedmachinepools.yaml
40+
# - path: patches/webhook_in_azuremanagedclusters.yaml
41+
# - path: patches/webhook_in_azuremanagedcontrolplanes.yaml
42+
# +kubebuilder:scaffold:crdkustomizewebhookpatch
4243

43-
# [CERTMANAGER] To enable webhook, uncomment all the sections with [CERTMANAGER] prefix.
44-
# patches here are for enabling the CA injection for each CRD
45-
- path: patches/cainjection_in_azuremachines.yaml
46-
- path: patches/cainjection_in_azureclusters.yaml
47-
- path: patches/cainjection_in_azureclustertemplates.yaml
48-
- path: patches/cainjection_in_azureclusteridentities.yaml
49-
- path: patches/cainjection_in_azuremachinetemplates.yaml
50-
- path: patches/cainjection_in_azuremachinepools.yaml
51-
- path: patches/cainjection_in_azuremachinepoolmachines.yaml
52-
# - path: patches/cainjection_in_azuremanagedmachinepools.yaml
53-
# - path: patches/cainjection_in_azuremanagedclusters.yaml
54-
# - path: patches/cainjection_in_azuremanagedcontrolplanes.yaml
55-
# +kubebuilder:scaffold:crdkustomizecainjectionpatch
44+
# [CERTMANAGER] To enable webhook, uncomment all the sections with [CERTMANAGER] prefix.
45+
# patches here are for enabling the CA injection for each CRD
46+
- path: patches/cainjection_in_azuremachines.yaml
47+
- path: patches/cainjection_in_azureclusters.yaml
48+
- path: patches/cainjection_in_azureclustertemplates.yaml
49+
- path: patches/cainjection_in_azureclusteridentities.yaml
50+
- path: patches/cainjection_in_azuremachinetemplates.yaml
51+
- path: patches/cainjection_in_azuremachinepools.yaml
52+
- path: patches/cainjection_in_azuremachinepoolmachines.yaml
53+
# - path: patches/cainjection_in_azuremanagedmachinepools.yaml
54+
# - path: patches/cainjection_in_azuremanagedclusters.yaml
55+
# - path: patches/cainjection_in_azuremanagedcontrolplanes.yaml
56+
# +kubebuilder:scaffold:crdkustomizecainjectionpatch
5657

57-
- path: patches/capicontract_in_azuremachines.yaml
58-
- path: patches/capicontract_in_azureclusters.yaml
59-
- path: patches/capicontract_in_azureclustertemplates.yaml
60-
- path: patches/capicontract_in_azuremachinetemplates.yaml
61-
- path: patches/capicontract_in_azureclusteridentities.yaml
62-
- path: patches/capicontract_in_azuremachinepools.yaml
63-
- path: patches/capicontract_in_azuremanagedmachinepools.yaml
64-
- path: patches/capicontract_in_azuremanagedclusters.yaml
65-
- path: patches/capicontract_in_azuremanagedcontrolplanes.yaml
66-
- path: patches/capicontract_in_azuremachinepoolmachines.yaml
67-
- path: patches/capicontract_in_azuremanagedclustertemplates.yaml
68-
- path: patches/capicontract_in_azuremanagedcontrolplanetemplates.yaml
69-
- path: patches/capicontract_in_azuremanagedmachinepooltemplates.yaml
70-
- path: patches/capicontract_in_azureasomanagedclusters.yaml
71-
- path: patches/capicontract_in_azureasomanagedclustertemplates.yaml
72-
- path: patches/capicontract_in_azureasomanagedcontrolplanes.yaml
73-
- path: patches/capicontract_in_azureasomanagedcontrolplanetemplates.yaml
74-
- path: patches/capicontract_in_azureasomanagedmachinepools.yaml
75-
- path: patches/capicontract_in_azureasomanagedmachinepooltemplates.yaml
58+
- path: patches/capicontract_in_azuremachines.yaml
59+
- path: patches/capicontract_in_azureclusters.yaml
60+
- path: patches/capicontract_in_azureclustertemplates.yaml
61+
- path: patches/capicontract_in_azuremachinetemplates.yaml
62+
- path: patches/capicontract_in_azureclusteridentities.yaml
63+
- path: patches/capicontract_in_azuremachinepools.yaml
64+
- path: patches/capicontract_in_azuremanagedmachinepools.yaml
65+
- path: patches/capicontract_in_azuremanagedclusters.yaml
66+
- path: patches/capicontract_in_azuremanagedcontrolplanes.yaml
67+
- path: patches/capicontract_in_azuremachinepoolmachines.yaml
68+
- path: patches/capicontract_in_azuremanagedclustertemplates.yaml
69+
- path: patches/capicontract_in_azuremanagedcontrolplanetemplates.yaml
70+
- path: patches/capicontract_in_azuremanagedmachinepooltemplates.yaml
71+
- path: patches/capicontract_in_azureasomanagedclusters.yaml
72+
- path: patches/capicontract_in_azureasomanagedclustertemplates.yaml
73+
- path: patches/capicontract_in_azureasomanagedcontrolplanes.yaml
74+
- path: patches/capicontract_in_azureasomanagedcontrolplanetemplates.yaml
75+
- path: patches/capicontract_in_azureasomanagedmachinepools.yaml
76+
- path: patches/capicontract_in_azureasomanagedmachinepooltemplates.yaml
7677

7778
# the following config is for teaching kustomize how to do kustomization for CRDs.
7879
configurations:
79-
- kustomizeconfig.yaml
80+
- kustomizeconfig.yaml

config/default/kustomization.yaml

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,25 @@
1+
apiVersion: kustomize.config.k8s.io/v1beta1
2+
kind: Kustomization
13
resources:
2-
- ../capz
4+
- ../capz
35

46
components:
5-
- ../aso
7+
- ../aso
68

79
replacements:
8-
- source:
9-
kind: Deployment
10-
name: capz-controller-manager
11-
fieldPath: spec.template.spec.containers.[name=manager].image
12-
options:
13-
delimiter: ':'
14-
index: 1
15-
targets:
16-
- select:
17-
kind: Secret
18-
name: aso-controller-settings
19-
fieldPaths:
20-
- stringData.AZURE_USER_AGENT_SUFFIX
21-
options:
22-
delimiter: '/'
23-
index: 1
10+
- source:
11+
fieldPath: spec.template.spec.containers.[name=manager].image
12+
kind: Deployment
13+
name: capz-controller-manager
14+
options:
15+
delimiter: ':'
16+
index: 1
17+
targets:
18+
- fieldPaths:
19+
- stringData.AZURE_USER_AGENT_SUFFIX
20+
options:
21+
delimiter: /
22+
index: 1
23+
select:
24+
kind: Secret
25+
name: aso-controller-settings

config/manager/kustomization.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
apiVersion: kustomize.config.k8s.io/v1beta1
22
kind: Kustomization
33
resources:
4-
- manager.yaml
5-
4+
- manager.yaml

config/rbac/kustomization.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
apiVersion: kustomize.config.k8s.io/v1beta1
22
kind: Kustomization
33
resources:
4-
- role.yaml
5-
- role_binding.yaml
6-
- service_account.yaml
7-
- leader_election_role.yaml
8-
- leader_election_role_binding.yaml
4+
- role.yaml
5+
- role_binding.yaml
6+
- service_account.yaml
7+
- leader_election_role.yaml
8+
- leader_election_role_binding.yaml

0 commit comments

Comments
 (0)