From 521edb555cc9c85e87cabff3ad4c8539215cf23c Mon Sep 17 00:00:00 2001 From: Jared Watts Date: Mon, 7 Oct 2024 18:12:43 +0200 Subject: [PATCH] refactor: update module/project to crossplane-contrib/provider-upjet-github Signed-off-by: Jared Watts --- Makefile | 12 +++--- README.md | 28 ++++++------- .../v1alpha1/zz_actionssecret_types.go | 4 +- .../v1alpha1/zz_actionsvariable_types.go | 4 +- .../v1alpha1/zz_generated.resolvers.go | 2 +- apis/repo/v1alpha1/zz_branch_types.go | 4 +- .../v1alpha1/zz_branchprotection_types.go | 4 +- apis/repo/v1alpha1/zz_defaultbranch_types.go | 4 +- apis/repo/v1alpha1/zz_deploykey_types.go | 4 +- apis/repo/v1alpha1/zz_pullrequest_types.go | 8 ++-- .../zz_repositoryautolinkreference_types.go | 4 +- apis/repo/v1alpha1/zz_repositoryfile_types.go | 8 ++-- .../team/v1alpha1/zz_emugroupmapping_types.go | 4 +- apis/team/v1alpha1/zz_generated.resolvers.go | 2 +- apis/team/v1alpha1/zz_teammembership_types.go | 4 +- apis/team/v1alpha1/zz_teamrepository_types.go | 8 ++-- apis/team/v1alpha1/zz_teamsettings_types.go | 4 +- apis/zz_register.go | 14 +++---- .../Dockerfile | 0 .../Makefile | 0 .../terraformrc.hcl | 0 cmd/generator/main.go | 2 +- cmd/provider/main.go | 16 +++---- config/provider.go | 42 +++++++++---------- config/pullrequest/config.go | 2 +- examples/install.yaml | 2 +- go.mod | 2 +- internal/clients/github.go | 2 +- .../actions/actionssecret/zz_controller.go | 4 +- .../actions/actionsvariable/zz_controller.go | 4 +- .../enterprise/organization/zz_controller.go | 4 +- .../organizationruleset/zz_controller.go | 4 +- internal/controller/providerconfig/config.go | 2 +- .../controller/repo/branch/zz_controller.go | 4 +- .../repo/branchprotection/zz_controller.go | 4 +- .../repo/defaultbranch/zz_controller.go | 4 +- .../repo/deploykey/zz_controller.go | 4 +- .../repo/pullrequest/zz_controller.go | 4 +- .../repo/repository/zz_controller.go | 4 +- .../zz_controller.go | 4 +- .../repo/repositoryfile/zz_controller.go | 4 +- .../repo/repositorywebhook/zz_controller.go | 4 +- .../team/emugroupmapping/zz_controller.go | 4 +- .../controller/team/team/zz_controller.go | 4 +- .../team/teammembership/zz_controller.go | 4 +- .../team/teamrepository/zz_controller.go | 4 +- .../team/teamsettings/zz_controller.go | 4 +- .../teamsyncgroupmapping/zz_controller.go | 4 +- .../user/membership/zz_controller.go | 4 +- internal/controller/zz_setup.go | 42 +++++++++---------- package/crossplane.yaml | 8 ++-- 51 files changed, 161 insertions(+), 161 deletions(-) rename cluster/images/{provider-github => provider-upjet-github}/Dockerfile (100%) rename cluster/images/{provider-github => provider-upjet-github}/Makefile (100%) rename cluster/images/{provider-github => provider-upjet-github}/terraformrc.hcl (100%) diff --git a/Makefile b/Makefile index b642416..3a72925 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,9 @@ # ==================================================================================== # Setup Project -PROVIDER_NAME := github +PROVIDER_NAME := upjet-github PROJECT_NAME := provider-$(PROVIDER_NAME) -PROJECT_REPO := github.com/coopnorge/$(PROJECT_NAME) +PROJECT_REPO := github.com/crossplane-contrib/$(PROJECT_NAME) export TERRAFORM_VERSION := 1.5.5 @@ -61,23 +61,23 @@ UPTEST_VERSION = v0.11.1 # ==================================================================================== # Setup Images -REGISTRY_ORGS ?= xpkg.upbound.io/coopnorge +REGISTRY_ORGS ?= xpkg.upbound.io/crossplane-contrib IMAGES = $(PROJECT_NAME) -include build/makelib/imagelight.mk # ==================================================================================== # Setup XPKG -XPKG_REG_ORGS ?= xpkg.upbound.io/coopnorge +XPKG_REG_ORGS ?= xpkg.upbound.io/crossplane-contrib # NOTE(hasheddan): skip promoting on xpkg.upbound.io as channel tags are # inferred. -XPKG_REG_ORGS_NO_PROMOTE ?= xpkg.upbound.io/coopnorge +XPKG_REG_ORGS_NO_PROMOTE ?= xpkg.upbound.io/crossplane-contrib XPKGS = $(PROJECT_NAME) -include build/makelib/xpkg.mk # NOTE(hasheddan): we force image building to happen prior to xpkg build so that # we ensure image is present in daemon. -xpkg.build.provider-github: do.build.images +xpkg.build.provider-upjet-github: do.build.images # NOTE(hasheddan): we ensure up is installed prior to running platform-specific # build steps in parallel to avoid encountering an installation race condition. diff --git a/README.md b/README.md index 7b2e8b7..81045a4 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Provider GitHub -`provider-github` is a [Crossplane](https://crossplane.io/) provider that +`provider-upjet-github` is a [Crossplane](https://crossplane.io/) provider that is built using [Upjet](https://github.com/upbound/upjet) code generation tools and exposes XRM-conformant managed resources for the GitHub API. @@ -8,9 +8,9 @@ GitHub API. ## Getting Started Install the provider by using the following command after changing the image tag -to the [latest release](https://marketplace.upbound.io/providers/coopnorge/provider-github): +to the [latest release](https://marketplace.upbound.io/providers/crossplane-contrib/provider-upjet-github): ``` -up ctp provider install coopnorge/provider-github:v0.1.0 +up ctp provider install crossplane-contrib/provider-upjet-github:v0.1.0 ``` Alternatively, you can use declarative installation: @@ -19,12 +19,12 @@ cat <