From e4522c0f537a470e43bf2b1f79a2fce75aafdd56 Mon Sep 17 00:00:00 2001 From: Olivier ORAND Date: Tue, 28 May 2024 15:23:24 +0000 Subject: [PATCH] doc(reference-dataset): adapt k8s config checks to vsphere --- .../deployment-dependencies-vsphere.yml | 9 +++++++++ .../k8s-sample/k8s-config/01-interpolate.sh | 3 ++- .../k8s-sample/k8s-config/vsphere/values-iaas-type.yml | 4 ++++ 3 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 docs/reference_dataset/template_repository/hello-world-root-depls/bosh-deployment-sample/deployment-dependencies-vsphere.yml create mode 100644 docs/reference_dataset/template_repository/hello-world-root-depls/k8s-sample/k8s-config/vsphere/values-iaas-type.yml diff --git a/docs/reference_dataset/template_repository/hello-world-root-depls/bosh-deployment-sample/deployment-dependencies-vsphere.yml b/docs/reference_dataset/template_repository/hello-world-root-depls/bosh-deployment-sample/deployment-dependencies-vsphere.yml new file mode 100644 index 000000000..cd0231a86 --- /dev/null +++ b/docs/reference_dataset/template_repository/hello-world-root-depls/bosh-deployment-sample/deployment-dependencies-vsphere.yml @@ -0,0 +1,9 @@ +--- +deployment: + bosh-deployment: + releases: + # we can add a iaas-dependant bosh release, like bosh-cpi + #bosh-openstack-cpi: + # base_location: https://bosh.io/d/github.com/ + # repository: cloudfoundry-incubator/bosh-openstack-cpi + nginx: \ No newline at end of file diff --git a/docs/reference_dataset/template_repository/hello-world-root-depls/k8s-sample/k8s-config/01-interpolate.sh b/docs/reference_dataset/template_repository/hello-world-root-depls/k8s-sample/k8s-config/01-interpolate.sh index 00ec62fd8..11f2e33d1 100755 --- a/docs/reference_dataset/template_repository/hello-world-root-depls/k8s-sample/k8s-config/01-interpolate.sh +++ b/docs/reference_dataset/template_repository/hello-world-root-depls/k8s-sample/k8s-config/01-interpolate.sh @@ -15,9 +15,10 @@ else echo "ERROR: missing values-iaas-type.yml - '$BASE_TEMPLATE_DIR'/values-iaas-type.yml" exit 1 fi +grep "$IAAS_TYPE" "$BASE_TEMPLATE_DIR"/values-iaas-type.yml if [ -f "$BASE_TEMPLATE_DIR"/values-profile.yml ];then - echo "Values values available" + echo "values-profile available" else echo "ERROR: missing values-profile - '$BASE_TEMPLATE_DIR'/values-profile.yml" exit 1 diff --git a/docs/reference_dataset/template_repository/hello-world-root-depls/k8s-sample/k8s-config/vsphere/values-iaas-type.yml b/docs/reference_dataset/template_repository/hello-world-root-depls/k8s-sample/k8s-config/vsphere/values-iaas-type.yml new file mode 100644 index 000000000..a982be1df --- /dev/null +++ b/docs/reference_dataset/template_repository/hello-world-root-depls/k8s-sample/k8s-config/vsphere/values-iaas-type.yml @@ -0,0 +1,4 @@ +#@data/values +--- +iaas: + type: vsphere