Skip to content

Commit

Permalink
rename go module
Browse files Browse the repository at this point in the history
  • Loading branch information
janwillies committed Oct 6, 2023
1 parent 5079e06 commit 3ff71b0
Show file tree
Hide file tree
Showing 14 changed files with 39 additions and 37 deletions.
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ linters-settings:
goimports:
# put imports beginning with prefix after 3rd-party packages;
# it's a comma-separated list of prefixes
local-prefixes: github.com/crossplane/provider-template
local-prefixes: github.com/swisscom/provider-cortex

gocyclo:
# minimal code complexity to report, 30 by default (but we recommend 10-20)
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# ====================================================================================
# Setup Project
PROJECT_NAME := provider-cortex
PROJECT_REPO := github.com/crossplane/$(PROJECT_NAME)
PROJECT_REPO := github.com/swisscom/$(PROJECT_NAME)

PLATFORMS ?= linux_amd64 linux_arm64
-include build/makelib/common.mk
Expand Down
18 changes: 9 additions & 9 deletions PROVIDER_CHECKLIST.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Generally projects are named `provider-<name>`, with `name` being the API being
managed. Example project names are `provider-aws`, `provider-kubernetes`,
and `provider-github`.

The [provider-cortex](https://github.com/crossplane/provider-cortex) repository can be
The [provider-cortex](https://github.com/swisscom/provider-cortex) repository can be
used as a starting point for new providers. For [terrajet](https://github.com/crossplane/terrajet)-based providers, the
[provider-jet-cortex](https://github.com/crossplane-contrib/provider-jet-cortex) is
available.
Expand All @@ -43,17 +43,17 @@ Most Crossplane providers include the following files:
[provider-gcp/README.md](https://github.com/crossplane/provider-gcp/blob/master/README.md)
as an example)
- [ ] Code is licensed under the [Apache 2.0
License](https://github.com/crossplane/provider-cortex/blob/main/LICENSE)
License](https://github.com/swisscom/provider-cortex/blob/main/LICENSE)
- [ ] Include a “Developer Certificate of Origin”. Example:
[DCO](https://github.com/upbound/build/blob/master/DCO)
- [ ] Include the CNCF [Code of
Conduct](https://github.com/crossplane/crossplane/blob/master/CODE_OF_CONDUCT.md)
- [ ] Update
[OWNERS.md](https://github.com/crossplane/provider-cortex/blob/main/OWNERS.md)
[OWNERS.md](https://github.com/swisscom/provider-cortex/blob/main/OWNERS.md)
with contacts for project Owners
- [ ] Ensure `hack/boilerplate.go.txt` (used in Code generation) includes
Crossplane Authors, Apache license and any other Copyright statements:
[https://github.com/crossplane/provider-cortex/blob/main/hack/boilerplate.go.txt](https://github.com/crossplane/provider-cortex/blob/main/hack/boilerplate.go.txt)
[https://github.com/swisscom/provider-cortex/blob/main/hack/boilerplate.go.txt](https://github.com/swisscom/provider-cortex/blob/main/hack/boilerplate.go.txt)
- [ ] Include Documentation on how to:
- [ ] Install Provider
- [ ] Contribute to Development
Expand All @@ -68,7 +68,7 @@ There are a number of build tools and processes that are common across the
Crossplane ecosystem. Using these ensures a consistent development environment
across projects.

The [provider-cortex](https://github.com/crossplane/provider-cortex)
The [provider-cortex](https://github.com/swisscom/provider-cortex)
repository contains most of these settings.

- [ ] Use the [Upbound build](https://github.com/upbound/build) submodule. (see
Expand All @@ -81,7 +81,7 @@ repository contains most of these settings.
- [ ] Create a [Crossplane
Package](https://crossplane.io/docs/master/concepts/packages.html)
configuration (see
[package/crossplane.yaml)](https://github.com/crossplane/provider-cortex/blob/main/package/crossplane.yaml)
[package/crossplane.yaml)](https://github.com/swisscom/provider-cortex/blob/main/package/crossplane.yaml)

## Deployment of Artifacts

Expand All @@ -96,7 +96,7 @@ the publish and promotion workflows.
In general, providers should:

- [ ] Utilize GitHub workflows from
<https://github.com/crossplane/provider-cortex/tree/main/.github/workflows>
<https://github.com/swisscom/provider-cortex/tree/main/.github/workflows>
- [ ] Create OCI image repos to push Package and Controller images.
- [ ] Automatically push Provider images and packages via CI
- [ ] Add GitHub Secrets to push to Docker repository. (To be performed by
Expand All @@ -113,6 +113,6 @@ to grant your project access to the GitHub org scoped secrets.
- [ ] Follow recommendations at
[https://github.com/crossplane/crossplane/blob/master/GOVERNANCE.md#repository-governance](https://github.com/crossplane/crossplane/blob/master/GOVERNANCE.md#repository-governance)
- [ ] Enable Issues on your project and configure Issue cortexs (examples at:
[.github/ISSUE_TEMPLATE](https://github.com/crossplane/provider-cortex/tree/master/.github/ISSUE_TEMPLATE))
[.github/ISSUE_TEMPLATE](https://github.com/swisscom/provider-cortex/tree/master/.github/ISSUE_TEMPLATE))
- [ ] Create Pull Request cortexs: (example:
[PULL_REQUEST_TEMPLATE.md](https://github.com/crossplane/provider-cortex/blob/master/.github/PULL_REQUEST_TEMPLATE.md))
[PULL_REQUEST_TEMPLATE.md](https://github.com/swisscom/provider-cortex/blob/master/.github/PULL_REQUEST_TEMPLATE.md))
6 changes: 3 additions & 3 deletions apis/cortex.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ package apis
import (
"k8s.io/apimachinery/pkg/runtime"

alertsv1alpha1 "github.com/crossplane/provider-cortex/apis/alerts/v1alpha1"
rulesv1alpha1 "github.com/crossplane/provider-cortex/apis/rules/v1alpha1"
cortexv1alpha1 "github.com/crossplane/provider-cortex/apis/v1alpha1"
alertsv1alpha1 "github.com/swisscom/provider-cortex/apis/alerts/v1alpha1"
rulesv1alpha1 "github.com/swisscom/provider-cortex/apis/rules/v1alpha1"
cortexv1alpha1 "github.com/swisscom/provider-cortex/apis/v1alpha1"
)

func init() {
Expand Down
8 changes: 4 additions & 4 deletions cmd/provider/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ import (
"github.com/crossplane/crossplane-runtime/pkg/ratelimiter"
"github.com/crossplane/crossplane-runtime/pkg/resource"

"github.com/crossplane/provider-cortex/apis"
"github.com/crossplane/provider-cortex/apis/v1alpha1"
cortex "github.com/crossplane/provider-cortex/internal/controller"
"github.com/crossplane/provider-cortex/internal/features"
"github.com/swisscom/provider-cortex/apis"
"github.com/swisscom/provider-cortex/apis/v1alpha1"
cortex "github.com/swisscom/provider-cortex/internal/controller"
"github.com/swisscom/provider-cortex/internal/features"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/crossplane/provider-cortex
module github.com/swisscom/provider-cortex

go 1.20

Expand Down
2 changes: 1 addition & 1 deletion internal/clients/cortex.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"k8s.io/apimachinery/pkg/types"
"sigs.k8s.io/controller-runtime/pkg/client"

"github.com/crossplane/provider-cortex/apis/v1alpha1"
"github.com/swisscom/provider-cortex/apis/v1alpha1"
)

type Config struct {
Expand Down
10 changes: 5 additions & 5 deletions internal/controller/alertmanager/configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ import (
"github.com/crossplane/crossplane-runtime/pkg/reconciler/managed"
"github.com/crossplane/crossplane-runtime/pkg/resource"

"github.com/crossplane/provider-cortex/apis/alerts/v1alpha1"
apisv1alpha1 "github.com/crossplane/provider-cortex/apis/v1alpha1"
xpClient "github.com/crossplane/provider-cortex/internal/clients"
"github.com/crossplane/provider-cortex/internal/clients/alertmanager"
"github.com/crossplane/provider-cortex/internal/features"
"github.com/swisscom/provider-cortex/apis/alerts/v1alpha1"
apisv1alpha1 "github.com/swisscom/provider-cortex/apis/v1alpha1"
xpClient "github.com/swisscom/provider-cortex/internal/clients"
"github.com/swisscom/provider-cortex/internal/clients/alertmanager"
"github.com/swisscom/provider-cortex/internal/features"
)

const (
Expand Down
3 changes: 2 additions & 1 deletion internal/controller/alertmanager/configuration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ import (
"github.com/crossplane/crossplane-runtime/pkg/reconciler/managed"
"github.com/crossplane/crossplane-runtime/pkg/resource"
"github.com/crossplane/crossplane-runtime/pkg/test"
"github.com/crossplane/provider-cortex/internal/clients/alertmanager"
"github.com/google/go-cmp/cmp"

"github.com/swisscom/provider-cortex/internal/clients/alertmanager"
)

// Unlike many Kubernetes projects Crossplane does not use third party testing
Expand Down
2 changes: 1 addition & 1 deletion internal/controller/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
"github.com/crossplane/crossplane-runtime/pkg/reconciler/providerconfig"
"github.com/crossplane/crossplane-runtime/pkg/resource"

"github.com/crossplane/provider-cortex/apis/v1alpha1"
"github.com/swisscom/provider-cortex/apis/v1alpha1"
)

// Setup adds a controller that reconciles ProviderConfigs by accounting for
Expand Down
6 changes: 3 additions & 3 deletions internal/controller/cortex.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ import (
"github.com/crossplane/crossplane-runtime/pkg/controller"
ctrl "sigs.k8s.io/controller-runtime"

"github.com/crossplane/provider-cortex/internal/controller/alertmanager"
"github.com/crossplane/provider-cortex/internal/controller/config"
"github.com/crossplane/provider-cortex/internal/controller/rulegroup"
"github.com/swisscom/provider-cortex/internal/controller/alertmanager"
"github.com/swisscom/provider-cortex/internal/controller/config"
"github.com/swisscom/provider-cortex/internal/controller/rulegroup"
)

// Setup creates all cortex controllers with the supplied logger and adds them to
Expand Down
10 changes: 5 additions & 5 deletions internal/controller/rulegroup/rulegroup.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ import (
"github.com/crossplane/crossplane-runtime/pkg/reconciler/managed"
"github.com/crossplane/crossplane-runtime/pkg/resource"

"github.com/crossplane/provider-cortex/apis/rules/v1alpha1"
apisv1alpha1 "github.com/crossplane/provider-cortex/apis/v1alpha1"
xpClient "github.com/crossplane/provider-cortex/internal/clients"
"github.com/crossplane/provider-cortex/internal/clients/rulegroups"
"github.com/crossplane/provider-cortex/internal/features"
"github.com/swisscom/provider-cortex/apis/rules/v1alpha1"
apisv1alpha1 "github.com/swisscom/provider-cortex/apis/v1alpha1"
xpClient "github.com/swisscom/provider-cortex/internal/clients"
"github.com/swisscom/provider-cortex/internal/clients/rulegroups"
"github.com/swisscom/provider-cortex/internal/features"
)

const (
Expand Down
3 changes: 2 additions & 1 deletion internal/controller/rulegroup/rulegroup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ import (
"github.com/crossplane/crossplane-runtime/pkg/reconciler/managed"
"github.com/crossplane/crossplane-runtime/pkg/resource"
"github.com/crossplane/crossplane-runtime/pkg/test"
"github.com/crossplane/provider-cortex/internal/clients/rulegroups"
"github.com/google/go-cmp/cmp"

"github.com/swisscom/provider-cortex/internal/clients/rulegroups"
)

// Unlike many Kubernetes projects Crossplane does not use third party testing
Expand Down
2 changes: 1 addition & 1 deletion package/crossplane.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: provider-cortex
annotations:
meta.crossplane.io/maintainer: Crossplane Maintainers <[email protected]>
meta.crossplane.io/source: github.com/crossplane/provider-cortex
meta.crossplane.io/source: github.com/swisscom/provider-cortex
meta.crossplane.io/license: Apache-2.0
meta.crossplane.io/description: |
A cortex that can be used to create Crossplane providers.

0 comments on commit 3ff71b0

Please sign in to comment.