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

feat(helm): Add Helm Chart pipeline trigger #8475

Merged
merged 3 commits into from
Sep 24, 2020

Conversation

jcavanagh
Copy link
Contributor

@jcavanagh jcavanagh commented Aug 6, 2020

  • Pipeline trigger configuration
  • Execution status UI
  • Manual trigger UI

Relates to issue: spinnaker/spinnaker#4447

Related PRs:
spinnaker/echo#988
spinnaker/igor#829
spinnaker/clouddriver#4773

image

image

image

- Pipeline trigger configuration
- Execution status UI
- Manual trigger UI
@dbyron0
Copy link
Contributor

dbyron0 commented Aug 6, 2020

Let me first say that I'm so excited for this and the other related PRs! I'm curious what the implications are for #7312 though.

@jcavanagh
Copy link
Contributor Author

@dbyron0 Interesting! I had not seen that particular feature - thanks for pointing it out.

If I'm understanding that PR correctly, I would say these are certainly related, but still distinct use cases.

The PR you mention is intended to provide an expected Helm artifact in a manual execution, regardless of how the Helm chart is normally delivered.

This PR does have the effect of providing a Helm artifact, but only via a new Helm trigger, and only when a Helm trigger is configured.

From the #7312 PR message, it appears under the following (pretty narrow) conditions:

- The pipeline has exactly one Bake (Manifest) stage
- The pipeline has exactly one expected artifact of type helm/chart

A possible solution would be add another condition to activating the functionality from #7312 - only show that if there is also no Helm trigger configured. How does that sound to you?

@dbyron0
Copy link
Contributor

dbyron0 commented Aug 6, 2020

If I'm reading this PR correctly, it's possible to specify the helm chart for pipelines with helm triggers (and maybe even all of them when there's more than one)... and so then yes, it makes sense to disable the #7312 functionality. In the end, it seems like it'll still be possible to specify a helm chart for manual execution whether there's a trigger or not, which would be lovely.

@ethanfrogers ethanfrogers requested review from german-muzquiz and removed request for ethanfrogers September 14, 2020 19:26
@german-muzquiz
Copy link
Contributor

I'm not that familiar with deck code, perhaps @maggieneterval can you take a look?

Copy link
Contributor

@maggieneterval maggieneterval left a comment

Choose a reason for hiding this comment

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

@jcavanagh Looks great; thanks for the awesome feature! 💯 Added a couple of questions inline, but nothing blocking.

I'd be in favor of removing the Bake (Manifest) stage's current manual execution component to avoid confusion over two different Helm manual execution components, but defer to your judgment.

@maggieneterval
Copy link
Contributor

@jcavanagh I'd also recommend making a PR against spinnaker.github.io to add a note to the curated changelog for next release so that users know that this feature has landed! 🥳

@dbyron0
Copy link
Contributor

dbyron0 commented Sep 22, 2020

I'd be in favor of removing the Bake (Manifest) stage's current manual execution component to avoid confusion over two different Helm manual execution components, but defer to your judgment.

I can see there being confusion in the code, but not so much for users. If they have a trigger, they get one way of manual execution, and if they don't they get the other.

It works for me to remove it, but can we wait to do it in a subsequent version of spinnaker? That way when I upgrade I don't have broken pipelines/user experience until I have a chance to change to this new way.

@german-muzquiz german-muzquiz removed their request for review September 23, 2020 17:04
The old manual Helm UI is further narrowed to not appear if a Helm trigger is configured.
@jcavanagh
Copy link
Contributor Author

@dbyron0 @maggieneterval I've added the aforementioned additional conditional for the old manual Helm UI here - they should hopefully not step on each other now, and the old use case can be preserved.

@maggieneterval
Copy link
Contributor

@dbyron0 @maggieneterval I've added the aforementioned additional conditional for the old manual Helm UI here - they should hopefully not step on each other now, and the old use case can be preserved.

Thanks, LGTM! 👍

@maggieneterval maggieneterval added the ready to merge Reviewed and ready for merge label Sep 24, 2020
@mergify mergify bot merged commit 65dd935 into spinnaker:master Sep 24, 2020
@dbyron0
Copy link
Contributor

dbyron0 commented Sep 24, 2020

Thank you!

caseyhebebrand added a commit that referenced this pull request Sep 25, 2020
65dd935 feat(helm): Add Helm Chart pipeline trigger (#8475)
519dfc0 feat(storybook/SpinFormik): Create a story for SpinFormik
mergify bot pushed a commit that referenced this pull request Sep 25, 2020
* chore(amazon): publish amazon@0.0.268

4a4285a fix(amazon/instance): Show instance type for amazon (#8592)

* chore(core): publish core@0.0.511

65dd935 feat(helm): Add Helm Chart pipeline trigger (#8475)
519dfc0 feat(storybook/SpinFormik): Create a story for SpinFormik
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge Reviewed and ready for merge target-release/1.23
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants