Skip to content

Commit

Permalink
Merge pull request #1464 from CecileRobertMichon/capi-0.4-rc
Browse files Browse the repository at this point in the history
Update CAPI to v0.4.0-rc.0
  • Loading branch information
k8s-ci-robot committed Jun 24, 2021
2 parents f3ecc73 + e4553db commit df3cb5b
Show file tree
Hide file tree
Showing 6 changed files with 232 additions and 68 deletions.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -473,7 +473,7 @@ create-management-cluster: $(KUSTOMIZE) $(ENVSUBST)
./hack/install-cert-manager.sh

# Deploy CAPI
curl --retry $(CURL_RETRIES) -sSL https://github.com/kubernetes-sigs/cluster-api/releases/download/v0.4.0-beta.1/cluster-api-components.yaml | $(ENVSUBST) | kubectl apply -f -
curl --retry $(CURL_RETRIES) -sSL https://github.com/kubernetes-sigs/cluster-api/releases/download/v0.4.0-rc.0/cluster-api-components.yaml | $(ENVSUBST) | kubectl apply -f -

# Deploy CAPZ
kind load docker-image $(CONTROLLER_IMG)-$(ARCH):$(TAG) --name=capz
Expand Down
2 changes: 1 addition & 1 deletion Tiltfile
Expand Up @@ -16,7 +16,7 @@ settings = {
"deploy_cert_manager": True,
"preload_images_for_kind": True,
"kind_cluster_name": "capz",
"capi_version": "v0.4.0-beta.1",
"capi_version": "v0.4.0-rc.0",
"cert_manager_version": "v1.1.0",
"kubernetes_version": "v1.19.11",
"aks_kubernetes_version": "v1.20.5"
Expand Down
4 changes: 0 additions & 4 deletions exp/controllers/helpers_test.go
Expand Up @@ -221,8 +221,6 @@ func TestMachinePoolToAzureManagedControlPlaneMapFuncSuccess(t *testing.T) {
fakeClient := fake.NewClientBuilder().WithScheme(scheme).WithRuntimeObjects(initObjects...).Build()

log := mock_log.NewMockLogger(gomock.NewController(t))
log.EXPECT().WithValues("AzureManagedControlPlane", cpName, "Namespace", cluster.Namespace).Return(log)
log.EXPECT().Info("expected a MachinePool, got wrong type", "type", gomock.Any())
mapper := MachinePoolToAzureManagedControlPlaneMapFunc(context.Background(), fakeClient, infrav1exp.GroupVersion.WithKind("AzureManagedControlPlane"), log)

// default pool should trigger
Expand Down Expand Up @@ -264,8 +262,6 @@ func TestMachinePoolToAzureManagedControlPlaneMapFuncFailure(t *testing.T) {
fakeClient := fake.NewClientBuilder().WithScheme(scheme).WithRuntimeObjects(initObjects...).Build()

log := mock_log.NewMockLogger(gomock.NewController(t))
log.EXPECT().WithValues("AzureManagedControlPlane", cpName, "Namespace", cluster.Namespace).Return(log)
log.EXPECT().Info("expected a MachinePool, got wrong type", "type", gomock.Any())
log.EXPECT().Error(gomock.Any(), "failed to fetch default pool reference")
log.EXPECT().Error(gomock.Any(), "failed to fetch default pool reference") // twice because we are testing two calls

Expand Down
20 changes: 10 additions & 10 deletions go.mod
Expand Up @@ -14,7 +14,7 @@ require (
github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d
github.com/blang/semver v3.5.1+incompatible
github.com/go-logr/logr v0.4.0
github.com/golang/mock v1.4.4
github.com/golang/mock v1.5.0
github.com/google/go-cmp v0.5.6
github.com/google/gofuzz v1.2.0
github.com/google/uuid v1.2.0
Expand All @@ -33,17 +33,17 @@ require (
go.opentelemetry.io/otel/trace v0.20.0
golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2
golang.org/x/mod v0.4.2
k8s.io/api v0.21.1
k8s.io/apimachinery v0.21.1
k8s.io/client-go v0.21.1
k8s.io/component-base v0.21.1
k8s.io/api v0.21.2
k8s.io/apimachinery v0.21.2
k8s.io/client-go v0.21.2
k8s.io/component-base v0.21.2
k8s.io/klog/v2 v2.9.0
k8s.io/kubectl v0.21.1
k8s.io/kubectl v0.21.2
k8s.io/utils v0.0.0-20210527160623-6fdb442a123b
sigs.k8s.io/cluster-api v0.4.0-beta.1
sigs.k8s.io/cluster-api/test v0.4.0-beta.1
sigs.k8s.io/controller-runtime v0.9.0
sigs.k8s.io/cluster-api v0.4.0-rc.0
sigs.k8s.io/cluster-api/test v0.4.0-rc.0
sigs.k8s.io/controller-runtime v0.9.1
sigs.k8s.io/kind v0.11.1
)

replace sigs.k8s.io/cluster-api => sigs.k8s.io/cluster-api v0.4.0-beta.1
replace sigs.k8s.io/cluster-api => sigs.k8s.io/cluster-api v0.4.0-rc.0

0 comments on commit df3cb5b

Please sign in to comment.