Skip to content

Commit f679e8f

Browse files
authored
Merge pull request #5060 from kubernetes-sigs/master
📖 Update production docs with 4.8.0 release
2 parents cf5dbb3 + a069bf1 commit f679e8f

File tree

285 files changed

+11347
-2515
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

285 files changed

+11347
-2515
lines changed

.github/workflows/apidiff.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
if: (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository)
1717
steps:
1818
- name: Clone the code
19-
uses: actions/checkout@v4
19+
uses: actions/checkout@v5
2020
with:
2121
fetch-depth: 0
2222
- name: Setup Go

.github/workflows/codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020

2121
steps:
2222
- name: Checkout repository
23-
uses: actions/checkout@v4
23+
uses: actions/checkout@v5
2424

2525
- name: Setup Go
2626
uses: actions/setup-go@v5

.github/workflows/coverage.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Coverage
2+
3+
on:
4+
push:
5+
paths-ignore: ['**/*.md']
6+
pull_request:
7+
paths-ignore: ['**/*.md']
8+
9+
jobs:
10+
coverage:
11+
runs-on: ubuntu-latest
12+
if: (github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository)
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v5
16+
17+
- name: Setup Go
18+
uses: actions/setup-go@v5
19+
with:
20+
go-version-file: go.mod
21+
22+
- name: Remove pre-installed kustomize
23+
run: sudo rm -f /usr/local/bin/kustomize
24+
25+
- name: Run tests with coverage
26+
run: make test-coverage
27+
28+
- name: Upload coverage to Coveralls
29+
uses: shogo82148/actions-goveralls@v1
30+
with:
31+
path-to-profile: coverage-all.out
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Cross-Platform Tests
2+
3+
# Trigger the workflow on pull requests and direct pushes to any branch
4+
on:
5+
push:
6+
paths-ignore:
7+
- '**/*.md'
8+
pull_request:
9+
paths-ignore:
10+
- '**/*.md'
11+
12+
jobs:
13+
test:
14+
name: ${{ matrix.os }}
15+
runs-on: ${{ matrix.os }}
16+
strategy:
17+
matrix:
18+
os:
19+
- ubuntu-latest
20+
- macos-latest
21+
# Pull requests from the same repository won't trigger this checks as they were already triggered by the push
22+
if: (github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository)
23+
steps:
24+
- name: Clone the code
25+
uses: actions/checkout@v5
26+
- name: Setup Go
27+
uses: actions/setup-go@v5
28+
with:
29+
go-version-file: go.mod
30+
# This step is needed as the following one tries to remove
31+
# kustomize for each test but has no permission to do so
32+
- name: Remove pre-installed kustomize
33+
run: sudo rm -f /usr/local/bin/kustomize
34+
35+
- name: Unit Tests
36+
run: make test-unit
37+
38+
- name: Run Testdata
39+
run: make test-testdata
40+
41+
- name: Run Integration Tests
42+
run: make test-integration
43+

.github/workflows/external-plugin.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
2020
steps:
2121
- name: Checkout repository
22-
uses: actions/checkout@v4
22+
uses: actions/checkout@v5
2323

2424
- name: Setup Go
2525
uses: actions/setup-go@v5

.github/workflows/legacy-webhook-path.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
2323
steps:
2424
- name: Clone the code
25-
uses: actions/checkout@v4
25+
uses: actions/checkout@v5
2626
- name: Setup Go
2727
uses: actions/setup-go@v5
2828
with:

.github/workflows/lint-sample.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,15 @@ name: Lint Samples
22

33
on:
44
push:
5-
paths-ignore:
6-
- '**/*.md'
5+
paths:
6+
- 'testdata/**'
7+
- 'docs/book/src/**/testdata/**'
8+
- '.github/workflows/lint-sample.yml'
79
pull_request:
8-
paths-ignore:
9-
- '**/*.md'
10+
paths:
11+
- 'testdata/**'
12+
- 'docs/book/src/**/testdata/**'
13+
- '.github/workflows/lint-sample.yml'
1014

1115
jobs:
1216
lint-samples:
@@ -25,7 +29,7 @@ jobs:
2529
if: (github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository)
2630
steps:
2731
- name: Clone the code
28-
uses: actions/checkout@v4
32+
uses: actions/checkout@v5
2933
- name: Setup Go
3034
uses: actions/setup-go@v5
3135
with:
@@ -39,7 +43,7 @@ jobs:
3943
- name: Run linter
4044
uses: golangci/golangci-lint-action@v8
4145
with:
42-
version: v2.1.6
46+
version: v2.3.0
4347
working-directory: ${{ matrix.folder }}
4448
- name: Run linter via makefile target
4549
working-directory: ${{ matrix.folder }}

.github/workflows/lint.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
if: (github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository)
1717
steps:
1818
- name: Clone the code
19-
uses: actions/checkout@v4
19+
uses: actions/checkout@v5
2020
- name: Setup Go
2121
uses: actions/setup-go@v5
2222
with:
@@ -26,11 +26,18 @@ jobs:
2626
- name: Run linter
2727
uses: golangci/golangci-lint-action@v8
2828
with:
29-
version: v2.1.6
29+
version: v2.3.0
3030

3131
yamllint:
3232
runs-on: ubuntu-latest
3333
steps:
34-
- uses: actions/checkout@v4
34+
- uses: actions/checkout@v5
3535
- name: Run yamllint make target
3636
run: make yamllint
37+
38+
license:
39+
runs-on: ubuntu-latest
40+
steps:
41+
- uses: actions/checkout@v5
42+
- name: Run license check
43+
run: make test-license
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: Test GoReleaser and CLI Version
2+
3+
on:
4+
push:
5+
paths:
6+
- 'pkg/**'
7+
- 'cmd/**'
8+
- 'build/.goreleaser.yml'
9+
- '.github/workflows/release-version-ci.yml'
10+
pull_request:
11+
paths:
12+
- 'pkg/**'
13+
- 'cmd/**'
14+
- 'build/.goreleaser.yml'
15+
- '.github/workflows/release-version-ci.yml'
16+
17+
jobs:
18+
go-releaser-test:
19+
runs-on: ubuntu-latest
20+
21+
steps:
22+
- name: Checkout code
23+
uses: actions/checkout@v5
24+
with:
25+
fetch-depth: 0
26+
27+
- name: Set up Go
28+
uses: actions/setup-go@v5
29+
with:
30+
go-version-file: go.mod
31+
32+
- name: Clean dist directory
33+
run: rm -rf dist || true
34+
35+
- name: Create temporary git tag
36+
run: |
37+
git tag v4.5.3-rc.1
38+
39+
- name: Install Syft to generate SBOMs
40+
run: |
41+
curl -sSfL https://raw.githubusercontent.com/anchore/syft/main/install.sh | sh -s -- -b $HOME/bin
42+
echo "$HOME/bin" >> $GITHUB_PATH
43+
44+
- name: Run GoReleaser in mock mode using tag
45+
uses: goreleaser/goreleaser-action@v6
46+
with:
47+
version: v2.7.0
48+
args: release --skip=publish --clean -f ./build/.goreleaser.yml
49+
50+
- name: Init project using built kubebuilder binary and check cliVersion
51+
run: |
52+
mkdir test-operator && cd test-operator
53+
go mod init test-operator
54+
chmod +x ../dist/kubebuilder_linux_amd64_v1/kubebuilder
55+
../dist/kubebuilder_linux_amd64_v1/kubebuilder init --domain example.com
56+
57+
echo "PROJECT file content:"
58+
cat PROJECT
59+
60+
echo "Verifying cliVersion value..."
61+
grep '^cliVersion: 4.5.3-rc.1$' PROJECT

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313

1414
steps:
1515
- name: Checkout
16-
uses: actions/checkout@v4
16+
uses: actions/checkout@v5
1717
with:
1818
fetch-depth: 0
1919
- name: Fetch all tags

0 commit comments

Comments
 (0)