Skip to content

Commit 125eb22

Browse files
committed
Fix kustomize deprecations in ci templates
1 parent 37a1c82 commit 125eb22

File tree

20 files changed

+320
-328
lines changed

20 files changed

+320
-328
lines changed

templates/test/ci/prow-aks-clusterclass/kustomization.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ apiVersion: kustomize.config.k8s.io/v1beta1
22
kind: Kustomization
33
namespace: default
44
resources:
5-
- ../../../flavors/aks-clusterclass
6-
- ../../../flavors/aks-topology
7-
patchesStrategicMerge:
8-
- patches/tags-aks-clusterclass.yaml
9-
- patches/aks-clusterclass-pool0.yaml
10-
- patches/aks-clusterclass-pool1.yaml
11-
- patches/cluster.yaml
12-
- patches/addons.yaml
13-
- patches/kubeadm-config-template.yaml
14-
- patches.yaml
5+
- ../../../flavors/aks-clusterclass
6+
- ../../../flavors/aks-topology
7+
patches:
8+
- path: patches/tags-aks-clusterclass.yaml
9+
- path: patches/aks-clusterclass-pool0.yaml
10+
- path: patches/aks-clusterclass-pool1.yaml
11+
- path: patches/cluster.yaml
12+
- path: patches/addons.yaml
13+
- path: patches/kubeadm-config-template.yaml
14+
- path: patches.yaml

templates/test/ci/prow-aks/kustomization.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ apiVersion: kustomize.config.k8s.io/v1beta1
22
kind: Kustomization
33
namespace: default
44
resources:
5-
- ../../../flavors/aks
6-
- patches/aks-pool2.yaml
7-
patchesStrategicMerge:
8-
- ../patches/tags-aks.yaml
9-
- patches/aks-pool0.yaml
10-
- patches/aks-pool1.yaml
11-
- patches/addons.yaml
5+
- ../../../flavors/aks
6+
- patches/aks-pool2.yaml
7+
patches:
8+
- path: ../patches/tags-aks.yaml
9+
- path: patches/aks-pool0.yaml
10+
- path: patches/aks-pool1.yaml
11+
- path: patches/addons.yaml

templates/test/ci/prow-azure-cni-v1/kustomization.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ apiVersion: kustomize.config.k8s.io/v1beta1
22
kind: Kustomization
33
namespace: default
44
resources:
5-
- ../../../flavors/azure-cni-v1/
6-
- ../../../addons/cluster-api-helm/azuredisk-csi-driver.yaml
7-
- ../../../addons/cluster-api-helm/cloud-provider-azure.yaml
8-
- ../../../addons/cluster-api-helm/cloud-provider-azure-ci.yaml
9-
patchesStrategicMerge:
10-
- ../patches/tags.yaml
11-
- ../patches/controller-manager.yaml
12-
- ../patches/cluster-label-cloud-provider-azure.yaml
5+
- ../../../flavors/azure-cni-v1/
6+
- ../../../addons/cluster-api-helm/azuredisk-csi-driver.yaml
7+
- ../../../addons/cluster-api-helm/cloud-provider-azure.yaml
8+
- ../../../addons/cluster-api-helm/cloud-provider-azure-ci.yaml
9+
patches:
10+
- path: ../patches/tags.yaml
11+
- path: ../patches/controller-manager.yaml
12+
- path: ../patches/cluster-label-cloud-provider-azure.yaml

templates/test/ci/prow-ci-version-dual-stack/kustomization.yaml

Lines changed: 24 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,29 @@ apiVersion: kustomize.config.k8s.io/v1beta1
22
kind: Kustomization
33
namespace: default
44
resources:
5-
- ../prow-ci-version
6-
- ../../../addons/cluster-api-helm/calico-dual-stack.yaml
7-
patchesStrategicMerge:
8-
- ../../../flavors/dual-stack/patches/dual-stack.yaml
9-
- ../../../flavors/dual-stack/patches/controlplane-azuremachinetemplate.yaml
10-
- ../../../flavors/dual-stack/patches/kubeadm-controlplane.yaml
11-
- ../prow-dual-stack/patches/cluster-label-calico-dual-stack.yaml
12-
- patches/machine-deployment.yaml
13-
- ../patches/windows-addons-disabled.yaml
5+
- ../prow-ci-version
6+
- ../../../addons/cluster-api-helm/calico-dual-stack.yaml
147
patches:
15-
- target:
16-
kind: HelmChartProxy
8+
- patch: |
9+
$patch: delete
10+
apiVersion: addons.cluster.x-k8s.io/v1alpha1
11+
kind: HelmChartProxy
12+
metadata:
1713
name: calico
18-
patch: |
19-
$patch: delete
20-
apiVersion: addons.cluster.x-k8s.io/v1alpha1
21-
kind: HelmChartProxy
22-
metadata:
23-
name: calico
24-
- target:
25-
name: ".*-win.*"
26-
patch: |
27-
$patch: delete
28-
apiVersion: cluster.x-k8s.io/v1beta1
29-
kind: MachineDeployment
30-
metadata:
31-
name: win
14+
target:
15+
kind: HelmChartProxy
16+
name: calico
17+
- patch: |
18+
$patch: delete
19+
apiVersion: cluster.x-k8s.io/v1beta1
20+
kind: MachineDeployment
21+
metadata:
22+
name: win
23+
target:
24+
name: .*-win.*
25+
- path: ../../../flavors/dual-stack/patches/dual-stack.yaml
26+
- path: ../../../flavors/dual-stack/patches/controlplane-azuremachinetemplate.yaml
27+
- path: ../../../flavors/dual-stack/patches/kubeadm-controlplane.yaml
28+
- path: ../prow-dual-stack/patches/cluster-label-calico-dual-stack.yaml
29+
- path: patches/machine-deployment.yaml
30+
- path: ../patches/windows-addons-disabled.yaml

templates/test/ci/prow-ci-version-ipv6/kustomization.yaml

Lines changed: 24 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,29 @@ apiVersion: kustomize.config.k8s.io/v1beta1
22
kind: Kustomization
33
namespace: default
44
resources:
5-
- ../prow-ci-version
6-
- ../../../addons/cluster-api-helm/calico-ipv6.yaml
7-
patchesStrategicMerge:
8-
- ../../../flavors/ipv6/patches/ipv6.yaml
9-
- ../../../flavors/ipv6/patches/controlplane-azuremachinetemplate.yaml
10-
- ../../../flavors/ipv6/patches/kubeadm-controlplane.yaml
11-
- ../prow-ipv6/patches/cluster-label-calico-ipv6.yaml
12-
- patches/machine-deployment.yaml
13-
- ../patches/windows-addons-disabled.yaml
5+
- ../prow-ci-version
6+
- ../../../addons/cluster-api-helm/calico-ipv6.yaml
147
patches:
15-
- target:
16-
kind: HelmChartProxy
8+
- patch: |
9+
$patch: delete
10+
apiVersion: addons.cluster.x-k8s.io/v1alpha1
11+
kind: HelmChartProxy
12+
metadata:
1713
name: calico
18-
patch: |
19-
$patch: delete
20-
apiVersion: addons.cluster.x-k8s.io/v1alpha1
21-
kind: HelmChartProxy
22-
metadata:
23-
name: calico
24-
- target:
25-
name: ".*-win.*"
26-
patch: |
27-
$patch: delete
28-
apiVersion: cluster.x-k8s.io/v1beta1
29-
kind: MachineDeployment
30-
metadata:
31-
name: win
14+
target:
15+
kind: HelmChartProxy
16+
name: calico
17+
- patch: |
18+
$patch: delete
19+
apiVersion: cluster.x-k8s.io/v1beta1
20+
kind: MachineDeployment
21+
metadata:
22+
name: win
23+
target:
24+
name: .*-win.*
25+
- path: ../../../flavors/ipv6/patches/ipv6.yaml
26+
- path: ../../../flavors/ipv6/patches/controlplane-azuremachinetemplate.yaml
27+
- path: ../../../flavors/ipv6/patches/kubeadm-controlplane.yaml
28+
- path: ../prow-ipv6/patches/cluster-label-calico-ipv6.yaml
29+
- path: patches/machine-deployment.yaml
30+
- path: ../patches/windows-addons-disabled.yaml

templates/test/ci/prow-ci-version/kustomization.yaml

Lines changed: 38 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -2,70 +2,69 @@ apiVersion: kustomize.config.k8s.io/v1beta1
22
kind: Kustomization
33
namespace: default
44
resources:
5-
- ../prow
6-
- ../../../addons/metrics-server/metrics-server-resource-set.yaml
7-
patchesStrategicMerge:
8-
- ../patches/control-plane-image-ci-version.yaml
9-
- ../patches/controller-manager.yaml
10-
- ../patches/windows-feature-gates.yaml
11-
- ../patches/windows-containerd-labels.yaml
12-
- ../patches/windows-machine-deployment-replicas.yaml
13-
- patches/machine-deployment-ci-version.yaml
14-
- patches/machine-deployment-ci-version-windows.yaml
15-
- ../patches/metrics-server-enabled-cluster.yaml
16-
- ../patches/controller-manager-featuregates.yaml
5+
- ../prow
6+
- ../../../addons/metrics-server/metrics-server-resource-set.yaml
177
patches:
18-
- target:
8+
- path: patches/oot-credential-provider.yaml
9+
target:
1910
group: bootstrap.cluster.x-k8s.io
20-
version: v1beta1
2111
kind: KubeadmConfigTemplate
2212
name: .*-md-0
2313
namespace: default
24-
path: patches/oot-credential-provider.yaml
25-
- target:
26-
group: bootstrap.cluster.x-k8s.io
2714
version: v1beta1
15+
- path: patches/oot-credential-provider-win.yaml
16+
target:
17+
group: bootstrap.cluster.x-k8s.io
2818
kind: KubeadmConfigTemplate
2919
name: .*-md-win
3020
namespace: default
31-
path: patches/oot-credential-provider-win.yaml
32-
- target:
33-
group: controlplane.cluster.x-k8s.io
3421
version: v1beta1
22+
- path: patches/oot-credential-provider-kcp.yaml
23+
target:
24+
group: controlplane.cluster.x-k8s.io
3525
kind: KubeadmControlPlane
3626
name: .*-control-plane
37-
path: patches/oot-credential-provider-kcp.yaml
38-
- target:
39-
group: bootstrap.cluster.x-k8s.io
4027
version: v1beta1
28+
- path: patches/kubeadm-bootstrap.yaml
29+
target:
30+
group: bootstrap.cluster.x-k8s.io
4131
kind: KubeadmConfigTemplate
4232
name: .*-md-0
4333
namespace: default
44-
path: patches/kubeadm-bootstrap.yaml
45-
- target:
46-
group: bootstrap.cluster.x-k8s.io
4734
version: v1beta1
35+
- path: patches/kubeadm-bootstrap-windows-k8s-ci-binaries.yaml
36+
target:
37+
group: bootstrap.cluster.x-k8s.io
4838
kind: KubeadmConfigTemplate
4939
name: .*-md-win
5040
namespace: default
51-
path: patches/kubeadm-bootstrap-windows-k8s-ci-binaries.yaml
52-
- target:
53-
group: controlplane.cluster.x-k8s.io
5441
version: v1beta1
42+
- path: ../patches/control-plane-kubeadm-boostrap-ci-version.yaml
43+
target:
44+
group: controlplane.cluster.x-k8s.io
5545
kind: KubeadmControlPlane
5646
name: .*-control-plane
57-
path: ../patches/control-plane-kubeadm-boostrap-ci-version.yaml
47+
version: v1beta1
48+
- path: ../patches/control-plane-image-ci-version.yaml
49+
- path: ../patches/controller-manager.yaml
50+
- path: ../patches/windows-feature-gates.yaml
51+
- path: ../patches/windows-containerd-labels.yaml
52+
- path: ../patches/windows-machine-deployment-replicas.yaml
53+
- path: patches/machine-deployment-ci-version.yaml
54+
- path: patches/machine-deployment-ci-version-windows.yaml
55+
- path: ../patches/metrics-server-enabled-cluster.yaml
56+
- path: ../patches/controller-manager-featuregates.yaml
5857
configMapGenerator:
59-
- name: cni-${CLUSTER_NAME}-calico-windows
60-
behavior: merge
61-
files:
62-
- kube-proxy-patch=../patches/windows-kubeproxy-ci.yaml
63-
- name: metrics-server-${CLUSTER_NAME}
64-
files:
65-
- metrics-server=../../../addons/metrics-server/metrics-server.yaml
58+
- behavior: merge
59+
files:
60+
- kube-proxy-patch=../patches/windows-kubeproxy-ci.yaml
61+
name: cni-${CLUSTER_NAME}-calico-windows
62+
- files:
63+
- metrics-server=../../../addons/metrics-server/metrics-server.yaml
64+
name: metrics-server-${CLUSTER_NAME}
6665
generatorOptions:
66+
annotations:
67+
note: generated
6768
disableNameSuffixHash: true
6869
labels:
6970
type: generated
70-
annotations:
71-
note: generated

templates/test/ci/prow-clusterclass-ci-default/kustomization.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ apiVersion: kustomize.config.k8s.io/v1beta1
22
kind: Kustomization
33
namespace: default
44
resources:
5-
- ../../../flavors/clusterclass/clusterclass.yaml
6-
- ../../../flavors/clusterclass/kubeadm-controlplane-template.yaml
7-
- ../../../flavors/clusterclass/azure-cluster-template.yaml
8-
- ../../../flavors/clusterclass/azure-machine-template-controlplane.yaml
9-
- kubeadm-config-template.yaml
10-
- windows.yaml
11-
- ../../../azure-cluster-identity
12-
patchesStrategicMerge:
13-
- patches.yaml
14-
- variables.yaml
5+
- ../../../flavors/clusterclass/clusterclass.yaml
6+
- ../../../flavors/clusterclass/kubeadm-controlplane-template.yaml
7+
- ../../../flavors/clusterclass/azure-cluster-template.yaml
8+
- ../../../flavors/clusterclass/azure-machine-template-controlplane.yaml
9+
- kubeadm-config-template.yaml
10+
- windows.yaml
11+
- ../../../azure-cluster-identity
12+
patches:
13+
- path: patches.yaml
14+
- path: variables.yaml

templates/test/ci/prow-custom-vnet/kustomization.yaml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@ apiVersion: kustomize.config.k8s.io/v1beta1
22
kind: Kustomization
33
namespace: default
44
resources:
5-
- ../../../flavors/default
6-
- ../prow/mhc.yaml
7-
- ../../../addons/cluster-api-helm/calico.yaml
8-
- ../../../addons/cluster-api-helm/azuredisk-csi-driver.yaml
9-
- ../../../addons/cluster-api-helm/cloud-provider-azure.yaml
10-
- ../../../addons/cluster-api-helm/cloud-provider-azure-ci.yaml
11-
patchesStrategicMerge:
12-
- ../patches/tags.yaml
13-
- ../patches/mhc.yaml
14-
- ../patches/controller-manager.yaml
15-
- patches/custom-vnet.yaml
16-
- ../patches/uami-md-0.yaml
17-
- ../patches/uami-control-plane.yaml
18-
- ../patches/cluster-label-calico.yaml
19-
- ../patches/cluster-label-cloud-provider-azure.yaml
5+
- ../../../flavors/default
6+
- ../prow/mhc.yaml
7+
- ../../../addons/cluster-api-helm/calico.yaml
8+
- ../../../addons/cluster-api-helm/azuredisk-csi-driver.yaml
9+
- ../../../addons/cluster-api-helm/cloud-provider-azure.yaml
10+
- ../../../addons/cluster-api-helm/cloud-provider-azure-ci.yaml
11+
patches:
12+
- path: ../patches/tags.yaml
13+
- path: ../patches/mhc.yaml
14+
- path: ../patches/controller-manager.yaml
15+
- path: patches/custom-vnet.yaml
16+
- path: ../patches/uami-md-0.yaml
17+
- path: ../patches/uami-control-plane.yaml
18+
- path: ../patches/cluster-label-calico.yaml
19+
- path: ../patches/cluster-label-cloud-provider-azure.yaml

templates/test/ci/prow-dual-stack/kustomization.yaml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@ apiVersion: kustomize.config.k8s.io/v1beta1
22
kind: Kustomization
33
namespace: default
44
resources:
5-
- ../../../flavors/dual-stack
6-
- machine-pool-dualstack.yaml
7-
- ../../../addons/cluster-api-helm/calico-dual-stack.yaml
8-
- ../../../addons/cluster-api-helm/azuredisk-csi-driver.yaml
9-
- ../../../addons/cluster-api-helm/cloud-provider-azure.yaml
10-
- ../../../addons/cluster-api-helm/cloud-provider-azure-ci.yaml
11-
patchesStrategicMerge:
12-
- ../patches/tags.yaml
13-
- ../patches/controller-manager.yaml
14-
- patches/azure-machine-template-control-plane.yaml
15-
- patches/azure-machine-template.yaml
16-
- patches/cluster-label-calico-dual-stack.yaml
17-
- ../patches/cluster-label-cloud-provider-azure.yaml
5+
- ../../../flavors/dual-stack
6+
- machine-pool-dualstack.yaml
7+
- ../../../addons/cluster-api-helm/calico-dual-stack.yaml
8+
- ../../../addons/cluster-api-helm/azuredisk-csi-driver.yaml
9+
- ../../../addons/cluster-api-helm/cloud-provider-azure.yaml
10+
- ../../../addons/cluster-api-helm/cloud-provider-azure-ci.yaml
11+
patches:
12+
- path: ../patches/tags.yaml
13+
- path: ../patches/controller-manager.yaml
14+
- path: patches/azure-machine-template-control-plane.yaml
15+
- path: patches/azure-machine-template.yaml
16+
- path: patches/cluster-label-calico-dual-stack.yaml
17+
- path: ../patches/cluster-label-cloud-provider-azure.yaml

0 commit comments

Comments
 (0)