From 00ceccd84b83d87a1a31075a447f59bf2d1e8cb3 Mon Sep 17 00:00:00 2001 From: Sebastian Halder Date: Tue, 17 Sep 2024 15:18:40 +0200 Subject: [PATCH] Provide initial values files for environments --- docker-plain/Jenkinsfile.template | 3 ++- docker-plain/files/chart/values.dev.yaml | 1 + docker-plain/files/chart/values.prod.yaml | 3 +++ docker-plain/files/chart/values.test.yaml | 3 +++ 4 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 docker-plain/files/chart/values.dev.yaml create mode 100644 docker-plain/files/chart/values.prod.yaml create mode 100644 docker-plain/files/chart/values.test.yaml diff --git a/docker-plain/Jenkinsfile.template b/docker-plain/Jenkinsfile.template index 9f93839b3..e537a211a 100644 --- a/docker-plain/Jenkinsfile.template +++ b/docker-plain/Jenkinsfile.template @@ -21,7 +21,8 @@ odsComponentPipeline( odsComponentStageBuildOpenShiftImage(context) } odsComponentStageRolloutOpenShiftDeployment(context, [ - 'selector': "app.kubernetes.io/name=${context.componentId}" + 'selector': "app.kubernetes.io/name=${context.componentId}", + 'helmEnvBasedValuesFiles': ["values.env.yaml"], ]) } diff --git a/docker-plain/files/chart/values.dev.yaml b/docker-plain/files/chart/values.dev.yaml new file mode 100644 index 000000000..99520c495 --- /dev/null +++ b/docker-plain/files/chart/values.dev.yaml @@ -0,0 +1 @@ +# This file is used to override the default values in the chart/values.yaml file for deployment in 'dev' environment \ No newline at end of file diff --git a/docker-plain/files/chart/values.prod.yaml b/docker-plain/files/chart/values.prod.yaml new file mode 100644 index 000000000..3fd11896a --- /dev/null +++ b/docker-plain/files/chart/values.prod.yaml @@ -0,0 +1,3 @@ +# This file is used to override the default values in the chart/values.yaml file for deployment in 'prod' environment + +replicaCount: 2 \ No newline at end of file diff --git a/docker-plain/files/chart/values.test.yaml b/docker-plain/files/chart/values.test.yaml new file mode 100644 index 000000000..8c6f855da --- /dev/null +++ b/docker-plain/files/chart/values.test.yaml @@ -0,0 +1,3 @@ +# This file is used to override the default values in the chart/values.yaml file for deployment in 'test' environment + +replicaCount: 2 \ No newline at end of file