Skip to content

Commit 0ad8035

Browse files
author
shiftstack-merge-bot
committed
2 parents 5319094 + 8840b31 commit 0ad8035

21 files changed

+7641
-2766
lines changed

.github/workflows/pr-dependabot.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ jobs:
1919
runs-on: ubuntu-latest
2020
steps:
2121
- name: Check out code into the Go module directory
22-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # tag=v4.2.2
22+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # tag=v5.0.0
2323
- name: Calculate go version
2424
id: vars
2525
run: echo "go_version=$(make go-version)" >> $GITHUB_OUTPUT
2626
- name: Set up Go
2727
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # tag=v5.5.0
2828
with:
2929
go-version: ${{ steps.vars.outputs.go_version }}
30-
- uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # tag=v4.2.3
30+
- uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # tag=v4.2.4
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
@@ -17,7 +17,7 @@ jobs:
1717
- name: Set env
1818
run: echo "RELEASE_TAG=${GITHUB_REF:10}" >> $GITHUB_ENV
1919
- name: checkout code
20-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # tag=v4.2.2
20+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # tag=v5.0.0
2121
with:
2222
fetch-depth: 0
2323
- name: Calculate go version
@@ -37,7 +37,7 @@ jobs:
3737
env:
3838
GH_TOKEN: ${{ github.token }}
3939
- name: Release
40-
uses: softprops/action-gh-release@da05d552573ad5aba039eaac05058a918a7bf631 # tag=v2.2.2
40+
uses: softprops/action-gh-release@72f2c25fcb47643c292f7107632f7a47c1df5cd8 # tag=v2.3.2
4141
with:
4242
draft: true
4343
files: out/*

.github/workflows/security-scan.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
runs-on: ubuntu-latest
1919
steps:
2020
- name: Check out code
21-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # tag=v4.2.2
21+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # tag=v5.0.0
2222
with:
2323
ref: ${{ matrix.branch }}
2424
- name: Calculate go version

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ unexport GOPATH
2727
TRACE ?= 0
2828

2929
# Go
30-
GO_VERSION ?= 1.23.8
30+
GO_VERSION ?= 1.23.10
3131

3232
# Directories.
3333
ARTIFACTS ?= $(REPO_ROOT)/_artifacts
@@ -517,6 +517,8 @@ templates/cluster-template-%.yaml: kustomize/v1beta1/% $(KUSTOMIZE) FORCE
517517
.PHONY: release-templates
518518
release-templates: $(RELEASE_DIR) templates ## Generate release templates
519519
cp templates/cluster-template*.yaml $(RELEASE_DIR)/
520+
cp templates/clusterclass*.yaml $(RELEASE_DIR)/
521+
cp templates/image-template*.yaml $(RELEASE_DIR)/
520522

521523
IMAGE_PATCH_DIR := $(ARTIFACTS)/image-patch
522524

cloudbuild.yaml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,19 @@ options:
44
substitution_option: ALLOW_LOOSE
55
machineType: 'N1_HIGHCPU_8'
66
steps:
7-
- name: 'gcr.io/k8s-staging-test-infra/gcb-docker-gcloud:v20241229-5dc092c636'
8-
entrypoint: make
9-
env:
10-
- DOCKER_CLI_EXPERIMENTAL=enabled
11-
- TAG=$_GIT_TAG
12-
- PULL_BASE_REF=$_PULL_BASE_REF
13-
- DOCKER_BUILDKIT=1
14-
args:
15-
- release-staging
7+
# To check if the image can handle the build, you can try it like this:
8+
# docker run --rm -it -v $(pwd):/workspace gcr.io/k8s-staging-test-infra/gcb-docker-gcloud:${TAG}
9+
# make clean # make sure we have something to build
10+
# make staging-manifests
11+
- name: 'gcr.io/k8s-staging-test-infra/gcb-docker-gcloud:v20250116-2a05ea7e3d'
12+
entrypoint: make
13+
env:
14+
- DOCKER_CLI_EXPERIMENTAL=enabled
15+
- TAG=$_GIT_TAG
16+
- PULL_BASE_REF=$_PULL_BASE_REF
17+
- DOCKER_BUILDKIT=1
18+
args:
19+
- release-staging
1620
substitutions:
1721
# _GIT_TAG will be filled with a git-based tag for the image, of the form vYYYYMMDD-hash, and
1822
# can be used as a substitution

docs/book/src/development/development.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ This document explains how to develop Cluster API Provider OpenStack (CAPO).
3838
Note that CAPO depends on ORC. No matter how you choose to work, you will need to deploy ORC in order to make CAPO functional:
3939

4040
```bash
41-
kubectl apply -f https://github.com/k-orc/openstack-resource-controller/releases/download/v1.0.0/install.yaml
41+
kubectl apply -f https://github.com/k-orc/openstack-resource-controller/releases/latest/download/install.yaml
4242
```
4343

4444
TL;DR: Here is a short version for how to develop with Tilt:
@@ -58,11 +58,12 @@ export RESOURCE_TYPE=...
5858
make tilt-up
5959
# Back in CAPO repo
6060
# Install ORC
61-
kubectl apply -f https://github.com/k-orc/openstack-resource-controller/releases/download/v1.0.0/install.yaml
61+
kubectl apply -f https://github.com/k-orc/openstack-resource-controller/releases/latest/download/install.yaml
6262
# Create secret with clouds.yaml (the file is created by create_devstack.sh)
6363
kubectl create secret generic dev-test-cloud-config --from-file=clouds.yaml
6464
# Add images to use in the tests
65-
clusterctl generate yaml --from templates/images-template.yaml | kubectl apply -f -
65+
clusterctl generate yaml --from templates/image-template-node.yaml | kubectl apply -f -
66+
clusterctl generate yaml --from templates/image-template-bastion.yaml | kubectl apply -f -
6667
```
6768

6869
At this point, you should be able to apply the `dev-test` ClusterClass and start creating/deleting `development` clusters through the Tilt UI.
@@ -95,10 +96,11 @@ After generating `infrastructure-components.yaml`, replace the `us.gcr.io/k8s-ar
9596
## Automatically Adding Images to OpenStack
9697

9798
Before you can create a Cluster, you will need a suitable image in OpenStack.
98-
There is a convenient template available in `templates/images-template.yaml` for this purpose.
99+
There are convenient templates available in `templates/image-template-*.yaml` for this purpose.
100+
For example:
99101

100102
```bash
101-
clusterctl generate yaml --from templates/images-template.yaml | kubectl apply -f -
103+
clusterctl generate yaml --from templates/image-template-node.yaml | kubectl apply -f -
102104
```
103105

104106
## Testing Cluster Creation using the 'dev-test' ClusterClass with Tilt

go.mod

Lines changed: 29 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -13,27 +13,27 @@ require (
1313
github.com/hashicorp/go-version v1.7.0
1414
github.com/k-orc/openstack-resource-controller v1.0.2
1515
github.com/onsi/ginkgo/v2 v2.23.4
16-
github.com/onsi/gomega v1.37.0
17-
github.com/prometheus/client_golang v1.22.0
18-
github.com/spf13/pflag v1.0.6
16+
github.com/onsi/gomega v1.38.0
17+
github.com/prometheus/client_golang v1.23.0
18+
github.com/spf13/pflag v1.0.7
1919
go.uber.org/mock v0.5.2
20-
golang.org/x/crypto v0.39.0
21-
golang.org/x/text v0.26.0
20+
golang.org/x/crypto v0.41.0
21+
golang.org/x/text v0.28.0
2222
gopkg.in/ini.v1 v1.67.0
23-
k8s.io/api v0.31.9
24-
k8s.io/apiextensions-apiserver v0.31.9
25-
k8s.io/apimachinery v0.31.9
26-
k8s.io/client-go v0.31.9
27-
k8s.io/code-generator v0.31.9
28-
k8s.io/component-base v0.31.9
23+
k8s.io/api v0.31.11
24+
k8s.io/apiextensions-apiserver v0.31.11
25+
k8s.io/apimachinery v0.31.11
26+
k8s.io/client-go v0.31.11
27+
k8s.io/code-generator v0.31.11
28+
k8s.io/component-base v0.31.11
2929
k8s.io/klog/v2 v2.130.1
3030
k8s.io/kube-openapi v0.0.0-20240228011516-70dd3763d340
3131
k8s.io/utils v0.0.0-20240711033017-18e509b52bc8
32-
sigs.k8s.io/cluster-api v1.9.8
33-
sigs.k8s.io/cluster-api/test v1.9.8
32+
sigs.k8s.io/cluster-api v1.9.10
33+
sigs.k8s.io/cluster-api/test v1.9.10
3434
sigs.k8s.io/controller-runtime v0.19.7
3535
sigs.k8s.io/structured-merge-diff/v4 v4.7.0
36-
sigs.k8s.io/yaml v1.4.0
36+
sigs.k8s.io/yaml v1.6.0
3737
)
3838

3939
require (
@@ -54,7 +54,7 @@ require (
5454
github.com/blang/semver/v4 v4.0.0 // indirect
5555
github.com/cenkalti/backoff/v4 v4.3.0 // indirect
5656
github.com/cespare/xxhash/v2 v2.3.0 // indirect
57-
github.com/cloudflare/circl v1.3.7 // indirect
57+
github.com/cloudflare/circl v1.6.1 // indirect
5858
github.com/distribution/reference v0.6.0 // indirect
5959
github.com/docker/docker v27.3.1+incompatible // indirect
6060
github.com/docker/go-connections v0.5.0 // indirect
@@ -106,9 +106,9 @@ require (
106106
github.com/pelletier/go-toml v1.9.5 // indirect
107107
github.com/pelletier/go-toml/v2 v2.2.2 // indirect
108108
github.com/pkg/errors v0.9.1 // indirect
109-
github.com/prometheus/client_model v0.6.1 // indirect
110-
github.com/prometheus/common v0.62.0 // indirect
111-
github.com/prometheus/procfs v0.15.1 // indirect
109+
github.com/prometheus/client_model v0.6.2 // indirect
110+
github.com/prometheus/common v0.65.0 // indirect
111+
github.com/prometheus/procfs v0.16.1 // indirect
112112
github.com/sagikazarmark/locafero v0.4.0 // indirect
113113
github.com/sagikazarmark/slog-shim v0.1.0 // indirect
114114
github.com/shopspring/decimal v1.4.0 // indirect
@@ -132,25 +132,27 @@ require (
132132
go.uber.org/automaxprocs v1.6.0 // indirect
133133
go.uber.org/multierr v1.11.0 // indirect
134134
go.uber.org/zap v1.27.0 // indirect
135+
go.yaml.in/yaml/v2 v2.4.2 // indirect
135136
golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56 // indirect
136-
golang.org/x/mod v0.25.0 // indirect
137-
golang.org/x/net v0.40.0 // indirect
138-
golang.org/x/oauth2 v0.24.0 // indirect
139-
golang.org/x/sync v0.15.0 // indirect
140-
golang.org/x/sys v0.33.0 // indirect
141-
golang.org/x/term v0.32.0 // indirect
137+
golang.org/x/mod v0.26.0 // indirect
138+
golang.org/x/net v0.42.0 // indirect
139+
golang.org/x/oauth2 v0.30.0 // indirect
140+
golang.org/x/sync v0.16.0 // indirect
141+
golang.org/x/sys v0.35.0 // indirect
142+
golang.org/x/term v0.34.0 // indirect
142143
golang.org/x/time v0.5.0 // indirect
143-
golang.org/x/tools v0.33.0 // indirect
144+
golang.org/x/tools v0.35.0 // indirect
145+
golang.org/x/tools/go/packages/packagestest v0.1.1-deprecated // indirect
144146
gomodules.xyz/jsonpatch/v2 v2.4.0 // indirect
145147
google.golang.org/genproto/googleapis/api v0.0.0-20240528184218-531527333157 // indirect
146148
google.golang.org/genproto/googleapis/rpc v0.0.0-20240701130421-f6361c86f094 // indirect
147149
google.golang.org/grpc v1.65.1 // indirect
148-
google.golang.org/protobuf v1.36.5 // indirect
150+
google.golang.org/protobuf v1.36.6 // indirect
149151
gopkg.in/evanphx/json-patch.v4 v4.12.0 // indirect
150152
gopkg.in/inf.v0 v0.9.1 // indirect
151153
gopkg.in/yaml.v2 v2.4.0 // indirect
152154
gopkg.in/yaml.v3 v3.0.1 // indirect
153-
k8s.io/apiserver v0.31.9 // indirect
155+
k8s.io/apiserver v0.31.11 // indirect
154156
k8s.io/cluster-bootstrap v0.31.3 // indirect
155157
k8s.io/gengo/v2 v2.0.0-20240228010128-51d4e06bde70 // indirect
156158
sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.30.3 // indirect

0 commit comments

Comments
 (0)