Skip to content

Commit f3e741e

Browse files
authored
Merge branch 'kubernetes-sigs:main' into flatcar-sysext-with-lb
2 parents 234280f + 49d55d7 commit f3e741e

File tree

436 files changed

+5555
-80398
lines changed

Some content is hidden

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

436 files changed

+5555
-80398
lines changed

.github/dependabot.yml

Lines changed: 63 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ updates:
2323
- directories:
2424
- "/"
2525
- "/hack/tools"
26-
- "/orc"
2726
package-ecosystem: "gomod"
2827
schedule:
2928
interval: "weekly"
@@ -47,10 +46,67 @@ updates:
4746
update-types: ["version-update:semver-major", "version-update:semver-minor"]
4847
# We will need k8s v0.31.3 to bump structured-merge-diff to v4.4.2 (check git history for details).
4948
- dependency-name: "sigs.k8s.io/structured-merge-diff/*"
49+
# For now we deploy CAPI from an unreleased commit
50+
- dependency-name: "sigs.k8s.io/cluster-api*"
51+
# These dependencies are skipped because they require a newer version of go:
52+
- dependency-name: "github.com/a8m/envsubst"
5053
labels:
5154
- "area/dependency"
5255
- "ok-to-test"
5356
## main branch config ends here
57+
## release-0.12 branch config starts here
58+
# github-actions
59+
- directory: "/"
60+
package-ecosystem: "github-actions"
61+
schedule:
62+
interval: "weekly"
63+
day: "monday"
64+
target-branch: release-0.12
65+
groups:
66+
all-github-actions:
67+
patterns: [ "*" ]
68+
commit-message:
69+
prefix: ":seedling:"
70+
include: scope
71+
labels:
72+
- "area/dependency"
73+
- "ok-to-test"
74+
# Go directories
75+
- directories:
76+
- "/"
77+
- "/hack/tools"
78+
package-ecosystem: "gomod"
79+
schedule:
80+
interval: "weekly"
81+
day: "monday"
82+
target-branch: release-0.12
83+
groups:
84+
all-go-mod-patch-and-minor:
85+
patterns: [ "*" ]
86+
update-types: [ "patch", "minor" ]
87+
commit-message:
88+
prefix: ":seedling:"
89+
include: scope
90+
ignore:
91+
# Ignore CAPI major and minor bumps
92+
- dependency-name: "sigs.k8s.io/cluster-api*"
93+
update-types: ["version-update:semver-major", "version-update:semver-minor"]
94+
# Ignore controller-runtime major and minor bumps as its upgraded manually.
95+
- dependency-name: "sigs.k8s.io/controller-runtime"
96+
update-types: ["version-update:semver-major", "version-update:semver-minor"]
97+
# Ignore k8s major and minor bumps and its transitives modules
98+
- dependency-name: "k8s.io/*"
99+
update-types: ["version-update:semver-major", "version-update:semver-minor"]
100+
- dependency-name: "sigs.k8s.io/controller-tools"
101+
update-types: ["version-update:semver-major", "version-update:semver-minor"]
102+
# We will need k8s v0.31.3 to bump structured-merge-diff to v4.4.2 (check git history for details).
103+
- dependency-name: "sigs.k8s.io/structured-merge-diff/*"
104+
# These dependencies are skipped because they require a newer version of go:
105+
- dependency-name: "github.com/a8m/envsubst"
106+
labels:
107+
- "area/dependency"
108+
- "ok-to-test"
109+
## release-0.12 branch config ends here
54110
## release-0.11 branch config starts here
55111
# github-actions
56112
- directory: "/"
@@ -99,6 +155,12 @@ updates:
99155
update-types: ["version-update:semver-major", "version-update:semver-minor"]
100156
# We will need k8s v0.31.3 to bump structured-merge-diff to v4.4.2 (check git history for details).
101157
- dependency-name: "sigs.k8s.io/structured-merge-diff/*"
158+
# These dependencies are skipped because they require a newer version of go:
159+
- dependency-name: "golang.org/x/crypto"
160+
- dependency-name: "github.com/a8m/envsubst"
161+
- dependency-name: "golang.org/x/text"
162+
- dependency-name: "github.com/onsi/ginkgo/v2"
163+
- dependency-name: "github.com/onsi/gomega"
102164
labels:
103165
- "area/dependency"
104166
- "ok-to-test"

.github/workflows/pr-dependabot.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ jobs:
2424
id: vars
2525
run: echo "go_version=$(make go-version)" >> $GITHUB_OUTPUT
2626
- name: Set up Go
27-
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # tag=v5.2.0
27+
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # tag=v5.4.0
2828
with:
2929
go-version: ${{ steps.vars.outputs.go_version }}
30-
- uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # tag=v4.2.0
30+
- uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # tag=v4.2.3
3131
name: Restore go cache
3232
with:
3333
path: |

.github/workflows/release.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Calculate go version
2424
run: echo "go_version=$(make go-version)" >> $GITHUB_ENV
2525
- name: Set up Go
26-
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # tag=v5.2.0
26+
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # tag=v5.4.0
2727
with:
2828
go-version: ${{ env.go_version }}
2929
- name: generate release artifacts
@@ -37,7 +37,7 @@ jobs:
3737
env:
3838
GH_TOKEN: ${{ github.token }}
3939
- name: Release
40-
uses: softprops/action-gh-release@7b4da11513bf3f43f9999e90eabced41ab8bb048 # tag=v2.2.0
40+
uses: softprops/action-gh-release@c95fe1489396fe8a9eb87c0abf8aa5b2ef267fda # tag=v2.2.1
4141
with:
4242
draft: true
4343
files: out/*
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Update golangci-lint version
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- '.github/workflows/update-golangci-lint.yaml'
7+
schedule:
8+
- cron: '0 0 * * *' # Runs every day at midnight UTC
9+
workflow_dispatch: # Allows manual triggering
10+
11+
permissions:
12+
pull-requests: write
13+
14+
jobs:
15+
update-golangci-lint:
16+
runs-on: ubuntu-latest
17+
outputs:
18+
latest_version: ${{ steps.get_version.outputs.latest_version }}
19+
current_version: ${{ steps.check_version.outputs.current_version }}
20+
steps:
21+
- name: Checkout repository
22+
uses: actions/checkout@v4
23+
with:
24+
fetch-depth: 0
25+
- name: Get latest golangci-lint version
26+
id: get_version
27+
run: |
28+
export LATEST_VERSION=$(curl -s https://api.github.com/repos/golangci/golangci-lint/releases/latest | jq -r .tag_name)
29+
echo "LATEST_VERSION=${LATEST_VERSION}" >> $GITHUB_ENV
30+
echo "LATEST_VERSION=${LATEST_VERSION}" >> $GITHUB_OUTPUT
31+
- name: Check current version in Makefile
32+
id: check_version
33+
run: |
34+
export CURRENT_VERSION=$(grep 'GOLANGCI_LINT_VERSION ?=' hack/tools/Makefile | cut -d '=' -f2 | tr -d ' ')
35+
echo "CURRENT_VERSION=${CURRENT_VERSION}" >> $GITHUB_ENV
36+
echo "CURRENT_VERSION=${CURRENT_VERSION}" >> $GITHUB_OUTPUT
37+
- name: Update Makefile if needed
38+
if: ${{ steps.check_version.outputs.current_version != steps.get_version.outputs.latest_version }}
39+
run: |
40+
sed -i "s/GOLANGCI_LINT_VERSION ?= .*/GOLANGCI_LINT_VERSION ?= ${{ steps.get_version.outputs.latest_version }}/" hack/tools/Makefile
41+
- name: Create Pull Request
42+
if: ${{ steps.check_version.outputs.current_version != steps.get_version.outputs.latest_version }}
43+
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # tag=v7.0.8
44+
with:
45+
commit-message: "This commit updates golangci-lint to version v${{ steps.get_version.outputs.latest_version }}."
46+
title: ":seedling: chore: bump golangci-lint to v${{ steps.get_version.outputs.latest_version }}"
47+
body: |
48+
This PR was generated by GH workflow `update-golangci-lint` and
49+
updates golangci-lint to version v${{ steps.get_version.outputs.latest_version }}.
50+
branch: update-golangci-lint-${{ steps.get_version.outputs.latest_version }}
51+
labels: "area/dependency"
52+
add-paths: |
53+
- hack/tools/Makefile

.golangci.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,6 @@ linters-settings:
101101
# CAPO
102102
- pkg: sigs.k8s.io/cluster-api-provider-openstack/api/v1alpha1
103103
alias: infrav1alpha1
104-
- pkg: sigs.k8s.io/cluster-api-provider-openstack/api/v1alpha6
105-
alias: infrav1alpha6
106-
- pkg: sigs.k8s.io/cluster-api-provider-openstack/api/v1alpha7
107-
alias: infrav1alpha7
108104
- pkg: sigs.k8s.io/cluster-api-provider-openstack/api/v1beta1
109105
alias: infrav1
110106
- pkg: sigs.k8s.io/cluster-api-provider-openstack/pkg/utils/errors
@@ -182,7 +178,7 @@ issues:
182178
- "zz_generated.*\\.go$"
183179

184180
run:
185-
go: "1.22"
181+
go: "1.23"
186182
timeout: 10m
187183
build-tags:
188184
- e2e

CONTRIBUTING.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,13 @@ Cluster API Provider OpenStack maintains the most recent release/releases for al
4141
- For the current stable API version (v1beta1) we support the two most recent minor releases; older minor releases are immediately unsupported when a new major/minor release is available.
4242
- For older API versions we only support the most recent minor release until the API version reaches EOL.
4343
- We will maintain test coverage for all supported minor releases and for one additional release for the current stable API version in case we have to do an emergency patch release.
44-
For example, if v0.10 and v0.11 are currently supported, we will also maintain test coverage for v0.9 for one additional release cycle. When v0.12 is released, tests for v0.9 will be removed.
44+
For example, if v0.11 and v0.12 are currently supported, we will also maintain test coverage for v0.10 for one additional release cycle. When v0.13 is released, tests for v0.10 will be removed.
4545

4646
| Minor Release | API Version | Supported Until |
4747
|---------------|--------------|------------------------------------------------|
48+
| v0.12.x | **v1beta1** | when v0.14.0 will be released |
4849
| v0.11.x | **v1beta1** | when v0.13.0 will be released |
49-
| v0.10.x | **v1beta1** | when v0.12.0 will be released |
50+
| v0.10.x | **v1beta1** | EOL to be defined (v0.12.0 release date) |
5051
| v0.9.x | **v1alpha7** | EOL since 2024-10-24 - v0.11.0 release date |
5152
| v0.8.x | **v1alpha7** | EOL since 2024-04-17 - v0.10.0 release date |
5253

@@ -56,6 +57,7 @@ Cluster API Provider OpenStack maintains the most recent release/releases for al
5657

5758
| Minor Release | v1beta1 | v1alpha7 | v1alpha6 | v1alpha5 |
5859
|---------------|---------------|------------|------------|------------|
60+
| v0.12.x | **supported** | not served | | |
5961
| v0.11.x | **supported** | deprecated | not served | |
6062
| v0.10.x | **supported** | supported | deprecated | not served |
6163
| v0.9.x | | supported | supported | deprecated |

Dockerfile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,17 @@
1313
# limitations under the License.
1414

1515
# Build the manager binary
16-
FROM golang:1.22.0 as builder
16+
ARG GO_VERSION
17+
FROM golang:${GO_VERSION} AS builder
1718
WORKDIR /workspace
1819

1920
# Run this with docker build --build_arg goproxy=$(go env GOPROXY) to override the goproxy
2021
ARG goproxy=https://proxy.golang.org
2122
ENV GOPROXY=$goproxy
2223

2324
# Copy the Go Modules manifests
24-
RUN mkdir orc
2525
COPY go.mod go.mod
2626
COPY go.sum go.sum
27-
COPY orc/go.mod orc/go.mod
28-
COPY orc/go.sum orc/go.sum
2927

3028
# Cache deps before building and copying source so that we don't need to re-download as much
3129
# and so that source changes don't invalidate our downloaded layer

0 commit comments

Comments
 (0)