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. …
Author
Released
10/22/2020Skill Level Intermediate
Duration
Views
Related Courses
-
Learning Kubernetes
with Karthik Gaekwad2h 25m Beginner
-
Introduction
-
1. Introduction and Installation
-
What is Helm?1m 26s
-
Install Helm on a Mac2m 56s
-
Install Helm on Linux1m 5s
-
-
2. Install and Configure a Chart from Helm Hub
-
Explore the Helm Hub2m 2s
-
Try Helm show commands3m 18s
-
-
3. Deploy an Application Using Helm
-
Rollback a Helm release1m 58s
-
4. Advanced Features
-
Conclusion
- 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.
CancelTake 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.
Share this video
Embed this video
Video: Dynamically render a value with a Helm conditional statement