The Helm templating language supports conditional statements. In this video, learn how to use Helm conditionals to render a dynamic value.
- [Instructor] Like Programming Languages. … The Helm templating engine has conditionals, … if/else statements that allow you to render … values dynamically, whether or not a condition … you set is true or false. … Let's go back to our ConfigMap … where we have a key called Allow Testing … and the value is set as true. … Imagine that you have two different environments. … Staging is a place where developers can push commits … and trigger a set of automated tests … to see if the application still works with their changes. … And production, where your workloads … are handling actual traffic from your users. … And therefore doesn't need tests to run … because the change has already gotten the thumbs up … from your CICT system. … In this scenario, … we want the value of Allow Testing to be true … when the environment is staging … and false when the environment is production. … The if/else statement is a Helm directive … and each part of the statement, … the If, the Else, and End begin … and end with double curly braces. …
Skill Level Intermediate
1. Introduction and Installation
2. Install and Configure a Chart from Helm Hub
3. Deploy an Application Using Helm
Rollback a Helm release1m 58s
4. Advanced Features
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.