-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update kustomization.yaml files to new format (#387)
kustomize has deprecated the older format which our older kustomization files were based on. These older format files were leading to a lot of deprecation warnings from kustomize during our build processes. We used kustomize edit fix command to update our old kustomize files to our new kustomize files. This PR was largely auto-generated using the following command. ``` $ find . -type d -exec bash -c 'cd {} && kustomize edit fix' \; ```
- Loading branch information
1 parent
9ccfa89
commit b7bd47d
Showing
41 changed files
with
406 additions
and
403 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
resources: | ||
- monitor.yaml | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,20 @@ | ||
resources: | ||
# All RBAC will be applied under this service account in | ||
# the deployment namespace. You may comment out this resource | ||
# if your manager will use a service account that exists at | ||
# runtime. Be sure to update RoleBinding and ClusterRoleBinding | ||
# subjects if changing service account names. | ||
# Comment the following 4 lines if you want to disable | ||
# the auth proxy (https://github.com/brancz/kube-rbac-proxy) | ||
# which protects your /metrics endpoint. | ||
resources: | ||
- service_account.yaml | ||
- role.yaml | ||
- role_binding.yaml | ||
- leader_election_role.yaml | ||
- leader_election_role_binding.yaml | ||
# Comment the following 4 lines if you want to disable | ||
# the auth proxy (https://github.com/brancz/kube-rbac-proxy) | ||
# which protects your /metrics endpoint. | ||
- auth_proxy_service.yaml | ||
- auth_proxy_role.yaml | ||
- auth_proxy_role_binding.yaml | ||
- auth_proxy_client_clusterrole.yaml | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
|
||
namespace: "${NAMESPACE}" | ||
namespace: ${NAMESPACE} | ||
|
||
bases: | ||
- ../ccm | ||
- ./cm.yaml | ||
- ./secret.yaml | ||
- ./nutanix-cluster.yaml | ||
- ./cluster-without-topology.yaml | ||
- ./kcp.yaml | ||
- ./kct.yaml | ||
- ./nmt.yaml | ||
- ./md.yaml | ||
- ./mhc.yaml | ||
|
||
patchesStrategicMerge: | ||
- ./ccm-patch.yaml | ||
resources: | ||
- ../ccm | ||
- ./cm.yaml | ||
- ./secret.yaml | ||
- ./nutanix-cluster.yaml | ||
- ./cluster-without-topology.yaml | ||
- ./kcp.yaml | ||
- ./kct.yaml | ||
- ./nmt.yaml | ||
- ./md.yaml | ||
- ./mhc.yaml | ||
patches: | ||
- path: ./ccm-patch.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
|
||
bases: | ||
- ./nct.yaml | ||
- ./clusterclass.yaml | ||
- ./nmt-cp.yaml | ||
- ./nmt-md.yaml | ||
- ./kcpt.yaml | ||
- ./kct.yaml | ||
resources: | ||
- ./nct.yaml | ||
- ./clusterclass.yaml | ||
- ./nmt-cp.yaml | ||
- ./nmt-md.yaml | ||
- ./kcpt.yaml | ||
- ./kct.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 10 additions & 12 deletions
22
test/e2e/data/infrastructure-nutanix/v1.2.4/cluster-template/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,12 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
|
||
bases: | ||
- ../base/cluster-with-kcp.yaml | ||
- ../base/secret.yaml | ||
- ../base/cm.yaml | ||
- ../base/nmt.yaml | ||
- ../base/md.yaml | ||
- ../base/mhc.yaml | ||
- ../base/crs.yaml | ||
|
||
patchesStrategicMerge: | ||
- ../base/cni-patch.yaml | ||
resources: | ||
- ../base/cluster-with-kcp.yaml | ||
- ../base/secret.yaml | ||
- ../base/cm.yaml | ||
- ../base/nmt.yaml | ||
- ../base/md.yaml | ||
- ../base/mhc.yaml | ||
- ../base/crs.yaml | ||
patches: | ||
- path: ../base/cni-patch.yaml |
33 changes: 15 additions & 18 deletions
33
test/e2e/data/infrastructure-nutanix/v1.3.0/cluster-template/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,20 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
|
||
configMapGenerator: | ||
- name: nutanix-ccm | ||
behavior: merge | ||
- behavior: merge | ||
files: | ||
- ../base/nutanix-ccm.yaml | ||
|
||
bases: | ||
- ../base/cluster-with-kcp.yaml | ||
- ../base/secret.yaml | ||
- ../base/cm.yaml | ||
- ../base/nmt.yaml | ||
- ../base/crs.yaml | ||
- ../base/md.yaml | ||
- ../base/mhc.yaml | ||
- ../base/nutanix-ccm-crs.yaml | ||
- ../base/nutanix-ccm-secret.yaml | ||
|
||
patchesStrategicMerge: | ||
- ../base/ccm-patch.yaml | ||
- ../base/cni-patch.yaml | ||
name: nutanix-ccm | ||
resources: | ||
- ../base/cluster-with-kcp.yaml | ||
- ../base/secret.yaml | ||
- ../base/cm.yaml | ||
- ../base/nmt.yaml | ||
- ../base/crs.yaml | ||
- ../base/md.yaml | ||
- ../base/mhc.yaml | ||
- ../base/nutanix-ccm-crs.yaml | ||
- ../base/nutanix-ccm-secret.yaml | ||
patches: | ||
- path: ../base/ccm-patch.yaml | ||
- path: ../base/cni-patch.yaml |
12 changes: 7 additions & 5 deletions
12
test/e2e/data/infrastructure-nutanix/v1alpha4/cluster-template/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
bases: | ||
- ../bases/cluster-with-kcp.yaml | ||
- ../bases/md.yaml | ||
- ../bases/mhc.yaml | ||
- ../bases/cm.yaml | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- ../bases/cluster-with-kcp.yaml | ||
- ../bases/md.yaml | ||
- ../bases/mhc.yaml | ||
- ../bases/cm.yaml |
11 changes: 6 additions & 5 deletions
11
...e2e/data/infrastructure-nutanix/v1alpha4/no-kubeproxy/cluster-template/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
bases: | ||
- ../../cluster-template/ | ||
|
||
patchesStrategicMerge: | ||
- ../no-kubeproxy.yaml | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- ../../cluster-template/ | ||
patches: | ||
- path: ../no-kubeproxy.yaml |
11 changes: 6 additions & 5 deletions
11
.../infrastructure-nutanix/v1beta1/cluster-template-additional-categories/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
bases: | ||
- ../cluster-template | ||
|
||
patchesStrategicMerge: | ||
- ./nmt.yaml | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- ../cluster-template | ||
patches: | ||
- path: ./nmt.yaml |
6 changes: 4 additions & 2 deletions
6
.../e2e/data/infrastructure-nutanix/v1beta1/cluster-template-clusterclass/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
bases: | ||
- ../../../../../../templates/clusterclass/ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- ../../../../../../templates/clusterclass/ |
Oops, something went wrong.