Skip to content

helm: use new helm-unittest plugin#18964

Merged
hugoShaka merged 5 commits intomasterfrom
hugo/change-helm-unittest-plugin
Dec 5, 2022
Merged

helm: use new helm-unittest plugin#18964
hugoShaka merged 5 commits intomasterfrom
hugo/change-helm-unittest-plugin

Conversation

@hugoShaka
Copy link
Copy Markdown
Contributor

@hugoShaka hugoShaka commented Dec 1, 2022

This PR changes the tests syntax to be compatible with https://github.com/quintush/helm-unittest/.

It depends on the new unittest plugin added by #18945

It does the following changes:

  • update the test.yaml syntax
  • change the Makefile to invoke the tests with the helm3 flag
  • update GHA and GCB pipelines to set HELM_PLUGINS to the new plugin location
  • add a makefile target checking if helm unittest plugin is installed

Base automatically changed from hugo/buildbox-12.1 to master December 2, 2022 23:34
@hugoShaka hugoShaka force-pushed the hugo/change-helm-unittest-plugin branch from cfaa4ac to f1dc60f Compare December 5, 2022 14:04
@hugoShaka hugoShaka force-pushed the hugo/change-helm-unittest-plugin branch from f1dc60f to 6d7514b Compare December 5, 2022 15:21
@hugoShaka hugoShaka marked this pull request as ready for review December 5, 2022 15:29
@github-actions github-actions Bot added the helm label Dec 5, 2022
image: ghcr.io/gravitational/teleport-buildbox:teleport12
env:
HELM_PLUGINS: /root/.local/share/helm/plugins
# TODO(hugoShaka) remove the '-new' prefix when updating to teleport13 buildbox
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In teleport13 we can probably just get rid of this environment variable, no?

Copy link
Copy Markdown
Contributor Author

@hugoShaka hugoShaka Dec 5, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we set it in the image, yes.

Copy link
Copy Markdown
Contributor Author

@hugoShaka hugoShaka Dec 5, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not clear for me which user the CI is running as. If it's root root ci we should be able to remove it entirely. However the fact the variable was set previously hints this might not be the case.

@hugoShaka hugoShaka enabled auto-merge (squash) December 5, 2022 18:39
@hugoShaka hugoShaka merged commit 207567b into master Dec 5, 2022
@hugoShaka hugoShaka deleted the hugo/change-helm-unittest-plugin branch December 5, 2022 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants