[helm/affinity] - Updates to iam jupyter operator charts #5
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi guys, I made a couple updates to the helm chart for
iam
,jupyter
, andoperator
services. Details are below. Let me know what you guys think.Update 1: Introduced
with
blocks to simplify addition of objects likeresources
,volumeMounts
, andaffinity
. Thewith
block provides scoping and also will take into account with a variable exists so no need for additional conditionals.Update 2: Replaced environment variable specification to using a loop. This essentially removes the manual need to specify environment variables in both the
values.yaml
file and thedeployment.yaml
file making the chart easier to maintain and more dynamic.Update 3: Introduced helm unittests action and actual tests to confirm my changes. Details for the package can be found here https://github.com/helm-unittest/helm-unittest. The flow right now is that unittest will be via Github Actions every time a PR is opened, re-opened, etc.
Update 4: Set a default for namespace where if you specify such a value, it will take that. Otherwise, it will take the one defined in the release. Similarly patched up a role in operator helm chart that had a TODO.
Update 5: Patched in iam chart where the traefik middleware was being deployed all the time. Updated it so it only deploys if traefik is the ingressclass.