From ad53adef63e93b319450d52c0b6cfae402fd6414 Mon Sep 17 00:00:00 2001 From: Felix Peters Date: Thu, 11 Apr 2024 21:17:37 +0200 Subject: [PATCH] feat: add api_versions and kube_version to helm block --- docs/data-sources/overlay.md | 4 ++++ kustomize/data_source_kustomization_overlay.go | 9 +++++++++ kustomize/data_source_kustomization_overlay_test.go | 5 +++++ 3 files changed, 18 insertions(+) diff --git a/docs/data-sources/overlay.md b/docs/data-sources/overlay.md index 3a4778d..05a4ad2 100644 --- a/docs/data-sources/overlay.md +++ b/docs/data-sources/overlay.md @@ -630,6 +630,8 @@ Must enable helm support via [kustomize_options](#kustomize_options---optional) - `values_file` specify a file with helm values to use for templating. Not specifying this uses the in-chart values file, if one exists. - `values_inline` specify helm values inline from terraform, as a string - `values_merge` merge strategy if both `values_file` and `values_inline` are specified. Can be one of `override`, `replace`, `merge`. (default: `override`) +- `api_versions` List of Kubernetes api versions used for Capabilities.APIVersions. +- `kube_version` Allows specifying a custom kubernetes version to use when templating. #### Example @@ -642,6 +644,8 @@ data "kustomization_overlay" "minecraft" { release_name = "moria" include_crds = false skip_tests = false + kube_version = "1.29.0" + api_versions = ["monitoring.coreos.com/v1"] values_inline = <