diff --git a/class/cert-manager.yml b/class/cert-manager.yml index 3af163af..2efcd676 100644 --- a/class/cert-manager.yml +++ b/class/cert-manager.yml @@ -20,6 +20,7 @@ parameters: helm_params: name: cert-manager namespace: ${cert_manager:namespace} + kube_version: ${cert_manager:kubernetes_version} - output_path: cert-manager/ input_type: jsonnet output_type: yaml diff --git a/class/defaults.yml b/class/defaults.yml index dd15c8ac..97c44a13 100644 --- a/class/defaults.yml +++ b/class/defaults.yml @@ -1,6 +1,10 @@ parameters: cert_manager: namespace: syn-cert-manager + + # Used when rendering the Helm chart + kubernetes_version: "1.27" + dns01-recursive-nameservers: "1.1.1.1:53" charts: cert-manager: v1.13.5 diff --git a/docs/modules/ROOT/pages/references/parameters.adoc b/docs/modules/ROOT/pages/references/parameters.adoc index efed5789..c9e5537f 100644 --- a/docs/modules/ROOT/pages/references/parameters.adoc +++ b/docs/modules/ROOT/pages/references/parameters.adoc @@ -13,6 +13,16 @@ The namespace in which to install cert-manager. The component always adds label `openshift.io/cluster-monitoring=true` to the namespace. Additionally, if component `prometheus` is installed on the cluster, the component registers the namespace to be monitored through the default Prometheus stack managed by that component. +== `kubernetes_version` + +[horizontal] +type:: string +default:: https://github.com/projectsyn/component-cert-manager/blob/master/class/defaults.yml[See `class/defaults.yml`] + +The Kubernetes version to provide to `helm template` when rendering the Helm chart. + +TIP: Set this parameter to `${dynamic_facts:kubernetesVersion:major}.${dynamic_facts:kubernetesVersion.minor}` to use the cluster's reported Kubernetes version when rendering the Helm chart. + == `charts:cert-manager` [horizontal]