-
Notifications
You must be signed in to change notification settings - Fork 111
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-alloy-helm-tutorial
- Loading branch information
Showing
721 changed files
with
93,065 additions
and
13,800 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 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,3 @@ | ||
owner: grafana | ||
git-repo: helm-charts | ||
skip-existing: 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,14 @@ | ||
## Reference: https://github.com/helm/chart-testing/blob/master/doc/ct_lint-and-install.md | ||
remote: origin | ||
target-branch: main | ||
chart-dirs: | ||
- charts | ||
chart-repos: | ||
- grafana=https://grafana.github.io/helm-charts | ||
validate-chart-schema: true | ||
validate-maintainers: true | ||
validate-yaml: true | ||
exclude-deprecated: true | ||
excluded-charts: [] | ||
# TODO: disable after publicly releasing 1.0.0 | ||
check-version-increment: 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,17 @@ | ||
name: Check eBPF code integrity | ||
|
||
on: | ||
push: | ||
branches: [ 'main', 'release-*' ] | ||
pull_request: | ||
branches: [ 'main', 'release-*' ] | ||
|
||
|
||
jobs: | ||
test: | ||
name: "Check eBPF code integrity" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: "Check eBPF code integrity" | ||
run: make check-ebpf-integrity |
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,48 @@ | ||
name: Publish Beyla Docker Generator Image | ||
on: | ||
workflow_dispatch: | ||
|
||
env: | ||
REGISTRY: ghcr.io | ||
IMAGE_NAME: grafana/beyla-generator | ||
|
||
jobs: | ||
build-and-push-image: | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
contents: read | ||
packages: write | ||
attestations: write | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
- name: Log in to the Container registry | ||
uses: docker/login-action@v3.1.0 | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Extract metadata (tags, labels) for Docker | ||
id: meta | ||
uses: docker/metadata-action@v5.5.1 | ||
with: | ||
images: "${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}" | ||
|
||
- name: Get current timestamp | ||
id: timestamp | ||
run: echo "::set-output name=ts::$(date +'%Y%m%d%H%M')" | ||
- name: Build and push Docker image | ||
id: push | ||
uses: docker/build-push-action@v5.3.0 | ||
with: | ||
context: . | ||
file: ./generator.Dockerfile | ||
push: true | ||
platforms: linux/amd64,linux/arm64 | ||
labels: ${{ steps.meta.outputs.labels }} | ||
tags: | | ||
"${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.timestamp.outputs.ts }}" | ||
"${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:main" |
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,16 @@ | ||
name: Release Helm chart | ||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
release-beyla-helm-chart: | ||
uses: grafana/helm-charts/.github/workflows/update-helm-repo.yaml@main | ||
with: | ||
charts_dir: charts/beyla | ||
cr_configfile: .github/configs/cr.yml | ||
ct_configfile: .github/configs/ct.yml | ||
secrets: | ||
# values are created in https://github.com/organizations/grafana/settings/apps/grafana-beyla-release | ||
# and copied to a repository secret | ||
github_app_id: ${{ secrets.BEYLA_RELEASE_APP_ID }} | ||
github_app_pem: ${{ secrets.BEYLA_RELEASE_APP_PEM }} |
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,54 @@ | ||
name: Test | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
|
||
workflow_call: | ||
inputs: | ||
filter_regex_include: | ||
description: this sets the scope of the super linter | ||
default: "charts/beyla/" | ||
required: false | ||
type: string | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
env: | ||
CT_CONFIGFILE: "${{ github.workspace }}/.github/configs/ct.yml" | ||
|
||
jobs: | ||
lint-helm-chart: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 # required for chart-testing to work | ||
|
||
- name: Regenerate docs | ||
run: | | ||
docker run --rm \ | ||
-v "$(pwd)/deployments/helm:/helm-docs" \ | ||
-u "$(id -u)" \ | ||
jnorwood/helm-docs | ||
if ! git diff --exit-code; then | ||
echo "Helm chart documentation is not up to date. Please run 'helm-docs' and commit changes!" >&2 | ||
exit 1 | ||
fi | ||
- name: Set up Linting with chart-testing | ||
uses: helm/chart-testing-action@v2.1.0 | ||
|
||
- name: Run chart-testing (list-changed) | ||
id: list-changed | ||
run: | | ||
changed=$(ct list-changed --config "${CT_CONFIGFILE}") | ||
if [[ -n "$changed" ]]; then | ||
echo "::set-output name=changed::true" | ||
fi | ||
- name: Linting with chart-testing | ||
run: ct lint --config "${CT_CONFIGFILE}" |
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
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.