Skip to content

Commit d891ca0

Browse files
Merge pull request #809 from erhancagirici/xp-v2-upjet-v2
crossplane v2: Generate namespace-scoped MRs
2 parents 6e67efb + eb9782a commit d891ca0

9,114 files changed

Lines changed: 2314591 additions & 1294960 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313
workflow_dispatch: {}
1414

1515
env:
16-
GO_VERSION: "1.23"
16+
GO_VERSION: "1.24"
1717

1818
jobs:
1919
detect-noop:
@@ -57,7 +57,7 @@ jobs:
5757
make schema-version-diff
5858
5959
lint:
60-
runs-on: ubuntu-latest
60+
runs-on: ubuntu-latest-16-cores
6161
needs: detect-noop
6262
if: needs.detect-noop.outputs.noop != 'true'
6363
steps:
@@ -105,7 +105,7 @@ jobs:
105105
run: make lint
106106

107107
check-diff:
108-
runs-on: ubuntu-latest
108+
runs-on: ubuntu-latest-16-cores
109109
needs: detect-noop
110110
if: needs.detect-noop.outputs.noop != 'true'
111111
steps:
@@ -155,7 +155,7 @@ jobs:
155155
path: _output/skipped_resources.csv
156156

157157
unit-tests:
158-
runs-on: ubuntu-latest
158+
runs-on: ubuntu-latest-16-cores
159159
needs: detect-noop
160160
if: needs.detect-noop.outputs.noop != 'true'
161161
steps:
@@ -185,7 +185,7 @@ jobs:
185185
run: make -j2 test
186186

187187
local-deploy:
188-
runs-on: ubuntu-latest
188+
runs-on: ubuntu-latest-16-cores
189189
needs: detect-noop
190190
if: needs.detect-noop.outputs.noop != 'true'
191191
steps:
@@ -215,7 +215,7 @@ jobs:
215215
run: make local-deploy
216216

217217
check-examples:
218-
runs-on: ubuntu-latest
218+
runs-on: ubuntu-latest-16-cores
219219
needs: detect-noop
220220
if: ${{ needs.detect-noop.outputs.noop != 'true' }}
221221

.github/workflows/uptest-trigger.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
types: [created]
1010

1111
env:
12-
GO_VERSION: "1.23"
12+
GO_VERSION: "1.24"
1313

1414
jobs:
1515
check-permissions:
@@ -96,7 +96,7 @@ jobs:
9696
- check-permissions
9797
- get-example-list
9898
if: ${{ (needs.check-permissions.outputs.permission == 'admin' || needs.check-permissions.outputs.permission == 'write') && github.event.issue.pull_request != null && contains(github.event.comment.body, '/test-examples')}}
99-
runs-on: ubuntu-latest
99+
runs-on: ubuntu-latest-8-cores
100100

101101
steps:
102102
- name: Cleanup Disk

.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# SPDX-License-Identifier: CC0-1.0
44

55
run:
6-
timeout: 10m
6+
timeout: 90m
77

88
output:
99
# colored-line-number|line-number|json|tab|checkstyle|code-climate, default is "colored-line-number"

Makefile

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export GOPRIVATE = github.com/upbound/*
5151
GO_REQUIRED_VERSION ?= 1.21
5252
# GOLANGCILINT_VERSION is inherited from build submodule by default.
5353
# Uncomment below if you need to override the version.
54-
# GOLANGCILINT_VERSION ?= 1.54.0
54+
GOLANGCILINT_VERSION ?= 1.64.8
5555

5656
RUN_BUILDTAGGER ?= false
5757
# if RUN_BUILDTAGGER is set to "true", we will use build constraints
@@ -66,7 +66,7 @@ endif
6666
SUBPACKAGES ?= monolith
6767
GO_STATIC_PACKAGES ?= $(GO_PROJECT)/cmd/generator ${SUBPACKAGES:%=$(GO_PROJECT)/cmd/provider/%}
6868
GO_LDFLAGS += -X $(GO_PROJECT)/internal/version.Version=$(VERSION)
69-
GO_SUBDIRS += cmd internal apis
69+
GO_SUBDIRS += cmd internal apis generate
7070
GO111MODULE = on
7171

7272
export SUBPACKAGES := $(SUBPACKAGES)
@@ -76,16 +76,16 @@ export SUBPACKAGES := $(SUBPACKAGES)
7676
# ====================================================================================
7777
# Setup Kubernetes tools
7878

79-
KIND_VERSION = v0.15.0
79+
KIND_VERSION = v0.29.0
8080
# dependency for up
81-
UP_VERSION = v0.39.0
82-
UP_CHANNEL = stable
81+
UP_VERSION = v0.40.0-0.rc.3
82+
UP_CHANNEL = alpha
8383
UPTEST_VERSION = v0.11.1
8484
UPTEST_LOCAL_VERSION = v0.13.0
8585
UPTEST_LOCAL_CHANNEL = stable
8686
KUSTOMIZE_VERSION = v5.3.0
8787
YQ_VERSION = v4.40.5
88-
CROSSPLANE_VERSION = 1.14.6
88+
CROSSPLANE_VERSION = 1.20.0
8989
CRDDIFF_VERSION = v0.12.1
9090

9191
export UP_VERSION := $(UP_VERSION)
@@ -234,6 +234,15 @@ build-provider.%:
234234
XPKG_SKIP_DEP_RESOLUTION := true
235235

236236
local-deploy.%: controlplane.up
237+
# uptest workaround for the behavior change at Crossplane 1.15 default registry
238+
# XP RBAC manager has a check for packages from the same provider family
239+
# that they come from the same org and assign RBACs for all providers.
240+
# This got broken for locally deployed dev packages through crossplane/build submodule,
241+
# therefore cannot get necessary RBACs.
242+
# TODO: Remove this when https://github.com/crossplane/build/issues/38 is resolved
243+
# this workaround is only valid for uptest on Crossplane 1.x
244+
# Crossplane v2 needs the above issue to be resolved
245+
@$(KUBECTL) -n $(CROSSPLANE_NAMESPACE) patch deployment crossplane-rbac-manager -p '{"spec":{"template":{"spec":{"containers":[{"name":"crossplane","env":[{"name":"REGISTRY","value":"index.docker.io"}]}]}}}}'
237246
@for api in $$(tr ',' ' ' <<< $*); do \
238247
$(MAKE) local.xpkg.deploy.provider.$(PROJECT_NAME)-$${api}; \
239248
$(INFO) running locally built $(PROJECT_NAME)-$${api}; \

apis/accesscontextmanager/v1beta1/zz_accesslevel_terraformed.go

Lines changed: 0 additions & 129 deletions
This file was deleted.

0 commit comments

Comments
 (0)