Skip to content

Prometheus Operator: change label for monitoring resources #2928

Prometheus Operator: change label for monitoring resources

Prometheus Operator: change label for monitoring resources #2928

Workflow file for this run

---
# Copyright (C) Nicolas Lamirault <nicolas.lamirault@gmail.com>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0
name: Flux / OPA Policies
on: # yamllint disable-line rule:truthy
pull_request:
branches:
- master
paths:
- 'gitops/fluxcd/clusters/**'
- 'gitops/fluxcd/kubernetes/**'
# push:
# branches:
# - master
# paths:
# - 'gitops/fluxcd/clusters/**'
# - 'gitops/fluxcd/kubernetes/**'
############################################################################
# OPA
jobs:
prod:
runs-on: ubuntu-latest
steps:
- name: Monitor Actions
uses: GitHubSecurityLab/actions-permissions/monitor@v1
with:
config: ${{ vars.PERMISSIONS_CONFIG }}
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Setup tools
uses: ./.github/actions/tools
- name: Run box version
run: |
DEBUG=true ./hack/scripts/flux-opa.sh gitops/fluxcd/kubernetes prod addons/policies/core
dev:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Setup tools
uses: ./.github/actions/tools
- name: Run box version
run: |
DEBUG=true ./hack/scripts/flux-opa.sh gitops/fluxcd/kubernetes dev addons/policies/core
staging:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Setup tools
uses: ./.github/actions/tools
- name: Run box version
run: |
DEBUG=true ./hack/scripts/flux-opa.sh gitops/fluxcd/kubernetes staging addons/policies/core