From 902d768d1c822d882d11b83443979b427a80058d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fatih=20T=C3=BCrken?= Date: Mon, 11 Aug 2025 14:00:23 +0300 Subject: [PATCH 1/2] Update go version to 1.24.6 [Security] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fatih Türken --- go.mod | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 1535463..916672c 100644 --- a/go.mod +++ b/go.mod @@ -1,8 +1,6 @@ module github.com/upbound/provider-gcp-beta -go 1.24.0 - -toolchain go1.24.5 +go 1.24.6 require ( dario.cat/mergo v1.0.2 From 109cd72188cac698cfecb4d47851c815372e16ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fatih=20T=C3=BCrken?= Date: Mon, 11 Aug 2025 15:34:43 +0300 Subject: [PATCH 2/2] Fix uptest issue MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fatih Türken --- Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Makefile b/Makefile index 0d0ebac..91879ab 100644 --- a/Makefile +++ b/Makefile @@ -211,6 +211,15 @@ build-provider.%: XPKG_SKIP_DEP_RESOLUTION := true local-deploy.%: controlplane.up + # uptest workaround for the behavior change at Crossplane 1.15 default registry + # XP RBAC manager has a check for packages from the same provider family + # that they come from the same org and assign RBACs for all providers. + # This got broken for locally deployed dev packages through crossplane/build submodule, + # therefore cannot get necessary RBACs. + # TODO: Remove this when https://github.com/crossplane/build/issues/38 is resolved + # this workaround is only valid for uptest on Crossplane 1.x + # Crossplane v2 needs the above issue to be resolved + @$(KUBECTL) -n $(CROSSPLANE_NAMESPACE) patch deployment crossplane-rbac-manager -p '{"spec":{"template":{"spec":{"containers":[{"name":"crossplane","env":[{"name":"REGISTRY","value":"index.docker.io"}]}]}}}}' @for api in $$(tr ',' ' ' <<< $*); do \ $(MAKE) local.xpkg.deploy.provider.$(PROJECT_NAME)-$${api}; \ $(INFO) running locally built $(PROJECT_NAME)-$${api}; \