Skip to content

Commit 36a4a00

Browse files
authored
Merge pull request #1411 from k8s-infra-cherrypick-robot/cherry-pick-1406-to-release-0.7
[release-0.7] ✨ Bump CAPI to v1.3.0
2 parents 33f0888 + 84d1852 commit 36a4a00

35 files changed

+411
-792
lines changed

Containerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
# media type: "application/vnd.oci.image.layer.v1.tar+gzip"
2525

2626
# Build the manager binary
27-
FROM golang:1.18.3 as builder
27+
FROM golang:1.19.3 as builder
2828
WORKDIR /workspace
2929

3030
# Run this with docker build --build_arg goproxy=$(go env GOPROXY) to override the goproxy

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# limitations under the License.
1616

1717
# Build the manager binary
18-
FROM golang:1.18.3 as builder
18+
FROM golang:1.19.3 as builder
1919
WORKDIR /workspace
2020

2121
# Run this with docker build --build_arg goproxy=$(go env GOPROXY) to override the goproxy

Makefile

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ MOCKGEN := $(TOOLS_BIN_DIR)/mockgen
5454
RELEASE_NOTES := $(TOOLS_BIN_DIR)/release-notes
5555

5656
# Setup-envtest
57-
SETUP_ENVTEST_VER := v0.0.0-20211110210527-619e6b92dab9
57+
SETUP_ENVTEST_VER := v0.0.0-20221201045826-d9912251cd81
5858
SETUP_ENVTEST_BIN := setup-envtest
5959
SETUP_ENVTEST := $(abspath $(TOOLS_BIN_DIR)/$(SETUP_ENVTEST_BIN)-$(SETUP_ENVTEST_VER))
6060
SETUP_ENVTEST_PKG := sigs.k8s.io/controller-runtime/tools/setup-envtest
@@ -81,7 +81,7 @@ endif
8181
STAGING_REGISTRY := gcr.io/k8s-staging-capi-openstack
8282
STAGING_BUCKET ?= artifacts.k8s-staging-capi-openstack.appspot.com
8383
BUCKET ?= $(STAGING_BUCKET)
84-
PROD_REGISTRY ?= k8s.gcr.io/capi-openstack
84+
PROD_REGISTRY ?= registry.k8s.io/capi-openstack
8585
REGISTRY ?= $(STAGING_REGISTRY)
8686
RELEASE_TAG ?= $(shell git describe --abbrev=0 2>/dev/null)
8787
PULL_BASE_REF ?= $(RELEASE_TAG) # PULL_BASE_REF will be provided by Prow
@@ -172,20 +172,20 @@ e2e-prerequisites: $(GINKGO) e2e-templates e2e-image test-e2e-image-prerequisite
172172
E2E_GINKGO_ARGS ?=
173173
.PHONY: test-e2e ## Run e2e tests using clusterctl
174174
test-e2e: e2e-prerequisites ## Run e2e tests
175-
time $(GINKGO) --failFast -trace -progress -v -tags=e2e --nodes=$(E2E_GINKGO_PARALLEL) \
176-
--focus="$(E2E_GINKGO_FOCUS)" $(_SKIP_ARGS) $(E2E_GINKGO_ARGS) ./test/e2e/suites/e2e/... -- \
177-
-config-path="$(E2E_CONF_PATH)" -artifacts-folder="$(ARTIFACTS)" \
178-
--data-folder="$(E2E_DATA_DIR)" $(E2E_ARGS)
175+
time $(GINKGO) -fail-fast -trace -timeout=3h -show-node-events -v -tags=e2e -nodes=$(E2E_GINKGO_PARALLEL) \
176+
-focus="$(E2E_GINKGO_FOCUS)" $(_SKIP_ARGS) $(E2E_GINKGO_ARGS) ./test/e2e/suites/e2e/... -- \
177+
-config-path="$(E2E_CONF_PATH)" -artifacts-folder="$(ARTIFACTS)" \
178+
-data-folder="$(E2E_DATA_DIR)" $(E2E_ARGS)
179179

180180
.PHONY: e2e-image
181181
e2e-image: CONTROLLER_IMG_TAG = "gcr.io/k8s-staging-capi-openstack/capi-openstack-controller:e2e"
182182
e2e-image: docker-build
183183

184184
# Pull all the images references in test/e2e/data/e2e_conf.yaml
185185
test-e2e-image-prerequisites:
186-
docker pull gcr.io/k8s-staging-cluster-api/cluster-api-controller:v1.2.4
187-
docker pull gcr.io/k8s-staging-cluster-api/kubeadm-bootstrap-controller:v1.2.4
188-
docker pull gcr.io/k8s-staging-cluster-api/kubeadm-control-plane-controller:v1.2.4
186+
docker pull gcr.io/k8s-staging-cluster-api/cluster-api-controller:v1.3.0
187+
docker pull gcr.io/k8s-staging-cluster-api/kubeadm-bootstrap-controller:v1.3.0
188+
docker pull gcr.io/k8s-staging-cluster-api/kubeadm-control-plane-controller:v1.3.0
189189
docker pull quay.io/jetstack/cert-manager-cainjector:v1.8.2
190190
docker pull quay.io/jetstack/cert-manager-webhook:v1.8.2
191191
docker pull quay.io/jetstack/cert-manager-controller:v1.8.2
@@ -195,7 +195,7 @@ CONFORMANCE_E2E_ARGS += $(E2E_ARGS)
195195
CONFORMANCE_GINKGO_ARGS ?= -stream
196196
.PHONY: test-conformance
197197
test-conformance: e2e-prerequisites ## Run clusterctl based conformance test on workload cluster (requires Docker).
198-
time $(GINKGO) -trace -progress -v -tags=e2e -focus="conformance" $(CONFORMANCE_GINKGO_ARGS) ./test/e2e/suites/conformance/... -- -config-path="$(E2E_CONF_PATH)" -artifacts-folder="$(ARTIFACTS)" --data-folder="$(E2E_DATA_DIR)" $(CONFORMANCE_E2E_ARGS)
198+
time $(GINKGO) -trace -show-node-events -v -tags=e2e -focus="conformance" $(CONFORMANCE_GINKGO_ARGS) ./test/e2e/suites/conformance/... -- -config-path="$(E2E_CONF_PATH)" -artifacts-folder="$(ARTIFACTS)" --data-folder="$(E2E_DATA_DIR)" $(CONFORMANCE_E2E_ARGS)
199199

200200
test-conformance-fast: ## Run clusterctl based conformance test on workload cluster (requires Docker) using a subset of the conformance suite in parallel.
201201
$(MAKE) test-conformance CONFORMANCE_E2E_ARGS="-kubetest.config-file=$(KUBETEST_FAST_CONF_PATH) -kubetest.ginkgo-nodes=5 $(E2E_ARGS)"
@@ -412,8 +412,8 @@ release-notes: $(RELEASE_NOTES) ## Generate release notes
412412
.PHONY: templates
413413
templates: ## Generate cluster templates
414414
templates: templates/cluster-template.yaml \
415-
templates/cluster-template-without-lb.yaml \
416-
templates/cluster-template-external-cloud-provider.yaml
415+
templates/cluster-template-without-lb.yaml \
416+
templates/cluster-template-external-cloud-provider.yaml
417417

418418
templates/cluster-template.yaml: kustomize/v1alpha6/default $(KUSTOMIZE) FORCE
419419
$(KUSTOMIZE) build "$<" > "$@"

RELEASE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ It is recommended to create at least one release candidate when bumping `X` or `
5151

5252
This will cause the image to be automatically built by CI and pushed to the staging repository. As this only builds
5353
the image, it only takes a few minutes.
54-
1. Follow the [image promotion process](https://github.com/kubernetes/k8s.io/tree/main/k8s.gcr.io#image-promoter) to promote the image from the staging repo to `k8s.gcr.io/capi-openstack`.
54+
1. Follow the [image promotion process](https://github.com/kubernetes/k8s.io/tree/main/k8s.gcr.io#image-promoter) to promote the image from the staging repo to `registry.k8s.io/capi-openstack`.
5555
The staging repository can be inspected at https://console.cloud.google.com/gcr/images/k8s-staging-capi-openstack/GLOBAL. Be
5656
sure to choose the top level `capi-openstack-controller`, which will provide the multi-arch manifest, rather than one for a specific architecture.
5757
The image build logs are available at [Cloud Build](https://console.cloud.google.com/cloud-build/builds?project=k8s-staging-capi-openstack).

config/crd/bases/infrastructure.cluster.x-k8s.io_openstackclusters.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
33
kind: CustomResourceDefinition
44
metadata:
55
annotations:
6-
controller-gen.kubebuilder.io/version: v0.9.2
6+
controller-gen.kubebuilder.io/version: v0.10.0
77
creationTimestamp: null
88
name: openstackclusters.infrastructure.cluster.x-k8s.io
99
spec:

config/crd/bases/infrastructure.cluster.x-k8s.io_openstackclustertemplates.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
33
kind: CustomResourceDefinition
44
metadata:
55
annotations:
6-
controller-gen.kubebuilder.io/version: v0.9.2
6+
controller-gen.kubebuilder.io/version: v0.10.0
77
creationTimestamp: null
88
name: openstackclustertemplates.infrastructure.cluster.x-k8s.io
99
spec:

config/crd/bases/infrastructure.cluster.x-k8s.io_openstackmachines.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
33
kind: CustomResourceDefinition
44
metadata:
55
annotations:
6-
controller-gen.kubebuilder.io/version: v0.9.2
6+
controller-gen.kubebuilder.io/version: v0.10.0
77
creationTimestamp: null
88
name: openstackmachines.infrastructure.cluster.x-k8s.io
99
spec:

config/crd/bases/infrastructure.cluster.x-k8s.io_openstackmachinetemplates.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
33
kind: CustomResourceDefinition
44
metadata:
55
annotations:
6-
controller-gen.kubebuilder.io/version: v0.9.2
6+
controller-gen.kubebuilder.io/version: v0.10.0
77
creationTimestamp: null
88
name: openstackmachinetemplates.infrastructure.cluster.x-k8s.io
99
spec:

controllers/openstackcluster_controller_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222

2323
"github.com/gophercloud/gophercloud"
2424
"github.com/gophercloud/utils/openstack/clientconfig"
25-
. "github.com/onsi/ginkgo"
25+
. "github.com/onsi/ginkgo/v2"
2626
. "github.com/onsi/gomega"
2727
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
2828
"k8s.io/apimachinery/pkg/types"

controllers/suite_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121
"path/filepath"
2222
"testing"
2323

24-
. "github.com/onsi/ginkgo"
24+
. "github.com/onsi/ginkgo/v2"
2525
. "github.com/onsi/gomega"
2626
corev1 "k8s.io/api/core/v1"
2727
apiextensionsv1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"

0 commit comments

Comments
 (0)