-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
104 changed files
with
12,109 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: 🐛 Bug report | ||
description: Create a report to help us improve 🎉 | ||
labels: | ||
- bug | ||
|
||
body: | ||
- type: textarea | ||
id: description | ||
attributes: | ||
label: Description | ||
description: A clear and concise description of what the bug is. | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: context | ||
attributes: | ||
label: Additional Context | ||
description: Add any other context about the problem here. | ||
validations: | ||
required: false | ||
- type: textarea | ||
id: logs | ||
attributes: | ||
label: Logs | ||
description: If applicable, add logs to help explain the bug. | ||
render: shell | ||
validations: | ||
required: false | ||
- type: textarea | ||
id: expected_behavior | ||
attributes: | ||
label: Expected Behavior | ||
description: A clear and concise description of what you expected to happen. | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: reproduction_steps | ||
attributes: | ||
label: Steps To Reproduce | ||
description: Describe steps to reproduce the behavior | ||
validations: | ||
required: false | ||
- type: textarea | ||
id: version | ||
attributes: | ||
label: Versions | ||
placeholder: v1.2.3 [, Kubernetes 1.21] | ||
validations: | ||
required: true |
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,7 @@ | ||
blank_issues_enabled: false | ||
|
||
# TODO: Redirect support questions | ||
# contact_links: | ||
# - name: ❓ Question | ||
# url: https://github.com/<org>/<repo>/discussions | ||
# about: Ask or discuss with us, we're happy to help 🙋 |
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,67 @@ | ||
name: 🚀 Feature request | ||
description: Suggest an idea for this project 💡 | ||
labels: | ||
- enhancement | ||
|
||
body: | ||
- type: textarea | ||
id: summary | ||
attributes: | ||
label: Summary | ||
value: | | ||
**As** role name\ | ||
**I want** a feature or functionality\ | ||
**So that** I get certain business value | ||
description: This user story helps us to quickly understand what this idea is about. | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: context | ||
attributes: | ||
label: Context | ||
description: Add more information here. You are completely free regarding form and length. | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: out_of_scope | ||
attributes: | ||
label: Out of Scope | ||
description: List aspects that are explicitly not part of this feature | ||
placeholder: | | ||
- ... | ||
- ... | ||
- ... | ||
validations: | ||
required: false | ||
- type: textarea | ||
id: links | ||
attributes: | ||
label: Further links | ||
description: URLs of relevant Git repositories, PRs, Issues, etc. | ||
placeholder: | | ||
- #567 | ||
- https://kubernetes.io/docs/reference/ | ||
validations: | ||
required: false | ||
- type: textarea | ||
id: acceptance_criteria | ||
attributes: | ||
label: Acceptance Criteria | ||
description: If you already have ideas what the detailed requirements are, please list them below in given-when-then expressions. | ||
placeholder: | | ||
- Given a precondition, when an action happens, then expect a result | ||
```gherkin | ||
Given a precondition | ||
When an action happens | ||
Then expect a result | ||
``` | ||
validations: | ||
required: false | ||
- type: textarea | ||
id: implementation_idea | ||
attributes: | ||
label: Implementation Ideas | ||
description: If applicable, shortly list possible implementation ideas | ||
validations: | ||
required: false |
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,19 @@ | ||
## Summary | ||
|
||
* Short summary of what's included in the PR | ||
* Give special note to breaking changes | ||
|
||
## Checklist | ||
|
||
- [ ] Categorize the PR by setting a good title and adding one of the labels: | ||
`bug`, `enhancement`, `documentation`, `change`, `breaking`, `dependency` | ||
as they show up in the changelog | ||
- [ ] Update tests. | ||
- [ ] Link this PR to related issues. | ||
|
||
<!-- | ||
Remove items that do not apply. For completed items, change [ ] to [x]. | ||
NOTE: these things are not required to open a PR and can be done afterwards, | ||
while the PR is open. | ||
--> |
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,42 @@ | ||
{ | ||
"pr_template": "- ${{TITLE}} (#${{NUMBER}})", | ||
"categories": [ | ||
{ | ||
"title": "## 🚀 Features", | ||
"labels": [ | ||
"enhancement" | ||
] | ||
}, | ||
{ | ||
"title": "## 🛠️ Minor Changes", | ||
"labels": [ | ||
"change" | ||
] | ||
}, | ||
{ | ||
"title": "## 🔎 Breaking Changes", | ||
"labels": [ | ||
"breaking" | ||
] | ||
}, | ||
{ | ||
"title": "## 🐛 Fixes", | ||
"labels": [ | ||
"bug" | ||
] | ||
}, | ||
{ | ||
"title": "## 📄 Documentation", | ||
"labels": [ | ||
"documentation" | ||
] | ||
}, | ||
{ | ||
"title": "## 🔗 Dependency Updates", | ||
"labels": [ | ||
"dependency" | ||
] | ||
} | ||
], | ||
"template": "${{CATEGORIZED_COUNT}} changes since ${{FROM_TAG}}\n\n${{CHANGELOG}}" | ||
} |
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,30 @@ | ||
name: Build | ||
|
||
on: | ||
pull_request: {} | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
go-build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Determine Go version from go.mod | ||
run: echo "GO_VERSION=$(go mod edit -json | jq -r .Go)" >> $GITHUB_ENV | ||
|
||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: ${{ env.GO_VERSION }} | ||
|
||
- uses: actions/cache@v3 | ||
with: | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
restore-keys: | | ||
${{ runner.os }}-go- | ||
- name: Run build | ||
run: make build |
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,82 @@ | ||
name: Docs | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
tags: | ||
- "*" | ||
|
||
jobs: | ||
antora: | ||
runs-on: ubuntu-latest | ||
if: ${{ contains(github.ref, 'tags') }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Configure Git | ||
run: | | ||
git config user.name "Antora via GitHub Actions" | ||
git config user.email "[email protected]" | ||
- name: Parse semver string | ||
id: semver | ||
uses: booxmedialtd/ws-action-parse-semver@v1 | ||
with: | ||
input_string: ${{ github.ref }} | ||
version_extractor_regex: '\/v(.*)$' | ||
- name: Set variables | ||
run: | | ||
echo "MINOR_VERSION=${{ steps.semver.outputs.major }}.${{ steps.semver.outputs.minor }}" >> $GITHUB_ENV | ||
echo "BRANCH_NAME=docs/v${{ steps.semver.outputs.major }}.${{ steps.semver.outputs.minor }}" >> $GITHUB_ENV | ||
- name: Set branch name for Prerelease | ||
if: ${{ steps.semver.outputs.prerelease != '' }} | ||
run: echo "BRANCH_NAME=${{ env.BRANCH_NAME }}-rc" >> $GITHUB_ENV | ||
|
||
- name: Checkout remote branch if exists | ||
run: git checkout ${{ env.BRANCH_NAME }} | ||
continue-on-error: true | ||
- name: Rebase if possible | ||
run: git rebase ${GITHUB_REF##*/} ${{ env.BRANCH_NAME }} | ||
continue-on-error: true | ||
- name: Create new branch if not existing | ||
run: git switch --create ${{ env.BRANCH_NAME }} | ||
continue-on-error: true | ||
|
||
- name: Patch Antora file for Release | ||
run: yq eval 'del(.prerelease) | del (.display_version) | .version = "${{ env.MINOR_VERSION }}"' -i docs/antora.yml | ||
if: ${{ steps.semver.outputs.prerelease == '' }} | ||
- name: Patch Antora file for Prerelease | ||
run: yq eval 'del (.display_version) | .version = "${{ env.MINOR_VERSION }}", .prerelease = "-${{ steps.semver.outputs.prerelease }}"' -i docs/antora.yml | ||
if: ${{ steps.semver.outputs.prerelease != '' }} | ||
|
||
- name: Commit | ||
run: git commit --all --message "Update version for Antora" | ||
continue-on-error: true | ||
- name: Push | ||
run: git push --atomic --force --set-upstream origin ${{ env.BRANCH_NAME }} | ||
|
||
- name: Cleanup prerelease branch if existing | ||
if: ${{ steps.semver.outputs.prerelease == '' }} | ||
run: git push origin --delete ${{ env.BRANCH_NAME }}-rc | ||
continue-on-error: true | ||
|
||
gh-pages: | ||
runs-on: ubuntu-latest | ||
# The needs+if combo will cause this job to wait until Antora versioning is done for tags, but still run on master branch | ||
needs: antora | ||
if: always() | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Configure Git | ||
run: | | ||
git remote set-url origin "https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}" | ||
git config user.name "Antora via GitHub Actions" | ||
git config user.email "[email protected]" | ||
- name: Publish documentation | ||
run: make docs-publish |
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,29 @@ | ||
name: Lint | ||
|
||
on: | ||
pull_request: {} | ||
push: | ||
branches: | ||
- master | ||
jobs: | ||
go-lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Determine Go version from go.mod | ||
run: echo "GO_VERSION=$(go mod edit -json | jq -r .Go)" >> $GITHUB_ENV | ||
|
||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: ${{ env.GO_VERSION }} | ||
|
||
- uses: actions/cache@v3 | ||
with: | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
restore-keys: | | ||
${{ runner.os }}-go- | ||
- name: Run linters | ||
run: make lint |
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,65 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- "*" | ||
|
||
jobs: | ||
dist: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Determine Go version from go.mod | ||
run: echo "GO_VERSION=$(grep "go 1." go.mod | cut -d " " -f 2)" >> $GITHUB_ENV | ||
|
||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: ${{ env.GO_VERSION }} | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- uses: actions/cache@v3 | ||
with: | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
restore-keys: | | ||
${{ runner.os }}-go- | ||
- name: Login to GHCR | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Push docker image | ||
run: make docker-push -e IMG_TAG=${GITHUB_REF##*/} | ||
|
||
- name: Build changelog from PRs with labels | ||
id: build_changelog | ||
uses: mikepenz/release-changelog-builder-action@v3 | ||
with: | ||
configuration: ".github/changelog-configuration.json" | ||
# PreReleases still get a changelog, but the next full release gets a diff since the last full release, | ||
# combining possible changelogs of all previous PreReleases in between. PreReleases show a partial changelog | ||
# since last PreRelease. | ||
ignorePreReleases: "${{ !contains(github.ref, '-rc') }}" | ||
outputFile: .github/release-notes.md | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Publish releases | ||
uses: goreleaser/goreleaser-action@v4 | ||
with: | ||
args: release --release-notes .github/release-notes.md | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
Oops, something went wrong.