Skip to content

Commit

Permalink
Merge pull request #103 from jbw976/transfer-rename
Browse files Browse the repository at this point in the history
refactor: update module/project to crossplane-contrib/provider-upjet-github
  • Loading branch information
jbw976 authored Oct 8, 2024
2 parents 9464f3b + 521edb5 commit 1c9623d
Show file tree
Hide file tree
Showing 51 changed files with 161 additions and 161 deletions.
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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.
Expand Down
28 changes: 14 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# 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.

## 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:
Expand All @@ -19,12 +19,12 @@ cat <<EOF | kubectl apply -f -
apiVersion: pkg.crossplane.io/v1
kind: Provider
metadata:
name: provider-github
name: provider-upjet-github
spec:
package: coopnorge/provider-github:v0.1.0
package: crossplane-contrib/provider-upjet-github:v0.1.0
EOF
```
You can see the API reference [here](https://doc.crds.dev/github.com/coopnorge/provider-github).
You can see the API reference [here](https://marketplace.upbound.io/providers/crossplane-contrib/provider-upjet-github).

### Adding provider config

Expand Down Expand Up @@ -120,7 +120,7 @@ spec:
* 1 resource per PR prefered
* Write a test case

Check this reference PR: https://github.com/coopnorge/provider-github/pull/4
Check this reference PR: https://github.com/crossplane-contrib/provider-upjet-github/pull/4

An example diff for human generated files

Expand All @@ -129,7 +129,7 @@ diff --git a/README.md b/README.md
index 06704c1..7adefad 100644
--- a/README.md
+++ b/README.md
@@ -34,6 +34,7 @@ You can see the API reference [here](https://doc.crds.dev/github.com/coopnorge/p
@@ -34,6 +34,7 @@ You can see the API reference [here](https://doc.crds.dev/github.com/crossplane-contrib/p
| `Branch` | `repo` | `github_branch` | |
| `DefaultBranch` | `repo` | `github_branch_default` | name change |
| `BranchProtection` | `repo` | `github_branch_protection` | |
Expand All @@ -156,12 +156,12 @@ index e2d81bf..093bdf8 100644
--- a/config/provider.go
+++ b/config/provider.go
@@ -12,6 +12,7 @@ import (
"github.com/coopnorge/provider-github/config/branchprotection"
"github.com/coopnorge/provider-github/config/defaultbranch"
"github.com/coopnorge/provider-github/config/repository"
+ "github.com/coopnorge/provider-github/config/repositoryfile"
"github.com/coopnorge/provider-github/config/team"
"github.com/coopnorge/provider-github/config/teamrepository"
"github.com/crossplane-contrib/provider-upjet-github/config/branchprotection"
"github.com/crossplane-contrib/provider-upjet-github/config/defaultbranch"
"github.com/crossplane-contrib/provider-upjet-github/config/repository"
+ "github.com/crossplane-contrib/provider-upjet-github/config/repositoryfile"
"github.com/crossplane-contrib/provider-upjet-github/config/team"
"github.com/crossplane-contrib/provider-upjet-github/config/teamrepository"
ujconfig "github.com/upbound/upjet/pkg/config"
@@ -40,6 +41,7 @@ func GetProvider() *ujconfig.Provider {
// add custom config functions
Expand Down
4 changes: 2 additions & 2 deletions apis/actions/v1alpha1/zz_actionssecret_types.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions apis/actions/v1alpha1/zz_actionsvariable_types.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion apis/actions/v1alpha1/zz_generated.resolvers.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions apis/repo/v1alpha1/zz_branch_types.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions apis/repo/v1alpha1/zz_branchprotection_types.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions apis/repo/v1alpha1/zz_defaultbranch_types.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions apis/repo/v1alpha1/zz_deploykey_types.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions apis/repo/v1alpha1/zz_pullrequest_types.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions apis/repo/v1alpha1/zz_repositoryautolinkreference_types.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions apis/repo/v1alpha1/zz_repositoryfile_types.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions apis/team/v1alpha1/zz_emugroupmapping_types.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion apis/team/v1alpha1/zz_generated.resolvers.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions apis/team/v1alpha1/zz_teammembership_types.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 1c9623d

Please sign in to comment.