Skip to content

Commit ce86cd7

Browse files
committed
Fix kustomize deprecations in flavors and addons
1 parent 4051e92 commit ce86cd7

File tree

24 files changed

+184
-171
lines changed

24 files changed

+184
-171
lines changed
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
3-
43
resources:
5-
- https://raw.githubusercontent.com/Azure/azure-container-networking/4034aad0d7085f2a9e96cce6d2b50b81ea9ec900/hack/manifests/cni-installer-v1.yaml
4+
- https://raw.githubusercontent.com/Azure/azure-container-networking/4034aad0d7085f2a9e96cce6d2b50b81ea9ec900/hack/manifests/cni-installer-v1.yaml
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: kustomize.config.k8s.io/v1beta1
22
kind: Kustomization
33
resources:
4-
- ../calico-ipv6
5-
patchesStrategicMerge:
6-
- patches/calico-config.yaml
4+
- ../calico-ipv6
5+
patches:
6+
- path: patches/calico-config.yaml
Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,19 @@
11
apiVersion: kustomize.config.k8s.io/v1beta1
22
kind: Kustomization
33
resources:
4-
- calico-policy-only.yaml
5-
patchesStrategicMerge:
6-
- patches/azure-mtu.yaml
7-
- patches/calico-config.yaml
4+
- calico-policy-only.yaml
85
patches:
9-
- target:
6+
- path: patches/calico-node.yaml
7+
target:
108
group: apps
11-
version: v1
129
kind: DaemonSet
1310
name: calico-node
1411
namespace: kube-system
15-
path: patches/calico-node.yaml
12+
version: v1
1613
- path: patches/control-plane-tolerations.yaml
1714
target:
1815
kind: Deployment
1916
name: calico-kube-controllers
2017
namespace: kube-system
18+
- path: patches/azure-mtu.yaml
19+
- path: patches/calico-config.yaml
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
apiVersion: kustomize.config.k8s.io/v1beta1
22
kind: Kustomization
33
resources:
4-
- calico-vxlan.yaml
5-
patchesStrategicMerge:
6-
- patches/azure-mtu.yaml
4+
- calico-vxlan.yaml
75
patches:
86
- path: patches/calico-node.yaml
97
target:
@@ -13,3 +11,4 @@ patches:
1311
kind: Deployment
1412
name: calico-kube-controllers
1513
namespace: kube-system
14+
- path: patches/azure-mtu.yaml

templates/addons/metrics-server/kustomization.yaml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,13 @@ apiVersion: kustomize.config.k8s.io/v1beta1
22
kind: Kustomization
33
namespace: kube-system
44
resources:
5-
- https://github.com/kubernetes-sigs/metrics-server/releases/download/v0.6.3/components.yaml
6-
patchesStrategicMerge:
7-
- patches/control-plane-toleration.yaml
5+
- https://github.com/kubernetes-sigs/metrics-server/releases/download/v0.6.3/components.yaml
86
patches:
9-
- target:
7+
- path: patches/temp-use-insecure-https.yaml
8+
target:
109
group: apps
11-
version: v1
1210
kind: Deployment
1311
name: metrics-server
1412
namespace: kube-system
15-
path: patches/temp-use-insecure-https.yaml
13+
version: v1
14+
- path: patches/control-plane-toleration.yaml
Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1+
apiVersion: kustomize.config.k8s.io/v1beta1
2+
kind: Kustomization
13
namespace: default
24
resources:
3-
- ../base
4-
- machine-deployment.yaml
5-
- ../../azure-cluster-identity
6-
patchesStrategicMerge:
7-
- patches/kubeadm-controlplane.yaml
8-
- ../../azure-cluster-identity/azurecluster-identity-ref.yaml
5+
- ../base
6+
- machine-deployment.yaml
7+
- ../../azure-cluster-identity
8+
patches:
9+
- path: patches/kubeadm-controlplane.yaml
10+
- path: ../../azure-cluster-identity/azurecluster-identity-ref.yaml

templates/flavors/aks/kustomization.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ namespace: default
44
resources:
55
- cluster-template.yaml
66
- ../../azure-cluster-identity
7-
patchesStrategicMerge:
8-
- ../../azure-cluster-identity/managedazurecluster-identity-ref.yaml
7+
patches:
8+
- path: ../../azure-cluster-identity/managedazurecluster-identity-ref.yaml
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
apiVersion: kustomize.config.k8s.io/v1beta1
2+
kind: Kustomization
13
namespace: default
24
resources:
3-
- ../default
4-
patchesStrategicMerge:
5-
- patches/azure-cluster.yaml
5+
- ../default
6+
patches:
7+
- path: patches/azure-cluster.yaml
Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1+
apiVersion: kustomize.config.k8s.io/v1beta1
2+
kind: Kustomization
13
namespace: default
24
resources:
3-
- ../default
4-
patchesStrategicMerge:
5-
- ../../azure-cluster-identity/azurecluster-identity-ref.yaml
6-
- patches/azure-machine-template-controlplane.yaml
7-
- patches/azure-machine-template.yaml
8-
- patches/kubeadm-control-plane.yaml
9-
- patches/kubeadm-worker-node.yaml
5+
- ../default
6+
patches:
7+
- path: ../../azure-cluster-identity/azurecluster-identity-ref.yaml
8+
- path: patches/azure-machine-template-controlplane.yaml
9+
- path: patches/azure-machine-template.yaml
10+
- path: patches/kubeadm-control-plane.yaml
11+
- path: patches/kubeadm-worker-node.yaml

templates/flavors/base/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1
22
kind: Kustomization
33
namespace: default
44
resources:
5-
- cluster-template.yaml
5+
- cluster-template.yaml

0 commit comments

Comments
 (0)