-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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 fix/json-exporter-scrapetimeout
Signed-off-by: MH <[email protected]>
- Loading branch information
Showing
275 changed files
with
7,375 additions
and
1,796 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,5 @@ | ||
root = true | ||
|
||
[*.sh] | ||
indent_style = space | ||
indent_size = 2 |
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 |
---|---|---|
@@ -1,17 +1,18 @@ | ||
# See https://github.com/helm/chart-testing#configuration | ||
remote: origin | ||
target-branch: main | ||
additional-commands: | ||
- sh -ec "if [ -f '{{ .Path }}/ci/lint.sh' ]; then shellcheck '{{ .Path }}/ci/lint.sh'; bash '{{ .Path }}/ci/lint.sh'; fi" | ||
# - helm unittest --helm3 --strict --file unittests/*.yaml --file 'unittests/**/*.yaml' {{ .Path }} | ||
chart-dirs: | ||
- charts | ||
chart-repos: | ||
- bitnami=https://charts.bitnami.com/bitnami | ||
- grafana=https://grafana.github.io/helm-charts | ||
- prometheus-community=https://prometheus-community.github.io/helm-charts | ||
github-groups: true | ||
helm-extra-args: --timeout 600s | ||
excluded-charts: | ||
# If not running on GCE, will error: "Failed to get GCE config" | ||
- prometheus-to-sd | ||
additional-commands: | ||
- sh -ec "if [ -f '{{ .Path }}/ci/lint.sh' ]; then shellcheck '{{ .Path }}/ci/lint.sh'; bash '{{ .Path }}/ci/lint.sh'; fi" | ||
# - helm unittest --helm3 --strict --file unittests/*.yaml --file 'unittests/**/*.yaml' {{ .Path }} | ||
github-groups: true | ||
helm-extra-args: --timeout 600s | ||
remote: origin | ||
target-branch: main | ||
validate-maintainers: 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
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
name: Release Charts | ||
permissions: {} | ||
|
||
on: | ||
push: | ||
|
@@ -12,10 +13,10 @@ jobs: | |
packages: write # needed for ghcr access | ||
id-token: write # needed for keyless signing | ||
|
||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v4 | ||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
|
||
- name: Fetch history | ||
run: git fetch --prune --unshallow | ||
|
@@ -26,7 +27,7 @@ jobs: | |
git config user.email "[email protected]" | ||
- name: Set up Helm | ||
uses: azure/setup-helm@v4 | ||
uses: azure/setup-helm@fe7b79cd5ee1e45176fcad797de68ecaf3ca4814 # v4.2.0 | ||
with: | ||
version: v3.12.0 | ||
|
||
|
@@ -37,14 +38,16 @@ jobs: | |
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts | ||
- name: Run chart-releaser | ||
uses: helm/[email protected] | ||
uses: helm/chart-releaser-action@cae68fefc6b5f367a0275617c9f83181ba54714f # v1.7.0 | ||
with: | ||
skip_existing: true | ||
env: | ||
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
CR_GENERATE_RELEASE_NOTES: true | ||
|
||
# see https://github.com/helm/chart-releaser/issues/183 | ||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v3 | ||
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
|
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,93 @@ | ||
name: Renovate Bump Chart Version | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- 'charts/**/*' | ||
|
||
jobs: | ||
renovate-bump-chart-version: | ||
name: Renovate Bump Chart Version | ||
runs-on: ubuntu-latest | ||
if: github.actor == 'renovate[bot]' | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
steps: | ||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0 | ||
with: | ||
python-version: '3.11' | ||
|
||
- name: Set up chart-testing | ||
uses: helm/chart-testing-action@0d28d3144d3a25ea2cc349d6e59901c4ff469b3b # v2.7.0 | ||
|
||
- name: Detect changed charts | ||
id: list-changed | ||
run: | | ||
changed="$(ct list-changed --config .github/linters/ct.yaml)" | ||
if [[ -n "$changed" ]]; then | ||
echo "changed=true" >> "$GITHUB_OUTPUT" | ||
echo "changed_list=${changed//$'\n'/ }" >> "$GITHUB_OUTPUT" | ||
fi | ||
- name: Bump chart version | ||
if: steps.list-changed.outputs.changed == 'true' | ||
env: | ||
CHART: ${{ steps.list-changed.outputs.changed_list }} | ||
run: | | ||
if [[ $CHANGED_LIST == *" "* ]]; then | ||
echo "Multiple charts changed, skipping bumping chart version" | ||
exit 0 | ||
fi | ||
CHART_VERSION=$(grep -e "^version:" "$CHART/Chart.yaml" | cut -d ":" -f 2 | tr -d '[:space:]' | tr -d '"') | ||
CHART_MAJOR_VERSION=$(printf '%s' "$CHART_VERSION" | cut -d "." -f 1) | ||
CHART_MINOR_VERSION=$(printf '%s' "$CHART_VERSION" | cut -d "." -f 2) | ||
CHART_MINOR_VERSION=$((CHART_MINOR_VERSION+1)) | ||
CHART_NEW_VERSION="${CHART_MAJOR_VERSION}.${CHART_MINOR_VERSION}.0" | ||
sed -i "s/^version:.*/version: \"${CHART_NEW_VERSION}\"/" "$CHART/Chart.yaml" | ||
- name: Commit changes | ||
if: steps.list-changed.outputs.changed == 'true' | ||
env: | ||
CHART: ${{ steps.list-changed.outputs.changed_list }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GITHUB_HEAD_REF: ${{ github.head_ref }} | ||
run: | | ||
curl https://api.github.com/graphql -f \ | ||
-sSf -H "Authorization: Bearer $GITHUB_TOKEN" \ | ||
--data @- <<GRAPHQL | jq | ||
{ | ||
"query": "mutation (\$input: CreateCommitOnBranchInput!) { | ||
createCommitOnBranch(input: \$input) { | ||
commit { | ||
url | ||
} | ||
} | ||
}", | ||
"variables": { | ||
"input": { | ||
"branch": { | ||
"repositoryNameWithOwner": "${{ github.repository }}", | ||
"branchName": "$GITHUB_HEAD_REF" | ||
}, | ||
"message": { "headline": "Update Chart.yaml" }, | ||
"fileChanges": { | ||
"additions": [ | ||
{ | ||
"path": "$CHART/Chart.yaml", | ||
"contents": "$(base64 -w 0 <"$CHART/Chart.yaml")" | ||
} | ||
] | ||
}, | ||
"expectedHeadOid": "${{ github.sha }}" | ||
} | ||
} | ||
} | ||
GRAPHQL |
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.