-
Notifications
You must be signed in to change notification settings - Fork 328
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Regenerate rollouts E2E test script and update README
Signed-off-by: Jonathan West <[email protected]>
- Loading branch information
Showing
4 changed files
with
126 additions
and
33 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,26 @@ | ||
# Update argo-rollouts-manager to latest release of Argo Rollouts | ||
|
||
The Go code and script this in this directory will automatically open a pull request to update the argo-rollouts-manager to the latest official argo-rollouts release: | ||
- Update container image version in 'default.go' | ||
- Update go.mod to point to latest module version | ||
- Update container image version in `default.go` | ||
- Update `go.mod` to point to latest module version | ||
- Update CRDs to latest | ||
- Update target Rollouts version in `hack/run-upstream-argo-rollouts-e2e-tests.sh` | ||
- Open Pull Request using 'gh' CLI | ||
|
||
## Instructions | ||
|
||
### Pre-requisites: | ||
### Prerequisites | ||
- GitHub CLI (_gh_) installed and on PATH | ||
- Operator-sdk v1.28.0 installed (as of January 2024), and on PATH | ||
- Go installed an on PATH | ||
- [Operator-sdk v1.28.0](https://github.com/operator-framework/operator-sdk/releases/tag/v1.28.0) installed (as of January 2024), and on PATH | ||
- You must have your own fork of the [argo-rollouts-manager](https://github.com/argoproj-labs/argo-rollouts-manager) repository (example: `jgwest/argo-rollouts-manager`) | ||
- Your local SSH key registered (e.g. `~/.ssh/id_rsa.pub`) with GitHub to allow git clone via SSH | ||
|
||
### To run the tool | ||
### Configure and run the tool | ||
|
||
Modify the `init-repo.sh` file, updating the GitHub URL with a fork. | ||
|
||
Then run the script: | ||
```bash | ||
export GITHUB_FORK_USERNAME="(your username here)" | ||
export GH_TOKEN="(a GitHub personal access token that can clone/push/open PRs against argo-rollouts-manager repo)" | ||
./init-repo.sh | ||
./go-run.sh | ||
``` | ||
``` |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
|
||
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) | ||
|
||
cd $SCRIPT_DIR | ||
|
||
go run . | ||
|
||
|
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
|
||
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) | ||
|
||
cd $SCRIPT_DIR | ||
|
||
rm -rf "$SCRIPT_DIR/argo-rollouts-manager" || true | ||
|
||
git clone "[email protected]:$GITHUB_FORK_USERNAME/argo-rollouts-manager" | ||
cd argo-rollouts-manager | ||
|
||
git remote add parent "[email protected]:argoproj-labs/argo-rollouts-manager" | ||
git fetch parent | ||
|
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