From a1373d034887b3fbcb6de8dd4370686fb36da9e1 Mon Sep 17 00:00:00 2001 From: ollestenborg Date: Thu, 21 Sep 2023 16:58:57 +0200 Subject: [PATCH] Update kube_addons.pp According to installation instructions here: https://docs.tigera.io/calico/latest/getting-started/kubernetes/self-managed-onprem/onpremises And a self experienced problem expressed as can be seen below. This got me to submit this fix. Notice: /Stage[main]/Kubernetes::Kube_addons/Exec[Install cni network (preinstall)]/returns: The CustomResourceDefinition "installations.operator.tigera.io" is invalid: metadata.annotations: Too long: must have at most 262144 bytes --- manifests/kube_addons.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/kube_addons.pp b/manifests/kube_addons.pp index 646697d7..31045a41 100644 --- a/manifests/kube_addons.pp +++ b/manifests/kube_addons.pp @@ -79,7 +79,7 @@ 'calico-tigera': { if $cni_network_preinstall { exec { 'Install cni network (preinstall)': - command => ['kubectl', 'apply', '-f', $cni_network_preinstall], + command => ['kubectl', 'create', '-f', $cni_network_preinstall], onlyif => $exec_onlyif, unless => 'kubectl -n tigera-operator get deployments | egrep "^tigera-operator"', environment => $env,