Skip to content

Commit

Permalink
flow
Browse files Browse the repository at this point in the history
  • Loading branch information
leaddevops authored Oct 10, 2023
1 parent 8c0567e commit baa5eb4
Showing 1 changed file with 58 additions and 2 deletions.
60 changes: 58 additions & 2 deletions 05-create-helm-charts/07-flow-control/if-else.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -63,4 +63,60 @@ spec:
ports:
- containerPort: 8080
```
---
---
## 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
```

0 comments on commit baa5eb4

Please sign in to comment.