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