Skip to content

Merge https://github.com/kubernetes-sigs/cluster-api-provider-openstack:release-0.12 into main #372

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 23 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
b38876d
:seedling:(deps): Bump the all-go-mod-patch-and-minor group across 2 …
dependabot[bot] Jun 23, 2025
830e59a
Update generated code
dependabot[bot] Jun 23, 2025
3b5dc14
Update templates
lentzi90 Jun 24, 2025
a56c20b
Merge pull request #2605 from kubernetes-sigs/dependabot/go_modules/r…
k8s-ci-robot Jun 24, 2025
aab0c04
Merge pull request #2602 from Nordix/lentzi90/release-0.12-templates
k8s-ci-robot Jun 24, 2025
e8793c6
Release: Include ClusterClasses and Image templates
lentzi90 Jan 28, 2025
0c82f66
Merge pull request #2607 from k8s-infra-cherrypick-robot/cherry-pick-…
k8s-ci-robot Jun 25, 2025
e46279f
Bump cloud-build image to support go 1.23
lentzi90 Apr 30, 2025
fa5a8b3
Merge pull request #2610 from k8s-infra-cherrypick-robot/cherry-pick-…
k8s-ci-robot Jun 25, 2025
c2c2a03
Bump oauth2
lentzi90 Jul 28, 2025
1b1cfee
Merge pull request #2631 from Nordix/lentzi90/bump-oauth2-release-0.12
k8s-ci-robot Aug 4, 2025
a16303e
:seedling:(deps): Bump the all-go-mod-patch-and-minor group across 2 …
dependabot[bot] Aug 4, 2025
a2c08e5
Update generated code
dependabot[bot] Aug 4, 2025
db89cc9
Merge pull request #2636 from kubernetes-sigs/dependabot/go_modules/r…
k8s-ci-robot Aug 4, 2025
25d5fbb
E2E: Update Calico to v3.30.2
lentzi90 Jun 25, 2025
a3a39b8
Merge pull request #2642 from k8s-infra-cherrypick-robot/cherry-pick-…
k8s-ci-robot Aug 7, 2025
b0225fe
:seedling:(deps): Bump the all-github-actions group with 2 updates
dependabot[bot] Aug 12, 2025
409ee57
:seedling:(deps): Bump the all-go-mod-patch-and-minor group across 2 …
dependabot[bot] Aug 12, 2025
5f4b2f5
Update generated code
dependabot[bot] Aug 12, 2025
282283e
Merge pull request #2651 from kubernetes-sigs/dependabot/go_modules/r…
k8s-ci-robot Aug 12, 2025
8840b31
Merge pull request #2646 from kubernetes-sigs/dependabot/github_actio…
k8s-ci-robot Aug 13, 2025
d8c097c
Merge https://github.com/kubernetes-sigs/cluster-api-provider-opensta…
Aug 14, 2025
43f0834
Updating and vendoring go modules after an upstream merge
Aug 14, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/pr-dependabot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # tag=v4.2.2
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # tag=v5.0.0
- name: Calculate go version
id: vars
run: echo "go_version=$(make go-version)" >> $GITHUB_OUTPUT
- name: Set up Go
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # tag=v5.5.0
with:
go-version: ${{ steps.vars.outputs.go_version }}
- uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # tag=v4.2.3
- uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # tag=v4.2.4
name: Restore go cache
with:
path: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Set env
run: echo "RELEASE_TAG=${GITHUB_REF:10}" >> $GITHUB_ENV
- name: checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # tag=v4.2.2
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # tag=v5.0.0
with:
fetch-depth: 0
- name: Calculate go version
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/security-scan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # tag=v4.2.2
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # tag=v5.0.0
with:
ref: ${{ matrix.branch }}
- name: Calculate go version
Expand Down
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,8 @@ templates/cluster-template-%.yaml: kustomize/v1beta1/% $(KUSTOMIZE) FORCE
.PHONY: release-templates
release-templates: $(RELEASE_DIR) templates ## Generate release templates
cp templates/cluster-template*.yaml $(RELEASE_DIR)/
cp templates/clusterclass*.yaml $(RELEASE_DIR)/
cp templates/image-template*.yaml $(RELEASE_DIR)/

IMAGE_PATCH_DIR := $(ARTIFACTS)/image-patch

Expand Down
22 changes: 13 additions & 9 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,19 @@ options:
substitution_option: ALLOW_LOOSE
machineType: 'N1_HIGHCPU_8'
steps:
- name: 'gcr.io/k8s-staging-test-infra/gcb-docker-gcloud:v20241229-5dc092c636'
entrypoint: make
env:
- DOCKER_CLI_EXPERIMENTAL=enabled
- TAG=$_GIT_TAG
- PULL_BASE_REF=$_PULL_BASE_REF
- DOCKER_BUILDKIT=1
args:
- release-staging
# To check if the image can handle the build, you can try it like this:
# docker run --rm -it -v $(pwd):/workspace gcr.io/k8s-staging-test-infra/gcb-docker-gcloud:${TAG}
# make clean # make sure we have something to build
# make staging-manifests
- name: 'gcr.io/k8s-staging-test-infra/gcb-docker-gcloud:v20250116-2a05ea7e3d'
entrypoint: make
env:
- DOCKER_CLI_EXPERIMENTAL=enabled
- TAG=$_GIT_TAG
- PULL_BASE_REF=$_PULL_BASE_REF
- DOCKER_BUILDKIT=1
args:
- release-staging
substitutions:
# _GIT_TAG will be filled with a git-based tag for the image, of the form vYYYYMMDD-hash, and
# can be used as a substitution
Expand Down
12 changes: 7 additions & 5 deletions docs/book/src/development/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ This document explains how to develop Cluster API Provider OpenStack (CAPO).
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:

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

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

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

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

```bash
clusterctl generate yaml --from templates/images-template.yaml | kubectl apply -f -
clusterctl generate yaml --from templates/image-template-node.yaml | kubectl apply -f -
```

## Testing Cluster Creation using the 'dev-test' ClusterClass with Tilt
Expand Down
56 changes: 29 additions & 27 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -13,27 +13,27 @@ require (
github.com/hashicorp/go-version v1.7.0
github.com/k-orc/openstack-resource-controller v1.0.2
github.com/onsi/ginkgo/v2 v2.23.4
github.com/onsi/gomega v1.37.0
github.com/prometheus/client_golang v1.22.0
github.com/spf13/pflag v1.0.6
github.com/onsi/gomega v1.38.0
github.com/prometheus/client_golang v1.23.0
github.com/spf13/pflag v1.0.7
go.uber.org/mock v0.5.2
golang.org/x/crypto v0.39.0
golang.org/x/text v0.26.0
golang.org/x/crypto v0.41.0
golang.org/x/text v0.28.0
gopkg.in/ini.v1 v1.67.0
k8s.io/api v0.31.9
k8s.io/apiextensions-apiserver v0.31.9
k8s.io/apimachinery v0.31.9
k8s.io/client-go v0.31.9
k8s.io/code-generator v0.31.9
k8s.io/component-base v0.31.9
k8s.io/api v0.31.11
k8s.io/apiextensions-apiserver v0.31.11
k8s.io/apimachinery v0.31.11
k8s.io/client-go v0.31.11
k8s.io/code-generator v0.31.11
k8s.io/component-base v0.31.11
k8s.io/klog/v2 v2.130.1
k8s.io/kube-openapi v0.0.0-20240228011516-70dd3763d340
k8s.io/utils v0.0.0-20240711033017-18e509b52bc8
sigs.k8s.io/cluster-api v1.9.8
sigs.k8s.io/cluster-api/test v1.9.8
sigs.k8s.io/cluster-api v1.9.10
sigs.k8s.io/cluster-api/test v1.9.10
sigs.k8s.io/controller-runtime v0.19.7
sigs.k8s.io/structured-merge-diff/v4 v4.7.0
sigs.k8s.io/yaml v1.4.0
sigs.k8s.io/yaml v1.6.0
)

require (
Expand All @@ -54,7 +54,7 @@ require (
github.com/blang/semver/v4 v4.0.0 // indirect
github.com/cenkalti/backoff/v4 v4.3.0 // indirect
github.com/cespare/xxhash/v2 v2.3.0 // indirect
github.com/cloudflare/circl v1.3.7 // indirect
github.com/cloudflare/circl v1.6.1 // indirect
github.com/distribution/reference v0.6.0 // indirect
github.com/docker/docker v27.3.1+incompatible // indirect
github.com/docker/go-connections v0.5.0 // indirect
Expand Down Expand Up @@ -106,9 +106,9 @@ require (
github.com/pelletier/go-toml v1.9.5 // indirect
github.com/pelletier/go-toml/v2 v2.2.2 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/prometheus/client_model v0.6.1 // indirect
github.com/prometheus/common v0.62.0 // indirect
github.com/prometheus/procfs v0.15.1 // indirect
github.com/prometheus/client_model v0.6.2 // indirect
github.com/prometheus/common v0.65.0 // indirect
github.com/prometheus/procfs v0.16.1 // indirect
github.com/sagikazarmark/locafero v0.4.0 // indirect
github.com/sagikazarmark/slog-shim v0.1.0 // indirect
github.com/shopspring/decimal v1.4.0 // indirect
Expand All @@ -132,25 +132,27 @@ require (
go.uber.org/automaxprocs v1.6.0 // indirect
go.uber.org/multierr v1.11.0 // indirect
go.uber.org/zap v1.27.0 // indirect
go.yaml.in/yaml/v2 v2.4.2 // indirect
golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56 // indirect
golang.org/x/mod v0.25.0 // indirect
golang.org/x/net v0.40.0 // indirect
golang.org/x/oauth2 v0.24.0 // indirect
golang.org/x/sync v0.15.0 // indirect
golang.org/x/sys v0.33.0 // indirect
golang.org/x/term v0.32.0 // indirect
golang.org/x/mod v0.26.0 // indirect
golang.org/x/net v0.42.0 // indirect
golang.org/x/oauth2 v0.30.0 // indirect
golang.org/x/sync v0.16.0 // indirect
golang.org/x/sys v0.35.0 // indirect
golang.org/x/term v0.34.0 // indirect
golang.org/x/time v0.5.0 // indirect
golang.org/x/tools v0.33.0 // indirect
golang.org/x/tools v0.35.0 // indirect
golang.org/x/tools/go/packages/packagestest v0.1.1-deprecated // indirect
gomodules.xyz/jsonpatch/v2 v2.4.0 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20240528184218-531527333157 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240701130421-f6361c86f094 // indirect
google.golang.org/grpc v1.65.1 // indirect
google.golang.org/protobuf v1.36.5 // indirect
google.golang.org/protobuf v1.36.6 // indirect
gopkg.in/evanphx/json-patch.v4 v4.12.0 // indirect
gopkg.in/inf.v0 v0.9.1 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
k8s.io/apiserver v0.31.9 // indirect
k8s.io/apiserver v0.31.11 // indirect
k8s.io/cluster-bootstrap v0.31.3 // indirect
k8s.io/gengo/v2 v2.0.0-20240228010128-51d4e06bde70 // indirect
sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.30.3 // indirect
Expand Down
Loading