From baa5eb46be132572db8dd7e26f2cb0d0a20e7234 Mon Sep 17 00:00:00 2001 From: leaddevops <36464863+leaddevops@users.noreply.github.com> Date: Wed, 11 Oct 2023 02:20:55 +0530 Subject: [PATCH] flow --- .../07-flow-control/if-else.md | 60 ++++++++++++++++++- 1 file changed, 58 insertions(+), 2 deletions(-) diff --git a/05-create-helm-charts/07-flow-control/if-else.md b/05-create-helm-charts/07-flow-control/if-else.md index 8f027ca..14b169b 100644 --- a/05-create-helm-charts/07-flow-control/if-else.md +++ b/05-create-helm-charts/07-flow-control/if-else.md @@ -28,7 +28,7 @@ cat templates/deployment.yaml # observe if else condition used for replicas # dry run the chart and observe the output rendered properly cd $HOME/helm-charts/05-create-helm-charts/07-flow-control/iechart1 -helm install iec1-rel . --dry-run +helm install iec1 . --dry-run ``` ```yaml # output as below @@ -63,4 +63,60 @@ spec: ports: - containerPort: 8080 ``` ---- \ No newline at end of file +--- +## if-else AND +#### examin the iechart2 from [github repo](iechart2/) + +```sh +# get the chart to local +cd $HOME ; git clone https://github.com/lerndevops/helm-charts +cd $HOME/helm-charts/05-create-helm-charts/07-flow-control/iechart2 +``` +```sh +cat values.yaml # observe the values +cat templates/deployment.yaml # observe if else condition used for replicas +``` +```sh +# dry run the chart and observe the output rendered properly + +cd $HOME/helm-charts/05-create-helm-charts/07-flow-control/iechart2 +helm install iec2 . --dry-run +``` +--- +## if-else OR +#### examin the iechart3 from [github repo](iechart3/) + +```sh +# get the chart to local +cd $HOME ; git clone https://github.com/lerndevops/helm-charts +cd $HOME/helm-charts/05-create-helm-charts/07-flow-control/iechart3 +``` +```sh +cat values.yaml # observe the values +cat templates/deployment.yaml # observe if else condition used for replicas +``` +```sh +# dry run the chart and observe the output rendered properly + +cd $HOME/helm-charts/05-create-helm-charts/07-flow-control/iechart3 +helm install iec3 . --dry-run +``` +--- +## if-else NOT +#### examin the iechart4 from [github repo](iechart4/) + +```sh +# get the chart to local +cd $HOME ; git clone https://github.com/lerndevops/helm-charts +cd $HOME/helm-charts/05-create-helm-charts/07-flow-control/iechart4 +``` +```sh +cat values.yaml # observe the values +cat templates/deployment.yaml # observe if else condition used for replicas +``` +```sh +# dry run the chart and observe the output rendered properly + +cd $HOME/helm-charts/05-create-helm-charts/07-flow-control/iechart4 +helm install iec4 . --dry-run +``` \ No newline at end of file