Intermezzo
In this lesson we make some changes in the Helm chart and push them to GitHub.
We'll cover the following
Setting usePassword
to false
in MongoDB Helm chart#
If you go through the MongoDB Helm chart values, you’ll notice that one of them is usePassword
. All we have to do is set it to false
, both for previews as well as for the “official” application chart deployed to permanent environments. We’ll start with the latter by taking a quick look at the chart’s values.yaml
file.
The relevant parts of the output are as follows:
We already have a set of values dedicated to go-demo-6-db
. It’s the alias of the mongodb
dependency we defined earlier in requirements.yaml
. All we have to do is add usePassword: false
.
We’ll repeat the same in the preview Chart’s values.yaml
file.
Please execute the command that follows.
Pushing the changes to Github#
We’re done with changes now, and we should push them to GitHub.
The only thing left to do is wait until the Jenkins build initiated by the push
to the pull
request is finished. This time it should be successful, and I’ll leave it to you to confirm that it is indeed green. Feel free to observe the outcome from the PR screen in GitHub or through one of the jx
commands.
Next, let’s discuss the process of merging a PR.