-
Notifications
You must be signed in to change notification settings - Fork 324
Add doc for plan-preview feature #2195
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,54 @@ | ||||||||||||||
| --- | ||||||||||||||
| title: "Plan preview" | ||||||||||||||
| linkTitle: "Plan preview" | ||||||||||||||
| weight: 14 | ||||||||||||||
| description: > | ||||||||||||||
| Enables the ability to preview the deployment plan against a given commit before merging. | ||||||||||||||
| --- | ||||||||||||||
|
|
||||||||||||||
| > NOTE: This feature is currently under Alpha status. | ||||||||||||||
|
|
||||||||||||||
| In order to help developers review the pull request with a better experience and more confidence to approve it to trigger the actual deployments, | ||||||||||||||
| PipeCD provides a way to preview the deployment plan of all updated applications by that pull request. | ||||||||||||||
|
|
||||||||||||||
| Here are what will be included currently in the result of plan-preview process: | ||||||||||||||
|
|
||||||||||||||
| - what application will be deployed once the pull request got merged | ||||||||||||||
| - what deployment strategy (QUICK_SYNC or PIPELINE_SYNC) will be used | ||||||||||||||
| - what resources will be added, deleted, or modified | ||||||||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit, but up to you 🙆♀️
Suggested change
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👍 |
||||||||||||||
|
|
||||||||||||||
| This feature will available for all application kinds: KUBERNETES, TERRAFORM, CLOUD_RUN, LAMBDA and Amazon ECS. | ||||||||||||||
|
|
||||||||||||||
|  | ||||||||||||||
| <p style="text-align: center;"> | ||||||||||||||
| PlanPreview with GitHub actions <a href="https://github.com/pipe-cd/actions-plan-preview">pipe-cd/actions-plan-preview</a> | ||||||||||||||
| </p> | ||||||||||||||
|
|
||||||||||||||
| ## Prerequisites | ||||||||||||||
|
|
||||||||||||||
| - Your Pipeds are running at least version `v0.11.0`. | ||||||||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit but it's on you
Suggested change
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let me change this to |
||||||||||||||
| - Having an API key that has `READ_WRITE` role to authenticate with PipeCD's control-plane. A new key can be generated from `settings/api-key` page of your PipeCD web. | ||||||||||||||
|
|
||||||||||||||
| ## Usage | ||||||||||||||
|
|
||||||||||||||
| Plan-preview result can be requested by using `pipectl` command-line tool as below: | ||||||||||||||
|
|
||||||||||||||
| ``` console | ||||||||||||||
| pipectl plan-preview \ | ||||||||||||||
| --address={ PIPECD_CONTROL_PLANE_ADDRESS } \ | ||||||||||||||
| --api-key={ PIPECD_API_KEY } \ | ||||||||||||||
| --repo-remote-url={ REPO_REMOTE_GIT_SSH_URL } \ | ||||||||||||||
| --head-branch={ HEAD_BRANCH } \ | ||||||||||||||
| --head-commit={ HEAD_COMMIT } \ | ||||||||||||||
| --base-branch={ HEAD_BRANCH } | ||||||||||||||
| ``` | ||||||||||||||
|
|
||||||||||||||
| You can run it locally or integrate it to your CI system to run automatically when a new pull request is opened/updated. Use `--help` to see more options. | ||||||||||||||
|
|
||||||||||||||
| ``` console | ||||||||||||||
| pipectl plan-preview --help | ||||||||||||||
| ``` | ||||||||||||||
|
|
||||||||||||||
| ## GitHub Actions | ||||||||||||||
|
|
||||||||||||||
| If you are using GitHub Actions, you can seamlessly integrate our prepared [actions-plan-preview](https://github.com/pipe-cd/actions-plan-preview) to your workflows. This automatically comments the plan-preview result on the pull request when it is opened or updated. You can also trigger to run plan-preview manually by leave a comment `/pipecd plan-preview` on the pull request. | ||||||||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
🎉 |
||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.