Skip to content

Commit fb205da

Browse files
author
shiftstack-merge-bot
committed
2 parents 3094490 + a3a39b8 commit fb205da

17 files changed

+7618
-2753
lines changed

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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: 27 additions & 26 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.40.0
21+
golang.org/x/text v0.27.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,26 @@ 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
136137
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
138+
golang.org/x/net v0.41.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.34.0 // indirect
142+
golang.org/x/term v0.33.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.34.0 // indirect
144145
gomodules.xyz/jsonpatch/v2 v2.4.0 // indirect
145146
google.golang.org/genproto/googleapis/api v0.0.0-20240528184218-531527333157 // indirect
146147
google.golang.org/genproto/googleapis/rpc v0.0.0-20240701130421-f6361c86f094 // indirect
147148
google.golang.org/grpc v1.65.1 // indirect
148-
google.golang.org/protobuf v1.36.5 // indirect
149+
google.golang.org/protobuf v1.36.6 // indirect
149150
gopkg.in/evanphx/json-patch.v4 v4.12.0 // indirect
150151
gopkg.in/inf.v0 v0.9.1 // indirect
151152
gopkg.in/yaml.v2 v2.4.0 // indirect
152153
gopkg.in/yaml.v3 v3.0.1 // indirect
153-
k8s.io/apiserver v0.31.9 // indirect
154+
k8s.io/apiserver v0.31.11 // indirect
154155
k8s.io/cluster-bootstrap v0.31.3 // indirect
155156
k8s.io/gengo/v2 v2.0.0-20240228010128-51d4e06bde70 // indirect
156157
sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.30.3 // indirect

0 commit comments

Comments
 (0)