-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into add-security-context
- Loading branch information
Showing
82 changed files
with
6,249 additions
and
4,062 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 was deleted.
Oops, something went wrong.
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,20 +1,26 @@ | ||
# Add 'repo' label to any root file changes | ||
repo: | ||
- '*' | ||
- changed-files: | ||
- any-glob-to-any-file: '*' | ||
|
||
github_actions: | ||
- '.github/**/*' | ||
- changed-files: | ||
- any-glob-to-any-file: '.github/**/*' | ||
|
||
build: | ||
- '.github/*' | ||
- Makefile | ||
- Common.mk | ||
- go.mod | ||
- go.sum | ||
- changed-files: | ||
- any-glob-to-any-file: '.github/*' | ||
- any-glob-to-any-file: Makefile | ||
- any-glob-to-any-file: Common.mk | ||
- any-glob-to-any-file: go.mod | ||
- any-glob-to-any-file: go.sum | ||
|
||
documentation: | ||
- '*.md' | ||
- '**/*.md' | ||
|
||
- changed-files: | ||
- any-glob-to-any-file: '*.md' | ||
- any-glob-to-any-file: '**/*.md' | ||
|
||
go: | ||
- '*.go' | ||
- changed-files: | ||
- any-glob-to-any-file: '*.go' | ||
- any-glob-to-any-file: '**/*.go' |
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,21 @@ | ||
name-template: v$RESOLVED_VERSION | ||
tag-template: '$RESOLVED_VERSION' | ||
tag-prefix: '' | ||
categories: | ||
- title: '🚀 Features' | ||
labels: | ||
- 'feature' | ||
- 'enhancement' | ||
- title: '🐛 Bug Fixes' | ||
labels: | ||
- 'fix' | ||
- 'bugfix' | ||
- 'bug' | ||
- title: '🧰 Maintenance' | ||
label: 'chore' | ||
change-template: '- $TITLE @$AUTHOR (#$NUMBER)' | ||
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks. | ||
template: | | ||
## Changes | ||
$CHANGES |
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 |
---|---|---|
|
@@ -14,7 +14,7 @@ jobs: | |
steps: | ||
- name: Detect No-op Changes | ||
id: noop | ||
uses: fkirc/[email protected].0 | ||
uses: fkirc/[email protected].1 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
paths_ignore: '["**.md", "**.png", "**.jpg"]' | ||
|
@@ -52,3 +52,13 @@ jobs: | |
uses: ./.github/workflows/publish.yaml | ||
with: | ||
publish: false | ||
|
||
helm-docs: | ||
needs: detect-noop | ||
if: needs.detect-noop.outputs.noop != 'true' | ||
uses: ./.github/workflows/helm-docs.yaml | ||
|
||
helm-test: | ||
needs: detect-noop | ||
if: needs.detect-noop.outputs.noop != 'true' | ||
uses: ./.github/workflows/helm-test.yaml |
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Helm-Docs | ||
on: | ||
workflow_call: {} | ||
jobs: | ||
helm-docs: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 # required for ct helm tool | ||
ref: ${{ github.event.pull_request.head.ref }} | ||
repository: ${{ github.event.pull_request.head.repo.full_name }} | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v5 | ||
|
||
- name: Run helm-docs | ||
run: make helm-docs || true | ||
|
||
- name: Find mutations | ||
id: self_mutation | ||
run: |- | ||
git add . | ||
git diff --staged --patch --exit-code || echo "self_mutation_happened=true" >> "$GITHUB_OUTPUT" | ||
- uses: stefanzweifel/git-auto-commit-action@v5 | ||
if: steps.self_mutation.outputs.self_mutation_happened | ||
with: | ||
commit_message: Automated Commit |
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,39 @@ | ||
name: Helm Chart Release | ||
|
||
on: | ||
workflow_call: {} | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Configure Git | ||
run: | | ||
git config user.name "$GITHUB_ACTOR" | ||
git config user.email "[email protected]" | ||
- name: Update Helm Chart version | ||
run: | | ||
NEW_VERSION="${{ github.event.release.tag_name }}" | ||
sed -i "s/^version:.*/version: $NEW_VERSION/" charts/oz/Chart.yaml | ||
sed -i "s/^appVersion:.*/appVersion: $NEW_VERSION/" charts/oz/Chart.yaml | ||
make helm-docs || true | ||
- name: Install Helm | ||
uses: azure/setup-helm@v4 | ||
with: | ||
version: 3.10.2 | ||
|
||
- name: Run chart-releaser | ||
uses: helm/[email protected] | ||
with: | ||
charts_dir: charts | ||
env: | ||
CR_SKIP_EXISTING: "true" | ||
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
CR_RELEASE_NAME_TEMPLATE: "oz-chart-{{ .Version }}" |
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,50 @@ | ||
name: Chart Test | ||
on: | ||
workflow_call: {} | ||
jobs: | ||
helm-test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 # required for ct helm tool | ||
ref: ${{ github.event.pull_request.head.ref }} | ||
repository: ${{ github.event.pull_request.head.repo.full_name }} | ||
|
||
- name: Set up Helm | ||
uses: azure/setup-helm@v4 | ||
with: | ||
version: 3.10.2 | ||
|
||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.x | ||
|
||
- name: Set up chart-testing | ||
uses: helm/[email protected] | ||
|
||
- name: Run chart-testing (list-changed) | ||
id: list-changed | ||
run: | | ||
changed=$(ct --config ct.yaml list-changed) | ||
if [[ -n "$changed" ]]; then | ||
echo "changed=true" >> ${GITHUB_OUTPUT} | ||
fi | ||
- name: Run chart-testing (lint) | ||
run: ct --config ct.yaml lint | ||
|
||
- name: Create kind cluster | ||
if: steps.list-changed.outputs.changed == 'true' | ||
uses: helm/[email protected] | ||
|
||
- name: Install cert-manager | ||
if: steps.list-changed.outputs.changed == 'true' | ||
run: | | ||
kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/v1.10.1/cert-manager.yaml | ||
kubectl wait deployment -l app.kubernetes.io/instance=cert-manager -n cert-manager --for=condition=Available=True | ||
- name: Run chart-testing (install) | ||
if: steps.list-changed.outputs.changed == 'true' | ||
run: ct --config ct.yaml install |
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.