Skip to content

Commit 996e1f2

Browse files
Merge branch 'release-1.4' of https://github.com/argoproj/argo-rollouts into release-1.4
# Conflicts: # .github/workflows/docker-publish.yml # .github/workflows/go.yml
2 parents 5c9ec05 + b4bd587 commit 996e1f2

File tree

292 files changed

+42223
-4512
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

292 files changed

+42223
-4512
lines changed

.chglog/CHANGELOG.tpl.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{{ range .Versions }}
2+
<a name="{{ .Tag.Name }}"></a>
3+
## {{ if .Tag.Previous }}[{{ .Tag.Name }}]({{ $.Info.RepositoryURL }}/compare/{{ .Tag.Previous.Name }}...{{ .Tag.Name }}){{ else }}{{ .Tag.Name }}{{ end }} ({{ datetime "2006-01-02" .Tag.Date }})
4+
5+
{{ range .CommitGroups -}}
6+
### {{ .Title }}
7+
8+
{{ range .Commits -}}
9+
* {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }}
10+
{{ end }}
11+
{{ end -}}
12+
13+
{{- if .RevertCommits -}}
14+
### Reverts
15+
16+
{{ range .RevertCommits -}}
17+
* {{ .Revert.Header }}
18+
{{ end }}
19+
{{ end -}}
20+
21+
{{- if .NoteGroups -}}
22+
{{ range .NoteGroups -}}
23+
### {{ .Title }}
24+
25+
{{ range .Notes }}
26+
{{ .Body }}
27+
{{ end }}
28+
{{ end -}}
29+
{{ end -}}
30+
{{ end -}}

.chglog/config.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
style: github
2+
template: CHANGELOG.tpl.md
3+
info:
4+
title: CHANGELOG
5+
repository_url: https://github.com/argoproj/argo-rollouts
6+
options:
7+
commits:
8+
# filters:
9+
# Type:
10+
# - feat
11+
# - fix
12+
# - perf
13+
# - refactor
14+
commit_groups:
15+
# title_maps:
16+
# feat: Features
17+
# fix: Bug Fixes
18+
# perf: Performance Improvements
19+
# refactor: Code Refactoring
20+
header:
21+
pattern: "^(\\w*)(?:\\(([\\w\\$\\.\\-\\*\\s]*)\\))?\\:\\s(.*)$"
22+
pattern_maps:
23+
- Type
24+
- Scope
25+
- Subject
26+
notes:
27+
keywords:
28+
- BREAKING CHANGE

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 29 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,39 @@
11
---
22
name: Bug report
33
about: Create a report to help us improve
4+
title: ''
45
labels: 'bug'
6+
assignees: ''
57
---
6-
## Summary
78

8-
What happened/what you expected to happen?
9+
<!-- If you are trying to resolve an environment-specific issue or have a one-off question about the edge case that does not require a feature then please consider asking a question in argo rollouts slack [channel](https://argoproj.github.io/community/join-slack). -->
910

10-
## Diagnostics
11+
Checklist:
1112

12-
What version of Argo Rollouts are you running?
13+
* [ ] I've included steps to reproduce the bug.
14+
* [ ] I've inclued the version of argo rollouts.
15+
16+
**Describe the bug**
17+
18+
<!-- A clear and concise description of what the bug is. -->
19+
20+
**To Reproduce**
21+
22+
<!-- A list of the steps required to reproduce the issue. Best of all, give us the URL to a repository that exhibits this issue. -->
23+
24+
**Expected behavior**
25+
26+
<!-- A clear and concise description of what you expected to happen. -->
27+
28+
**Screenshots**
29+
30+
<!-- If applicable, add screenshots to help explain your problem. -->
31+
32+
**Version**
33+
34+
<!-- What version of argo rollouts controller are you running? -->
35+
36+
**Logs**
1337

1438
```
1539
# Paste the logs from the rollout controller
@@ -18,7 +42,7 @@ What version of Argo Rollouts are you running?
1842
kubectl logs -n argo-rollouts deployment/argo-rollouts
1943
2044
# Logs for a specific rollout:
21-
kubectl logs -n argo-rollouts deployment/argo-rollouts | grep rollout=<ROLLOUTNAME>
45+
kubectl logs -n argo-rollouts deployment/argo-rollouts | grep rollout=<ROLLOUTNAME
2246
```
2347

2448
---

.github/pull_request_template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Checklist:
22

33
* [ ] Either (a) I've created an [enhancement proposal](https://github.com/argoproj/argo-rollouts/issues/new/choose) and discussed it with the community, (b) this is a bug fix, or (c) this is a chore.
4-
* [ ] The title of the PR is (a) [conventional](https://www.conventionalcommits.org/en/v1.0.0/), (b) states what changed, and (c) suffixes the related issues number. E.g. `"fix(controller): Updates such and such. Fixes #1234"`.
4+
* [ ] The title of the PR is (a) [conventional](https://www.conventionalcommits.org/en/v1.0.0/) with a list of types and scopes found [here](https://github.com/argoproj/argo-rollouts/blob/master/.github/workflows/pr-title-check.yml), (b) states what changed, and (c) suffixes the related issues number. E.g. `"fix(controller): Updates such and such. Fixes #1234"`.
55
* [ ] I've signed my commits with [DCO](https://github.com/argoproj/argoproj)
66
* [ ] I have written unit and/or e2e tests for my change. PRs without these are unlikely to be merged.
77
* [ ] My builds are green. Try syncing with master if they are not.

.github/workflows/changelog.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Update Changelog
2+
on:
3+
release:
4+
types: [published]
5+
permissions:
6+
contents: read
7+
8+
jobs:
9+
updateChangelog:
10+
permissions:
11+
contents: write # for peter-evans/create-pull-request to create branch
12+
pull-requests: write # for peter-evans/create-pull-request to create a PR
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v3
16+
with:
17+
fetch-depth: 0
18+
- name: Update Changelog
19+
run: |
20+
curl -o git-chglog.tar.gz -L https://github.com/git-chglog/git-chglog/releases/download/v0.15.1/git-chglog_0.15.1_darwin_amd64.tar.gz
21+
tar -zxvf git-chglog.tar.gz
22+
chmod u+x git-chglog
23+
./git-chglog --sort semver -o CHANGELOG-AUTO.md v1.3.1..
24+
rm git-chglog
25+
- name: Create Pull Request
26+
uses: peter-evans/create-pull-request@v4
27+
with:
28+
commit-message: update changelog
29+
title: "docs: Update Changelog"
30+
body: Update changelog to reflect release changes
31+
branch: update-changelog
32+
base: master

.github/workflows/codeql.yml

Lines changed: 39 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -8,38 +8,49 @@ on:
88
paths-ignore:
99
- '**/*.md'
1010

11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
14+
15+
permissions: # added using https://github.com/step-security/secure-workflows
16+
contents: read
17+
1118
jobs:
1219
CodeQL-Build:
1320

1421
# CodeQL runs on ubuntu-latest and windows-latest
22+
permissions:
23+
actions: read # for github/codeql-action/init to get workflow details
24+
contents: read # for actions/checkout to fetch code
25+
security-events: write # for github/codeql-action/autobuild to send a status report
1526
runs-on: ubuntu-latest
1627

1728
steps:
18-
- name: Checkout repository
19-
uses: actions/checkout@v2
20-
21-
# Initializes the CodeQL tools for scanning.
22-
- name: Initialize CodeQL
23-
uses: github/codeql-action/init@v1
24-
# Override language selection by uncommenting this and choosing your languages
25-
# with:
26-
# languages: go, javascript, csharp, python, cpp, java
27-
28-
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
29-
# If this step fails, then you should remove it and run the build manually (see below)
30-
- name: Autobuild
31-
uses: github/codeql-action/autobuild@v1
32-
33-
# ℹ️ Command-line programs to run using the OS shell.
34-
# 📚 https://git.io/JvXDl
35-
36-
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
37-
# and modify them (or add more) to build your code if your project
38-
# uses a compiled language
39-
40-
#- run: |
41-
# make bootstrap
42-
# make release
43-
44-
- name: Perform CodeQL Analysis
45-
uses: github/codeql-action/analyze@v1
29+
- name: Checkout repository
30+
uses: actions/checkout@v3.1.0
31+
32+
# Initializes the CodeQL tools for scanning.
33+
- name: Initialize CodeQL
34+
uses: github/codeql-action/init@v2
35+
# Override language selection by uncommenting this and choosing your languages
36+
# with:
37+
# languages: go, javascript, csharp, python, cpp, java
38+
39+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
40+
# If this step fails, then you should remove it and run the build manually (see below)
41+
- name: Autobuild
42+
uses: github/codeql-action/autobuild@v2
43+
44+
# ℹ️ Command-line programs to run using the OS shell.
45+
# 📚 https://git.io/JvXDl
46+
47+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
48+
# and modify them (or add more) to build your code if your project
49+
# uses a compiled language
50+
51+
#- run: |
52+
# make bootstrap
53+
# make release
54+
55+
- name: Perform CodeQL Analysis
56+
uses: github/codeql-action/analyze@v2
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# https://docs.github.com/en/code-security/dependabot/working-with-dependabot/automating-dependabot-with-github-actions
2+
name: Approve and enable auto-merge for dependabot
3+
on: pull_request
4+
5+
permissions:
6+
contents: read
7+
8+
jobs:
9+
review:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
pull-requests: write
13+
contents: write
14+
if: ${{ github.actor == 'dependabot[bot]' && github.repository == 'argoproj/argo-rollouts'}}
15+
steps:
16+
- name: Dependabot metadata
17+
id: metadata
18+
uses: dependabot/[email protected]
19+
with:
20+
github-token: "${{ secrets.GITHUB_TOKEN }}"
21+
- name: Approve PR
22+
run: gh pr review --approve "$PR_URL"
23+
env:
24+
PR_URL: ${{github.event.pull_request.html_url}}
25+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
26+
- name: Enable auto-merge for Dependabot PRs
27+
run: gh pr merge --auto --squash "$PR_URL"
28+
env:
29+
PR_URL: ${{github.event.pull_request.html_url}}
30+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

.github/workflows/docker-publish.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ jobs:
1515

1616
steps:
1717
- name: Checkout
18-
uses: actions/checkout@v2
18+
uses: actions/checkout@v3.1.0
1919

2020
- name: Set up QEMU
21-
uses: docker/setup-qemu-action@v1
21+
uses: docker/setup-qemu-action@v2
2222

2323
- name: Set up Docker Buildx
2424
uses: docker/setup-buildx-action@v1
@@ -33,7 +33,7 @@ jobs:
3333
3434
- name: Docker meta (controller)
3535
id: controller-meta
36-
uses: docker/metadata-action@v3
36+
uses: docker/metadata-action@v4
3737
with:
3838
images: |
3939
quay.io/codefresh/argo-rollouts
@@ -46,7 +46,7 @@ jobs:
4646

4747
- name: Docker meta (plugin)
4848
id: plugin-meta
49-
uses: docker/metadata-action@v3
49+
uses: docker/metadata-action@v4
5050
with:
5151
images: |
5252
quay.io/codefresh/kubectl-argo-rollouts
@@ -59,15 +59,15 @@ jobs:
5959

6060
# - name: Login to GitHub Container Registry
6161
# if: github.event_name != 'pull_request'
62-
# uses: docker/login-action@v1
62+
# uses: docker/login-action@v1
6363
# with:
6464
# registry: ghcr.io
6565
# username: ${{ github.repository_owner }}
6666
# password: ${{ secrets.GITHUB_TOKEN }}
6767

6868
- name: Login to Quay.io
6969
if: github.event_name != 'pull_request'
70-
uses: docker/login-action@v1
70+
uses: docker/login-action@v2
7171
with:
7272
registry: quay.io
7373
username: ${{ secrets.QUAY_USERNAME }}
@@ -84,7 +84,7 @@ jobs:
8484
echo "::set-output name=platform-matrix::$PLATFORM_MATRIX"
8585
8686
- name: Build and push (controller-image)
87-
uses: docker/build-push-action@v2
87+
uses: docker/build-push-action@v3
8888
with:
8989
platforms: ${{ steps.platform-matrix.outputs.platform-matrix }}
9090
push: ${{ github.event_name != 'pull_request' }}
@@ -93,7 +93,7 @@ jobs:
9393
cache-to: type=local,dest=/tmp/.buildx-cache
9494

9595
- name: Build and push (plugin-image)
96-
uses: docker/build-push-action@v2
96+
uses: docker/build-push-action@v3
9797
with:
9898
target: kubectl-argo-rollouts
9999
platforms: ${{ steps.platform-matrix.outputs.platform-matrix }}
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# use separate workflow to support fork repositories and dependabot branches when publishing test results: see https://github.com/EnricoMi/publish-unit-test-result-action#support-fork-repositories-and-dependabot-branches
2+
name: Test Results
3+
4+
on:
5+
workflow_run:
6+
workflows: ["E2E Tests", "Go"]
7+
types:
8+
- completed
9+
permissions: {}
10+
11+
jobs:
12+
test-results:
13+
name: "${{ github.event.workflow.name }} Test Results"
14+
runs-on: ubuntu-latest
15+
if: github.event.workflow_run.conclusion != 'skipped'
16+
permissions:
17+
checks: write
18+
pull-requests: write
19+
actions: read
20+
steps:
21+
- name: Download and Extract Artifacts
22+
# TODO repace with native actions/download-artifact once it supports downloading from another workflow: https://github.com/actions/download-artifact/issues/3
23+
env:
24+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
25+
run: |
26+
mkdir -p artifacts && cd artifacts
27+
artifacts_url=${{ github.event.workflow_run.artifacts_url }}
28+
gh api "$artifacts_url" -q '.artifacts[] | [.name, .archive_download_url] | @tsv' | while read artifact
29+
do
30+
IFS=$'\t' read name url <<< "$artifact"
31+
gh api $url > "$name.zip"
32+
unzip -d "$name" "$name.zip"
33+
done
34+
35+
- name: Publish Test Results
36+
uses: EnricoMi/publish-unit-test-result-action@v2
37+
with:
38+
check_name: "${{ github.event.workflow.name }} Published Test Results"
39+
commit: ${{ github.event.workflow_run.head_sha }}
40+
event_file: artifacts/Event File/event.json
41+
event_name: ${{ github.event.workflow_run.event }}
42+
junit_files: "artifacts/**/junit.xml"
43+
compare_to_earlier_commit: false
44+
test_changes_limit: 0
45+
fail_on: "errors"

0 commit comments

Comments
 (0)