-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Add event context (#5295) * Add contexts to the RegisterEventRequest Signed-off-by: Yoshiki Fujikane <[email protected]> * Add contexts to model.Event Signed-off-by: Yoshiki Fujikane <[email protected]> * Store event context in Control Plane Signed-off-by: Yoshiki Fujikane <[email protected]> * Add trailers when commiting on event watcher Signed-off-by: Yoshiki Fujikane <[email protected]> * Fix for failed build Signed-off-by: Yoshiki Fujikane <[email protected]> --------- Signed-off-by: Yoshiki Fujikane <[email protected]> Signed-off-by: pipecd-bot <[email protected]> * Add docs for pipectl event register --contexts on the event watcher usage page (#5299) * Add docs for pipectl event register --contexts on the event watcher usage page Signed-off-by: Yoshiki Fujikane <[email protected]> * Fix docs Signed-off-by: Yoshiki Fujikane <[email protected]> * Fix command Signed-off-by: Yoshiki Fujikane <[email protected]> --------- Signed-off-by: Yoshiki Fujikane <[email protected]> Signed-off-by: pipecd-bot <[email protected]> * Clone manifests not to modify original manifests (#5306) Signed-off-by: t-kikuc <[email protected]> Signed-off-by: pipecd-bot <[email protected]> * Lambda: clone manifests not to modify original manifests (#5308) Signed-off-by: t-kikuc <[email protected]> Signed-off-by: pipecd-bot <[email protected]> * Skip commit and push when no replacement happens in EventWatcher (#5310) * fix: skip push if no diff exist Signed-off-by: t-kikuc <[email protected]> * modify message Signed-off-by: t-kikuc <[email protected]> * refactor: use noChange variable Signed-off-by: t-kikuc <[email protected]> --------- Signed-off-by: t-kikuc <[email protected]> Signed-off-by: pipecd-bot <[email protected]> * Execute git clean partially when drift detection for every app is done (#5312) * Execute git clean partially when drift detection for every app is done Signed-off-by: Yoshiki Fujikane <[email protected]> * Rename to CleanPath Signed-off-by: Yoshiki Fujikane <[email protected]> * Add test for the outside dir pattern Signed-off-by: Yoshiki Fujikane <[email protected]> --------- Signed-off-by: Yoshiki Fujikane <[email protected]> Signed-off-by: pipecd-bot <[email protected]> * Update RELEASE and docs to v0.49.3 (#5315) Signed-off-by: Yoshiki Fujikane <[email protected]> Signed-off-by: pipecd-bot <[email protected]> --------- Signed-off-by: Yoshiki Fujikane <[email protected]> Signed-off-by: pipecd-bot <[email protected]> Signed-off-by: t-kikuc <[email protected]> Co-authored-by: Yoshiki Fujikane <[email protected]> Co-authored-by: Tetsuya Kikuchi <[email protected]>
- Loading branch information
1 parent
eb98030
commit e5fe1cf
Showing
26 changed files
with
767 additions
and
410 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -165,6 +165,38 @@ pipectl event register \ | |
|
||
Note that it is considered a match only when labels are an exact match. | ||
|
||
### [optional] Using contexts | ||
|
||
You can also attach additional metadata to the event. | ||
This information can be added as a trailer to the git commit when Event Watcher using the GIT_UPDATE handler. | ||
This can be useful when attaching information from the source code repository to the manifest repository. | ||
|
||
For example, you can attach the source code commit link to the manifest repository. | ||
|
||
```bash | ||
pipectl event register \ | ||
--address=CONTROL_PLANE_API_ADDRESS \ | ||
--api-key=API_KEY \ | ||
--name=sample \ | ||
--data=gcr.io/pipecd/helloworld:v0.48.0 \ | ||
--contexts Source-Commit-Hash=xxxxxxx,Source-Commit-URL=https://github.com/pipe-cd/pipecd/commit/xxxxxxx | ||
``` | ||
|
||
```bash | ||
# In manifest repository | ||
$ git show | ||
commit ff46cdc9a3ce87a9a66436269251a4870ac55183 (HEAD -> main, origin/main, origin/HEAD) | ||
Author: ffjlabo <[email protected]> | ||
Date: Wed Oct 30 16:56:36 2024 +0900 | ||
Replace values with "gcr.io/pipecd/helloworld:v0.48.0" set by Event "simple" | ||
Source-Commit-Hash: xxxxxxx | ||
Source-Commit-URL: https://github.com/pipe-cd/pipecd/commit/xxxxxxx | ||
``` | ||
|
||
![](/images/event-watcher-contexts.png) | ||
|
||
## Examples | ||
Suppose you want to update your configuration file after releasing a new Helm chart. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -165,6 +165,38 @@ pipectl event register \ | |
|
||
Note that it is considered a match only when labels are an exact match. | ||
|
||
### [optional] Using contexts | ||
|
||
You can also attach additional metadata to the event. | ||
This information can be added as a trailer to the git commit when Event Watcher using the GIT_UPDATE handler. | ||
This can be useful when attaching information from the source code repository to the manifest repository. | ||
|
||
For example, you can attach the source code commit link to the manifest repository. | ||
|
||
```bash | ||
pipectl event register \ | ||
--address=CONTROL_PLANE_API_ADDRESS \ | ||
--api-key=API_KEY \ | ||
--name=sample \ | ||
--data=gcr.io/pipecd/helloworld:v0.48.0 \ | ||
--contexts Source-Commit-Hash=xxxxxxx,Source-Commit-URL=https://github.com/pipe-cd/pipecd/commit/xxxxxxx | ||
``` | ||
|
||
```bash | ||
# In manifest repository | ||
$ git show | ||
commit ff46cdc9a3ce87a9a66436269251a4870ac55183 (HEAD -> main, origin/main, origin/HEAD) | ||
Author: ffjlabo <[email protected]> | ||
Date: Wed Oct 30 16:56:36 2024 +0900 | ||
Replace values with "gcr.io/pipecd/helloworld:v0.48.0" set by Event "simple" | ||
Source-Commit-Hash: xxxxxxx | ||
Source-Commit-URL: https://github.com/pipe-cd/pipecd/commit/xxxxxxx | ||
``` | ||
|
||
![](/images/event-watcher-contexts.png) | ||
|
||
## Examples | ||
Suppose you want to update your configuration file after releasing a new Helm chart. | ||
|
||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.