Skip to content

feat: add certificate conflict detection to admission webhooks #4918

feat: add certificate conflict detection to admission webhooks

feat: add certificate conflict detection to admission webhooks #4918

Workflow file for this run

# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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.
name: lint
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Go Env
uses: actions/setup-go@v4
with:
go-version: "1.24"
- name: check go path for debug
run: go env
- name: 🛩️ golangci-lint
run: make lint
crd-docs-check:
name: Check CRD Docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Download crd-ref-docs
run: |
mkdir -p ./bin
curl -L -o ./bin/crd-ref-docs.tar.gz https://github.com/elastic/crd-ref-docs/releases/download/v0.1.0/crd-ref-docs_0.1.0_Linux_x86_64.tar.gz
tar -xzvf ./bin/crd-ref-docs.tar.gz -C ./bin
chmod +x ./bin/crd-ref-docs
- name: Generate CRD Docs
run: |
make generate-crd-docs
- name: Check CRD Docs Diff
run: |
if ! git diff --exit-code -- docs/en/latest/reference/api-reference.md; then
echo "docs/en/latest/reference/api-reference.md has changed. Please run 'make generate-crd-docs' and commit the updated file."
exit 1
fi