Skip to content

Commit

Permalink
Merge branch 'main' into swift-tls
Browse files Browse the repository at this point in the history
  • Loading branch information
JoaoBraveCoding committed Nov 15, 2024
2 parents 776c5c4 + b2df31d commit 99a0cf3
Show file tree
Hide file tree
Showing 1,094 changed files with 36,548 additions and 102,555 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"image": "grafana/loki-build-image:0.34.0",
"image": "grafana/loki-build-image:0.34.1",
"containerEnv": {
"BUILD_IN_CONTAINER": "false"
},
Expand Down
10 changes: 10 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,16 @@
"github.com/grafana/loki/operator/api/loki"
],
"enabled": false
},
{
"matchManagers": ["gomod"],
"matchPackageNames": ["go"],
"enabled": false
},
{
"matchManagers": ["dockerfile"],
"matchPackageNames": ["golang", "grafana/loki-build-image"],
"enabled": false
}
],
"digest": {
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/doc-validator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
doc-validator:
runs-on: "ubuntu-latest"
container:
image: "grafana/doc-validator:v5.1.0"
image: "grafana/doc-validator:v5.2.0"
steps:
- name: "Checkout code"
uses: "actions/checkout@v4"
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/helm-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ jobs:
run: make helm-lint

- name: Lint Code Base
uses: docker://github/super-linter:v3.12.0
uses: docker://github/super-linter:v3.17.2
env:
FILTER_REGEX_EXCLUDE: .*(README\.md|Chart\.yaml|NOTES.txt).*
FILTER_REGEX_EXCLUDE: .*(CHANGELOG\.md|README\.md|Chart\.yaml|NOTES.txt).*
FILTER_REGEX_INCLUDE: .*production/helm/.*
VALIDATE_ALL_CODEBASE: false
VALIDATE_KUBERNETES_KUBEVAL: false
Expand Down Expand Up @@ -76,7 +76,7 @@ jobs:
timeout-minutes: 10

- name: Create kind cluster
uses: helm/kind-action@v1.8.0
uses: helm/kind-action@v1.10.0
if: steps.list-changed.outputs.changed == 'true'

- name: Install prometheus operator
Expand All @@ -85,10 +85,12 @@ jobs:
run: |
kubectl create namespace prometheus
helm install prometheus prometheus-community/kube-prometheus-stack \
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm install --debug prometheus prometheus-community/kube-prometheus-stack \
--namespace prometheus \
--set grafana.enabled=false \
--set prometheus.prometheusSpec.serviceMonitorSelector.matchLabels.release=prometheus
--set prometheus.prometheusSpec.serviceMonitorSelector.matchLabels.release=prometheus \
--set prometheus.prometheusSpec.scrapeConfigNamespaceSelector.matchLabels.release=prometheus
kubectl --namespace prometheus get pods -l "release=prometheus"
kubectl --namespace prometheus get services -l "release=prometheus"
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/operator-publish-operator-hub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,16 @@ jobs:
with:
org: redhat-openshift-ecosystem
repo: community-operators-prod
secrets:
APP_ID: ${{ secrets.APP_ID }}
APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }}

operator-hub-community-release:
if: startsWith(github.event.release.tag_name, 'operator/')
uses: ./.github/workflows/operator-reusable-hub-release.yml
with:
org: k8s-operatorhub
repo: community-operators
secrets:
APP_ID: ${{ secrets.APP_ID }}
APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }}
30 changes: 29 additions & 1 deletion .github/workflows/operator-release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,18 @@ on:
permissions:
contents: write
pull-requests: write
# Necessary for grafana/shared-workflows/actions/dockerhub-login@main
id-token: write

jobs:
releasePlease:
runs-on: ubuntu-latest
outputs:
release_created: ${{ steps.release.outputs.operator--release_created }}
release_name: ${{ steps.release.outputs.operator--tag_name }}
release_major: ${{ steps.release.outputs.operator--major }}
release_minor: ${{ steps.release.outputs.operator--minor }}
release_patch: ${{ steps.release.outputs.operator--patch }}
steps:
- id: "get_github_app_token"
name: Get GitHub App Token
Expand Down Expand Up @@ -53,4 +58,27 @@ jobs:
GH_TOKEN: ${{ steps.get_github_app_token.outputs.token }}
working-directory: "release"
run: |
gh release edit "${{ needs.releasePlease.outputs.release_name }}" --draft=false --latest=false
gh release edit "${{ needs.releasePlease.outputs.release_name }}" --draft=false --latest=false
publishImages:
env:
BUILD_TIMEOUT: 60
IMAGE_PREFIX: "grafana"
needs:
- "publishRelease"
runs-on: ubuntu-latest
steps:
- 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"
- name: "Build and push"
timeout-minutes: "${{ env.BUILD_TIMEOUT }}"
uses: "docker/build-push-action@v6"
with:
context: "operator"
file: "Dockerfile"
platforms: "linux/amd64,linux/arm64,linux/arm"
push: true
tags: "${{ env.IMAGE_PREFIX }}/loki-operator:${{ steps.releasePlease.outputs.release_major }}.${{ steps.releasePlease.outputs.release_minor }}.${{ steps.releasePlease.outputs.release_patch }}"
7 changes: 7 additions & 0 deletions .github/workflows/operator-reusable-hub-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ on:
repo:
type: string
required: true
secrets:
APP_ID:
type: string
required: true
APP_PRIVATE_KEY:
type: string
required: true

jobs:
create-operator-pull-request:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/scripts/helm-weekly-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,11 @@ validate_version_update "${new_chart_version}" "${current_chart_version}" "${lat

if ${k_release}; then
update_yaml_node "${values_file}" .loki.image.tag "${latest_loki_tag}"
update_yaml_node "${values_file}" .lokiCanary.image.tag "${latest_loki_tag}"

update_yaml_node "${values_file}" .enterprise.image.tag "${latest_gel_tag}"
update_yaml_node "${values_file}" .enterprise.provisioner.image.tag "${latest_gel_tag}"

update_yaml_node "${chart_file}" .appVersion "$(extract_k_version "${latest_loki_tag}")"
fi

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/syft-sbom-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
uses: actions/checkout@v4

- name: Anchore SBOM Action
uses: anchore/[email protected].2
uses: anchore/[email protected].7
with:
artifact-name: ${{ github.event.repository.name }}-spdx.json

4 changes: 2 additions & 2 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
".": "3.1.1",
"operator": "0.6.2"
".": "3.2.1",
"operator": "0.7.1"
}
Loading

0 comments on commit 99a0cf3

Please sign in to comment.