Skip to content

Commit

Permalink
feat(grafana-alloy): add Grafana Alloy (#499)
Browse files Browse the repository at this point in the history
This commit adds the Grafana Alloy (https://github.com/grafana/alloy/) CRDs
in version 1.6.1.
  • Loading branch information
walnuss0815 authored Feb 12, 2025
1 parent ad09991 commit a11f503
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1419,6 +1419,46 @@
"SSH_KEY": "${{ secrets.DEPLOY_KEY }}"
"if": "steps.filter.outputs.workflows == 'true'"
"run": "make libs/grafana-agent"
"grafana-alloy":
"name": "Generate grafana-alloy Jsonnet library and docs"
"needs":
- "build"
- "repos"
"runs-on": "ubuntu-latest"
"steps":
- "uses": "actions/checkout@v4"
- "id": "filter"
"uses": "dorny/paths-filter@v3"
"with":
"filters": |
workflows:
- '.github/**'
- 'bin/**'
- 'Dockerfile'
- 'go.mod'
- 'go.sum'
- 'jsonnet/**'
- 'main.go'
- 'Makefile'
- 'pkg/**'
- 'scripts/**'
- 'tf/**'
- 'libs/grafana-alloy/**'
- "if": "steps.filter.outputs.workflows == 'true'"
"uses": "actions/download-artifact@v4"
"with":
"name": "docker-artifact"
"path": "artifacts"
- "if": "steps.filter.outputs.workflows == 'true'"
"run": "make load"
- "env":
"DIFF": "true"
"GEN_COMMIT": "${{ github.ref == 'refs/heads/master' && github.repository == 'jsonnet-libs/k8s' }}"
"GIT_COMMITTER_EMAIL": "[email protected]"
"GIT_COMMITTER_NAME": "jsonnet-libs-bot"
"SSH_KEY": "${{ secrets.DEPLOY_KEY }}"
"if": "steps.filter.outputs.workflows == 'true'"
"run": "make libs/grafana-alloy"
"grafana-operator":
"name": "Generate grafana-operator Jsonnet library and docs"
"needs":
Expand Down Expand Up @@ -2413,6 +2453,7 @@
- "gateway-api"
- "google-cloud-sql-proxy-operator"
- "grafana-agent"
- "grafana-alloy"
- "grafana-operator"
- "harbor-operator"
- "istio"
Expand Down
21 changes: 21 additions & 0 deletions libs/grafana-alloy/config.jsonnet
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
local config = import 'jsonnet/config.jsonnet';

local versions = [
{ output: '1.6', version: '1.6.1' },
];

config.new(
name='grafana-alloy',
specs=[
{
local url = 'https://raw.githubusercontent.com/grafana/alloy/refs/tags/v%s/operations/helm/charts/alloy/charts/crds/crds' % v.version,
output: v.output,
prefix: '^com\\.grafana\\..*',
crds: [
'%s/monitoring.grafana.com_podlogs.yaml' % url,
],
localName: 'grafana-alloy',
}
for v in versions
]
)

0 comments on commit a11f503

Please sign in to comment.