Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-add the --wait flag to the helm3 installation #205

Merged
merged 1 commit into from
Feb 21, 2020

Conversation

Waterdrips
Copy link
Contributor

Description

This commit re-adds the wait flag to helm3 installation
and sets the default --version to empty string, this
installs the latest chart version by default. When we need
a specific version we can set it (see cert-manager)

This was removed in a previous commit was it was not being used
but it should be used. It provides a better UX, as apps are ready once
k3sup returns. Otherwise when chaining installs like cert-manager and
openfaas ingress (which relies on the cert-manager installation being ready)
we an get errors.

I have also added a const to represent default chart version rather then using the
empty string.

Motivation and Context

  • I have raised an issue to propose this change (required)
    Reverting a removed feature and enabling it

How Has This Been Tested?

Installed a chart with version (cert-manager) with helm2 & helm3, validated
that the install was successful and the correct version was installed

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I've read the CONTRIBUTION guide
  • I have signed-off my commits with git commit -s
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Sorry, something went wrong.

Verified

This commit was signed with the committer’s verified signature.
yuyichao Yichao Yu
This commit re-adds the wait flag to helm3 installation
and sets the default --version to empty string, this
installs the latest chart version by default. When we need
a specific version we can set it (see cert-manager)

Signed-off-by: Alistair Hey <alistair@heyal.co.uk>
Copy link
Owner

@alexellis alexellis left a comment

Choose a reason for hiding this comment

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

In this PR can we also add --wait as a flag for each that's consumed?

@@ -120,7 +121,7 @@ func MakeInstallCertManager() *cobra.Command {
return err
}
} else {
err = templateChart(chartPath, "cert-manager", namespace, outputPath, "values.yaml", "v0.12.0", nil)
err = templateChart(chartPath, "cert-manager", namespace, outputPath, "values.yaml", nil)
Copy link
Owner

Choose a reason for hiding this comment

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

I think this reverted the version or pinning

Copy link
Contributor Author

Choose a reason for hiding this comment

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

its moved into fetchChart (for helm2)

@Waterdrips
Copy link
Contributor Author

In this PR can we also add --wait as a flag for each that's consumed?

Is there any reason not to use --wait for all of the commands?

@alexellis
Copy link
Owner

Yes it's blocking and slow. Using async means you can pull images in parallel.

Copy link
Owner

@alexellis alexellis left a comment

Choose a reason for hiding this comment

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

Approved

@alexellis alexellis merged commit fa2f0d1 into alexellis:master Feb 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants