From 544ba1248103f5571211814e51a8f8efdd9ebc98 Mon Sep 17 00:00:00 2001 From: Jorge Morales Pou Date: Mon, 10 Jun 2024 13:48:55 +0200 Subject: [PATCH] Saving clusterPackages config into the cluster --- .../ytt/_ytt_lib/config/save-config-overlay.yaml | 16 ++++++++++++++++ .../installer/bundle/config/ytt/config.yaml | 1 + 2 files changed, 17 insertions(+) create mode 100644 carvel-packages/installer/bundle/config/ytt/_ytt_lib/config/save-config-overlay.yaml diff --git a/carvel-packages/installer/bundle/config/ytt/_ytt_lib/config/save-config-overlay.yaml b/carvel-packages/installer/bundle/config/ytt/_ytt_lib/config/save-config-overlay.yaml new file mode 100644 index 00000000..8db8c5a9 --- /dev/null +++ b/carvel-packages/installer/bundle/config/ytt/_ytt_lib/config/save-config-overlay.yaml @@ -0,0 +1,16 @@ +#@ load("@ytt:overlay", "overlay") +#@ load("@ytt:data", "data") +--- +apiVersion: v1 +kind: Namespace +metadata: + name: educates-config + +--- +apiVersion: v1 +kind: ConfigMap +metadata: + name: educates-config + namespace: educates-config +data: + values.yaml: #@ data.values diff --git a/carvel-packages/installer/bundle/config/ytt/config.yaml b/carvel-packages/installer/bundle/config/ytt/config.yaml index 7f902d8b..fbfe855f 100644 --- a/carvel-packages/installer/bundle/config/ytt/config.yaml +++ b/carvel-packages/installer/bundle/config/ytt/config.yaml @@ -38,4 +38,5 @@ --- #@ template.replace(overlay.apply(library.get(packagePath).with_data_values(packageValues).eval(), addKappAnnotations(name, overlayedValues, orderedPackagesList))) #@ end #@ end +--- #@ template.replace(overlay.apply(library.get("config").with_data_values(overlayedValues).eval())) #@ end