Skip to content

Commit

Permalink
Merge branch 'grafana:main' into patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
towolf authored Dec 13, 2024
2 parents 47d3dfb + e98a86b commit d8d2653
Show file tree
Hide file tree
Showing 470 changed files with 37,793 additions and 26,542 deletions.
6 changes: 0 additions & 6 deletions .github/release-workflows.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,9 @@ local imageJobs = {

local weeklyImageJobs = {
loki: build.weeklyImage('loki', 'cmd/loki'),
fluentd: build.weeklyImage('fluent-plugin-loki', 'clients/cmd/fluentd', platform=['linux/amd64']),
'fluent-bit': build.weeklyImage('fluent-bit-plugin-loki', 'clients/cmd/fluent-bit', platform=['linux/amd64']),
logstash: build.weeklyImage('logstash-output-loki', 'clients/cmd/logstash', platform=['linux/amd64']),
logcli: build.weeklyImage('logcli', 'cmd/logcli'),
'loki-canary': build.weeklyImage('loki-canary', 'cmd/loki-canary'),
'loki-canary-boringcrypto': build.weeklyImage('loki-canary-boringcrypto', 'cmd/loki-canary-boringcrypto'),
promtail: build.weeklyImage('promtail', 'clients/cmd/promtail'),
querytee: build.weeklyImage('loki-query-tee', 'cmd/querytee', platform=['linux/amd64']),
'loki-docker-driver': build.weeklyDockerPlugin('grafana/loki-docker-driver', 'clients/cmd/docker-driver', platform=['linux/amd64', 'linux/arm64']),
};

local buildImageVersion = std.extVar('BUILD_IMAGE_VERSION');
Expand Down
16 changes: 3 additions & 13 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
{
// Disable Go version updates
"matchManagers": ["gomod"],
"matchPackageNames": ["go"],
"matchPackageNames": ["go", "toolchain"],
"enabled": false
},
{
Expand All @@ -48,17 +48,7 @@
"matchManagers": ["helm-requirements", "helm-values", "helmv3"],
"groupName": "helm-{{packageName}}",
"matchUpdateTypes": ["major", "minor", "patch"],
"autoApprove": false,
"automerge": false
},
{
// Separate out lambda-promtail updates from other dependencies
// Don't automatically merge lambda-promtail updates
// Updates to this require the nix SHA to be updated
"matchFileNames": ["tools/lambda-promtail/go.mod"],
"groupName": "lambdapromtail-{{packageName}}",
"enabled": true,
"matchUpdateTypes": ["major", "minor", "patch"],
"matchPackageNames": ["!grafana/loki"], // This is updated via a different job
"autoApprove": false,
"automerge": false
},
Expand All @@ -71,7 +61,7 @@
},
{
// Enable all other updates
"matchFileNames": ["!tools/lambda-promtail/go.mod", "!operator/go.mod", "!operator/api/loki/go.mod"],
"matchFileNames": ["!operator/go.mod", "!operator/api/loki/go.mod"],
"groupName": "{{packageName}}",
"enabled": true,
"matchUpdateTypes": ["major", "minor", "patch"],
Expand Down
302 changes: 0 additions & 302 deletions .github/workflows/images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,190 +7,6 @@
"release_lib_ref": "main"
"skip_validation": false
"use_github_app_token": true
"fluent-bit":
"env":
"BUILD_TIMEOUT": 60
"IMAGE_PREFIX": "grafana"
"RELEASE_LIB_REF": "main"
"RELEASE_REPO": "grafana/loki"
"needs":
- "check"
"runs-on": "ubuntu-latest"
"steps":
- "name": "pull release library code"
"uses": "actions/checkout@v4"
"with":
"path": "lib"
"ref": "${{ env.RELEASE_LIB_REF }}"
"repository": "grafana/loki-release"
- "name": "pull code to release"
"uses": "actions/checkout@v4"
"with":
"path": "release"
"repository": "${{ env.RELEASE_REPO }}"
- "name": "setup node"
"uses": "actions/setup-node@v4"
"with":
"node-version": 20
- "name": "Set up QEMU"
"uses": "docker/setup-qemu-action@v3"
- "name": "set up docker buildx"
"uses": "docker/setup-buildx-action@v3"
- "name": "Login to DockerHub (from vault)"
"uses": "grafana/shared-workflows/actions/dockerhub-login@main"
- "id": "weekly-version"
"name": "Get weekly version"
"run": |
echo "version=$(./tools/image-tag)" >> $GITHUB_OUTPUT
"working-directory": "release"
- "name": "Build and push"
"timeout-minutes": "${{ fromJSON(env.BUILD_TIMEOUT) }}"
"uses": "docker/build-push-action@v6"
"with":
"build-args": "IMAGE_TAG=${{ steps.weekly-version.outputs.version }}"
"context": "release"
"file": "release/clients/cmd/fluent-bit/Dockerfile"
"platforms": "linux/amd64"
"push": true
"tags": "${{ env.IMAGE_PREFIX }}/fluent-bit-plugin-loki:${{ steps.weekly-version.outputs.version }}"
"fluentd":
"env":
"BUILD_TIMEOUT": 60
"IMAGE_PREFIX": "grafana"
"RELEASE_LIB_REF": "main"
"RELEASE_REPO": "grafana/loki"
"needs":
- "check"
"runs-on": "ubuntu-latest"
"steps":
- "name": "pull release library code"
"uses": "actions/checkout@v4"
"with":
"path": "lib"
"ref": "${{ env.RELEASE_LIB_REF }}"
"repository": "grafana/loki-release"
- "name": "pull code to release"
"uses": "actions/checkout@v4"
"with":
"path": "release"
"repository": "${{ env.RELEASE_REPO }}"
- "name": "setup node"
"uses": "actions/setup-node@v4"
"with":
"node-version": 20
- "name": "Set up QEMU"
"uses": "docker/setup-qemu-action@v3"
- "name": "set up docker buildx"
"uses": "docker/setup-buildx-action@v3"
- "name": "Login to DockerHub (from vault)"
"uses": "grafana/shared-workflows/actions/dockerhub-login@main"
- "id": "weekly-version"
"name": "Get weekly version"
"run": |
echo "version=$(./tools/image-tag)" >> $GITHUB_OUTPUT
"working-directory": "release"
- "name": "Build and push"
"timeout-minutes": "${{ fromJSON(env.BUILD_TIMEOUT) }}"
"uses": "docker/build-push-action@v6"
"with":
"build-args": "IMAGE_TAG=${{ steps.weekly-version.outputs.version }}"
"context": "release"
"file": "release/clients/cmd/fluentd/Dockerfile"
"platforms": "linux/amd64"
"push": true
"tags": "${{ env.IMAGE_PREFIX }}/fluent-plugin-loki:${{ steps.weekly-version.outputs.version }}"
"logcli":
"env":
"BUILD_TIMEOUT": 60
"IMAGE_PREFIX": "grafana"
"RELEASE_LIB_REF": "main"
"RELEASE_REPO": "grafana/loki"
"needs":
- "check"
"runs-on": "ubuntu-latest"
"steps":
- "name": "pull release library code"
"uses": "actions/checkout@v4"
"with":
"path": "lib"
"ref": "${{ env.RELEASE_LIB_REF }}"
"repository": "grafana/loki-release"
- "name": "pull code to release"
"uses": "actions/checkout@v4"
"with":
"path": "release"
"repository": "${{ env.RELEASE_REPO }}"
- "name": "setup node"
"uses": "actions/setup-node@v4"
"with":
"node-version": 20
- "name": "Set up QEMU"
"uses": "docker/setup-qemu-action@v3"
- "name": "set up docker buildx"
"uses": "docker/setup-buildx-action@v3"
- "name": "Login to DockerHub (from vault)"
"uses": "grafana/shared-workflows/actions/dockerhub-login@main"
- "id": "weekly-version"
"name": "Get weekly version"
"run": |
echo "version=$(./tools/image-tag)" >> $GITHUB_OUTPUT
"working-directory": "release"
- "name": "Build and push"
"timeout-minutes": "${{ fromJSON(env.BUILD_TIMEOUT) }}"
"uses": "docker/build-push-action@v6"
"with":
"build-args": "IMAGE_TAG=${{ steps.weekly-version.outputs.version }}"
"context": "release"
"file": "release/cmd/logcli/Dockerfile"
"platforms": "linux/amd64,linux/arm64,linux/arm"
"push": true
"tags": "${{ env.IMAGE_PREFIX }}/logcli:${{ steps.weekly-version.outputs.version }}"
"logstash":
"env":
"BUILD_TIMEOUT": 60
"IMAGE_PREFIX": "grafana"
"RELEASE_LIB_REF": "main"
"RELEASE_REPO": "grafana/loki"
"needs":
- "check"
"runs-on": "ubuntu-latest"
"steps":
- "name": "pull release library code"
"uses": "actions/checkout@v4"
"with":
"path": "lib"
"ref": "${{ env.RELEASE_LIB_REF }}"
"repository": "grafana/loki-release"
- "name": "pull code to release"
"uses": "actions/checkout@v4"
"with":
"path": "release"
"repository": "${{ env.RELEASE_REPO }}"
- "name": "setup node"
"uses": "actions/setup-node@v4"
"with":
"node-version": 20
- "name": "Set up QEMU"
"uses": "docker/setup-qemu-action@v3"
- "name": "set up docker buildx"
"uses": "docker/setup-buildx-action@v3"
- "name": "Login to DockerHub (from vault)"
"uses": "grafana/shared-workflows/actions/dockerhub-login@main"
- "id": "weekly-version"
"name": "Get weekly version"
"run": |
echo "version=$(./tools/image-tag)" >> $GITHUB_OUTPUT
"working-directory": "release"
- "name": "Build and push"
"timeout-minutes": "${{ fromJSON(env.BUILD_TIMEOUT) }}"
"uses": "docker/build-push-action@v6"
"with":
"build-args": "IMAGE_TAG=${{ steps.weekly-version.outputs.version }}"
"context": "release"
"file": "release/clients/cmd/logstash/Dockerfile"
"platforms": "linux/amd64"
"push": true
"tags": "${{ env.IMAGE_PREFIX }}/logstash-output-loki:${{ steps.weekly-version.outputs.version }}"
"loki":
"env":
"BUILD_TIMEOUT": 60
Expand Down Expand Up @@ -329,78 +145,6 @@
"platforms": "linux/amd64,linux/arm64,linux/arm"
"push": true
"tags": "${{ env.IMAGE_PREFIX }}/loki-canary-boringcrypto:${{ steps.weekly-version.outputs.version }}"
"loki-docker-driver":
"env":
"BUILD_TIMEOUT": 60
"IMAGE_PREFIX": "grafana"
"RELEASE_LIB_REF": "main"
"RELEASE_REPO": "grafana/loki"
"needs":
- "check"
"runs-on": "ubuntu-latest"
"steps":
- "name": "pull release library code"
"uses": "actions/checkout@v4"
"with":
"path": "lib"
"ref": "${{ env.RELEASE_LIB_REF }}"
"repository": "grafana/loki-release"
- "name": "pull code to release"
"uses": "actions/checkout@v4"
"with":
"path": "release"
"repository": "${{ env.RELEASE_REPO }}"
- "name": "setup node"
"uses": "actions/setup-node@v4"
"with":
"node-version": 20
- "name": "Set up QEMU"
"uses": "docker/setup-qemu-action@v3"
- "name": "set up docker buildx"
"uses": "docker/setup-buildx-action@v3"
- "name": "Login to DockerHub (from vault)"
"uses": "grafana/shared-workflows/actions/dockerhub-login@main"
- "id": "weekly-version"
"name": "Get weekly version"
"run": |
echo "version=$(./tools/image-tag)" >> $GITHUB_OUTPUT
platform="$(echo "${{ matrix.platform}}" | sed "s/\(.*\)\/\(.*\)/\1-\2/")"
echo "platform=${platform}" >> $GITHUB_OUTPUT
echo "platform_short=$(echo ${{ matrix.platform }} | cut -d / -f 2)" >> $GITHUB_OUTPUT
if [[ "${platform}" == "linux/arm64" ]]; then
echo "plugin_arch=-arm64" >> $GITHUB_OUTPUT
else
echo "plugin_arch=" >> $GITHUB_OUTPUT
fi
"working-directory": "release"
- "name": "Build and export"
"timeout-minutes": "${{ fromJSON(env.BUILD_TIMEOUT) }}"
"uses": "docker/build-push-action@v6"
"with":
"build-args": "IMAGE_TAG=${{ steps.weekly-version.outputs.version }},GOARCH=${{ steps.weekly-version.outputs.platform_short }}"
"context": "release"
"file": "release/clients/cmd/docker-driver/Dockerfile"
"outputs": "type=docker,dest=release/images/grafana/loki-docker-driver-${{ needs.version.outputs.version}}-${{ steps.platform.outputs.platform }}.tar"
"platforms": "${{ matrix.platform }}"
"push": false
"tags": "${{ env.IMAGE_PREFIX }}/grafana/loki-docker-driver:${{ steps.weekly-version.outputs.version }}"
- "env":
"BUILD_DIR": "release/clients/cmd/docker-driver"
"IMAGE_TAG": "${{ steps.weekly-version.outputs.version }}"
"name": "Package and push as Docker plugin"
"run": |
rm -rf "${{ env.BUILD_DIR }}/rootfs" || true
mkdir "${{ env.BUILD_DIR }}/rootfs"
tar -x -C "${{ env.BUILD_DIR }}/rootfs" -f "release/images/%s-${{ needs.version.outputs.version}}-${{ steps.platform.outputs.platform }}.tar"
docker plugin create "${{ env.IMAGE_TAG }}${{ steps.platform.outputs.plugin_arch }}" "${{ env.BUILD_DIR }}"
docker plugin push "${{ env.IMAGE_TAG }}${{ steps.platform.outputs.plugin_arch }}"
"working-directory": "release"
"strategy":
"matrix":
"platform":
- "linux/amd64"
- "linux/arm64"
"promtail":
"env":
"BUILD_TIMEOUT": 60
Expand Down Expand Up @@ -447,52 +191,6 @@
"platforms": "linux/amd64,linux/arm64,linux/arm"
"push": true
"tags": "${{ env.IMAGE_PREFIX }}/promtail:${{ steps.weekly-version.outputs.version }}"
"querytee":
"env":
"BUILD_TIMEOUT": 60
"IMAGE_PREFIX": "grafana"
"RELEASE_LIB_REF": "main"
"RELEASE_REPO": "grafana/loki"
"needs":
- "check"
"runs-on": "ubuntu-latest"
"steps":
- "name": "pull release library code"
"uses": "actions/checkout@v4"
"with":
"path": "lib"
"ref": "${{ env.RELEASE_LIB_REF }}"
"repository": "grafana/loki-release"
- "name": "pull code to release"
"uses": "actions/checkout@v4"
"with":
"path": "release"
"repository": "${{ env.RELEASE_REPO }}"
- "name": "setup node"
"uses": "actions/setup-node@v4"
"with":
"node-version": 20
- "name": "Set up QEMU"
"uses": "docker/setup-qemu-action@v3"
- "name": "set up docker buildx"
"uses": "docker/setup-buildx-action@v3"
- "name": "Login to DockerHub (from vault)"
"uses": "grafana/shared-workflows/actions/dockerhub-login@main"
- "id": "weekly-version"
"name": "Get weekly version"
"run": |
echo "version=$(./tools/image-tag)" >> $GITHUB_OUTPUT
"working-directory": "release"
- "name": "Build and push"
"timeout-minutes": "${{ fromJSON(env.BUILD_TIMEOUT) }}"
"uses": "docker/build-push-action@v6"
"with":
"build-args": "IMAGE_TAG=${{ steps.weekly-version.outputs.version }}"
"context": "release"
"file": "release/cmd/querytee/Dockerfile"
"platforms": "linux/amd64"
"push": true
"tags": "${{ env.IMAGE_PREFIX }}/loki-query-tee:${{ steps.weekly-version.outputs.version }}"
"name": "publish images"
"on":
"push":
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/nix-ci.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
---
name: "Lint And Build Nix Flake"
on:
push:
branches:
- main
pull_request:
paths:
- "flake.nix"
Expand Down
4 changes: 4 additions & 0 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,9 @@
# The observability logs team is listed as co-codeowner for grammar file. This is to receive notifications about updates, so these can be implemented in https://github.com/grafana/lezer-logql
/pkg/logql/syntax/expr.y @grafana/observability-logs @grafana/loki-team

# Nix
/nix/ @trevorwhitney
flake.nix @trevorwhitney

# No owners - allows sub-maintainers to merge changes.
CHANGELOG.md
Loading

0 comments on commit d8d2653

Please sign in to comment.