From d54356e113785677246fe3d3c1b017ca9e24f1db Mon Sep 17 00:00:00 2001 From: Max Gautier Date: Tue, 10 Sep 2024 17:38:56 +0200 Subject: [PATCH] Add testcase for kubeadm_patches --- .../packet_ubuntu24-calico-etcd-datastore.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/tests/files/packet_ubuntu24-calico-etcd-datastore.yml b/tests/files/packet_ubuntu24-calico-etcd-datastore.yml index 4f35d2f87..7a27ce566 100644 --- a/tests/files/packet_ubuntu24-calico-etcd-datastore.yml +++ b/tests/files/packet_ubuntu24-calico-etcd-datastore.yml @@ -27,3 +27,20 @@ containerd_registries_mirrors: skip_verify: true calico_datastore: "etcd" + +# Test kubeadm patches +kubeadm_patches: + - target: kube-apiserver + patch: + metadata: + annotations: + example.com/test: "true" + labels: + example.com/prod_level: "prep" + - target: kube-controller-manager + patch: + metadata: + annotations: + example.com/test: "false" + labels: + example.com/prod_level: "prep"