Skip to content

Commit

Permalink
Merge pull request #367 from furkatgofurov7/change-org-name
Browse files Browse the repository at this point in the history
:chore: Rename CAPRKE2 org references in the codebase
  • Loading branch information
furkatgofurov7 committed Jul 12, 2024
2 parents 37cb914 + ece3d24 commit b226680
Show file tree
Hide file tree
Showing 68 changed files with 149 additions and 149 deletions.
6 changes: 3 additions & 3 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,17 @@ linters-settings:
- "4"
- "3"
goimports:
local-prefixes: github.com/rancher-sandbox/cluster-api-provider-rke2
local-prefixes: github.com/rancher/cluster-api-provider-rke2
gci:
custom-order: true
#local-prefixes: github.com/rancher-sandbox/cluster-api-provider-rke2
#local-prefixes: github.com/rancher/cluster-api-provider-rke2
sections:
- "standard"
- "blank"
- "dot"
- "default"
- "prefix(sigs.k8s.io/cluster-api)"
- "prefix(github.com/rancher-sandbox/cluster-api-provider-rke2)"
- "prefix(github.com/rancher/cluster-api-provider-rke2)"
wsl:
force-err-cuddling: false
linters:
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ RUN --mount=type=cache,target=/go/pkg/mod \

# Production image
FROM gcr.io/distroless/static:nonroot-${ARCH}
LABEL org.opencontainers.image.source=https://github.com/rancher-sandbox/cluster-api-provider-rke2
LABEL org.opencontainers.image.source=https://github.com/rancher/cluster-api-provider-rke2
WORKDIR /
COPY --from=builder /workspace/manager .
# Use uid of nonroot user (65532) because kubernetes expects numeric user when applying pod security policies
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ generate-go-conversions-rke2-control-plane: $(CONVERSION_GEN) ## Generate conver
$(MAKE) clean-generated-conversions SRC_DIRS="./controlplane/api/v1alpha1"
$(CONVERSION_GEN) \
--input-dirs=./controlplane/api/v1alpha1 \
--extra-peer-dirs=github.com/rancher-sandbox/cluster-api-provider-rke2/bootstrap/api/v1alpha1 \
--extra-peer-dirs=github.com/rancher/cluster-api-provider-rke2/bootstrap/api/v1alpha1 \
--build-tag=ignore_autogenerated_rk2_control_plane \
--output-file-base=zz_generated.conversion $(ROOT_DIR) \
--go-header-file=./hack/boilerplate.go.txt
Expand Down Expand Up @@ -299,11 +299,11 @@ managers: $(addprefix manager-,$(ALL_MANAGERS)) ## Run all manager-* targets

.PHONY: manager-rke2-bootstrap
manager-rke2-bootstrap: ## Build the rke2 bootstrap manager binary into the ./bin folder
go build -trimpath -ldflags "$(LDFLAGS)" -o $(BIN_DIR)/rke2-bootstrap-manager github.com/rancher-sandbox/cluster-api-provider-rke2/bootstrap
go build -trimpath -ldflags "$(LDFLAGS)" -o $(BIN_DIR)/rke2-bootstrap-manager github.com/rancher/cluster-api-provider-rke2/bootstrap

.PHONY: manager-rke2-control-plane
manager-rke2-control-plane: ## Build the rke2 control plane manager binary into the ./bin folder
go build -trimpath -ldflags "$(LDFLAGS)" -o $(BIN_DIR)/rke2-control-plane-manager github.com/rancher-sandbox/cluster-api-provider-rke2/controlplane
go build -trimpath -ldflags "$(LDFLAGS)" -o $(BIN_DIR)/rke2-control-plane-manager github.com/rancher/cluster-api-provider-rke2/controlplane

.PHONY: docker-pull-prerequisites
docker-pull-prerequisites:
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Cluster API Provider RKE2

![GitHub](https://img.shields.io/github/license/rancher-sandbox/cluster-api-provider-rke2)
![GitHub](https://img.shields.io/github/license/rancher/cluster-api-provider-rke2)

------

Expand Down Expand Up @@ -71,10 +71,10 @@ With CAPI & clusterctl versions less than v1.6.0 you need a specific configurati
```yaml
providers:
- name: "rke2"
url: "https://github.com/rancher-sandbox/cluster-api-provider-rke2/releases/v0.1.1/bootstrap-components.yaml"
url: "https://github.com/rancher/cluster-api-provider-rke2/releases/v0.1.1/bootstrap-components.yaml"
type: "BootstrapProvider"
- name: "rke2"
url: "https://github.com/rancher-sandbox/cluster-api-provider-rke2/releases/v0.1.1/control-plane-components.yaml"
url: "https://github.com/rancher/cluster-api-provider-rke2/releases/v0.1.1/control-plane-components.yaml"
type: "ControlPlaneProvider"
```
> NOTE: Due to some issue related to how `CAPD` creates Load Balancer healthchecks, it is necessary to use a fork of `CAPD` by providing in the above configuration file the following :
Expand Down Expand Up @@ -260,7 +260,7 @@ These instructions are for development purposes initially and will be changed in

> **Why clone into the GOPATH?** There have been historic issues with code generation tools when they are run outside the go path
2. Fork the [Cluster API Provider RKE2](https://github.com/rancher-sandbox/cluster-api-provider-rke2) repo
2. Fork the [Cluster API Provider RKE2](https://github.com/rancher/cluster-api-provider-rke2) repo
3. Clone your new repo into the **GOPATH** (i.e. `~/go/src/github.com/yourname/cluster-api-provider-rke2`)
4. Ensure **Tilt** and **kind** are installed
5. Create a `tilt-settings.json` file in the root of your forked/cloned `cluster-api` directory.
Expand Down
8 changes: 4 additions & 4 deletions bootstrap/PROJECT
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ domain: cluster.x-k8s.io
layout:
- go.kubebuilder.io/v3
projectName: bootstrap
repo: github.com/rancher-sandbox/cluster-api-provider-rke2/bootstrap
repo: github.com/rancher/cluster-api-provider-rke2/bootstrap
resources:
- api:
crdVersion: v1
Expand All @@ -15,7 +15,7 @@ resources:
domain: cluster.x-k8s.io
group: bootstrap
kind: Rke2Config
path: github.com/rancher-sandbox/cluster-api-provider-rke2/bootstrap/api/v1alpha1
path: github.com/rancher/cluster-api-provider-rke2/bootstrap/api/v1alpha1
version: v1alpha1
webhooks:
defaulting: true
Expand All @@ -27,7 +27,7 @@ resources:
domain: cluster.x-k8s.io
group: bootstrap
kind: Rke2ConfigTemplate
path: github.com/rancher-sandbox/cluster-api-provider-rke2/bootstrap/api/v1alpha1
path: github.com/rancher/cluster-api-provider-rke2/bootstrap/api/v1alpha1
version: v1alpha1
webhooks:
defaulting: true
Expand All @@ -39,7 +39,7 @@ resources:
domain: cluster.x-k8s.io
group: bootstrap
kind: RKE2ConfigTemplate
path: github.com/rancher-sandbox/cluster-api-provider-rke2/bootstrap/api/v1beta1
path: github.com/rancher/cluster-api-provider-rke2/bootstrap/api/v1beta1
version: v1beta1
webhooks:
conversion: true
Expand Down
2 changes: 1 addition & 1 deletion bootstrap/api/v1alpha1/conversion.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (

apiconversion "k8s.io/apimachinery/pkg/conversion"

bootstrapv1 "github.com/rancher-sandbox/cluster-api-provider-rke2/bootstrap/api/v1beta1"
bootstrapv1 "github.com/rancher/cluster-api-provider-rke2/bootstrap/api/v1beta1"
utilconversion "sigs.k8s.io/cluster-api/util/conversion"
)

Expand Down
2 changes: 1 addition & 1 deletion bootstrap/api/v1alpha1/conversion_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
"k8s.io/apimachinery/pkg/runtime"
runtimeserializer "k8s.io/apimachinery/pkg/runtime/serializer"

bootstrapv1 "github.com/rancher-sandbox/cluster-api-provider-rke2/bootstrap/api/v1beta1"
bootstrapv1 "github.com/rancher/cluster-api-provider-rke2/bootstrap/api/v1beta1"
utilconversion "sigs.k8s.io/cluster-api/util/conversion"
)

Expand Down
2 changes: 1 addition & 1 deletion bootstrap/api/v1alpha1/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ limitations under the License.

// Package v1alpha1 contains a v1alpha1 api for bootstrap resources.
//
// +k8s:conversion-gen=github.com/rancher-sandbox/cluster-api-provider-rke2/bootstrap/api/v1beta1
// +k8s:conversion-gen=github.com/rancher/cluster-api-provider-rke2/bootstrap/api/v1beta1
// +k8s:deepcopy-gen=package
package v1alpha1
2 changes: 1 addition & 1 deletion bootstrap/api/v1alpha1/zz_generated.conversion.go

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

2 changes: 1 addition & 1 deletion bootstrap/internal/cloudinit/cloudinit.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
"github.com/pkg/errors"
"gopkg.in/yaml.v3"

bootstrapv1 "github.com/rancher-sandbox/cluster-api-provider-rke2/bootstrap/api/v1beta1"
bootstrapv1 "github.com/rancher/cluster-api-provider-rke2/bootstrap/api/v1beta1"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion bootstrap/internal/cloudinit/controlplane_init.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package cloudinit
import (
"fmt"

"github.com/rancher-sandbox/cluster-api-provider-rke2/pkg/secret"
"github.com/rancher/cluster-api-provider-rke2/pkg/secret"
)

//nolint:lll
Expand Down
18 changes: 9 additions & 9 deletions bootstrap/internal/controllers/rke2config_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ import (
"sigs.k8s.io/cluster-api/util/conditions"
"sigs.k8s.io/cluster-api/util/patch"

bootstrapv1 "github.com/rancher-sandbox/cluster-api-provider-rke2/bootstrap/api/v1beta1"
"github.com/rancher-sandbox/cluster-api-provider-rke2/bootstrap/internal/cloudinit"
"github.com/rancher-sandbox/cluster-api-provider-rke2/bootstrap/internal/ignition"
controlplanev1 "github.com/rancher-sandbox/cluster-api-provider-rke2/controlplane/api/v1beta1"
"github.com/rancher-sandbox/cluster-api-provider-rke2/pkg/consts"
"github.com/rancher-sandbox/cluster-api-provider-rke2/pkg/locking"
"github.com/rancher-sandbox/cluster-api-provider-rke2/pkg/rke2"
"github.com/rancher-sandbox/cluster-api-provider-rke2/pkg/secret"
bsutil "github.com/rancher-sandbox/cluster-api-provider-rke2/pkg/util"
bootstrapv1 "github.com/rancher/cluster-api-provider-rke2/bootstrap/api/v1beta1"
"github.com/rancher/cluster-api-provider-rke2/bootstrap/internal/cloudinit"
"github.com/rancher/cluster-api-provider-rke2/bootstrap/internal/ignition"
controlplanev1 "github.com/rancher/cluster-api-provider-rke2/controlplane/api/v1beta1"
"github.com/rancher/cluster-api-provider-rke2/pkg/consts"
"github.com/rancher/cluster-api-provider-rke2/pkg/locking"
"github.com/rancher/cluster-api-provider-rke2/pkg/rke2"
"github.com/rancher/cluster-api-provider-rke2/pkg/secret"
bsutil "github.com/rancher/cluster-api-provider-rke2/pkg/util"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion bootstrap/internal/controllers/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import (
logf "sigs.k8s.io/controller-runtime/pkg/log"
"sigs.k8s.io/controller-runtime/pkg/log/zap"

bootstrapv1 "github.com/rancher-sandbox/cluster-api-provider-rke2/bootstrap/api/v1beta1"
bootstrapv1 "github.com/rancher/cluster-api-provider-rke2/bootstrap/api/v1beta1"
)

// These tests use Ginkgo (BDD-style Go testing framework). Refer to
Expand Down
4 changes: 2 additions & 2 deletions bootstrap/internal/ignition/butane/butane.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ import (
ignitionTypes "github.com/coreos/ignition/v2/config/v3_3/types"
"github.com/pkg/errors"

bootstrapv1 "github.com/rancher-sandbox/cluster-api-provider-rke2/bootstrap/api/v1beta1"
"github.com/rancher-sandbox/cluster-api-provider-rke2/bootstrap/internal/cloudinit"
bootstrapv1 "github.com/rancher/cluster-api-provider-rke2/bootstrap/api/v1beta1"
"github.com/rancher/cluster-api-provider-rke2/bootstrap/internal/cloudinit"
)

// The template contains configurations for two main sections: systemd units and storage files.
Expand Down
4 changes: 2 additions & 2 deletions bootstrap/internal/ignition/butane/butane_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ import (

"k8s.io/utils/pointer"

bootstrapv1 "github.com/rancher-sandbox/cluster-api-provider-rke2/bootstrap/api/v1beta1"
"github.com/rancher-sandbox/cluster-api-provider-rke2/bootstrap/internal/cloudinit"
bootstrapv1 "github.com/rancher/cluster-api-provider-rke2/bootstrap/api/v1beta1"
"github.com/rancher/cluster-api-provider-rke2/bootstrap/internal/cloudinit"
)

func TestButane(t *testing.T) {
Expand Down
6 changes: 3 additions & 3 deletions bootstrap/internal/ignition/ignition.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ package ignition
import (
"fmt"

bootstrapv1 "github.com/rancher-sandbox/cluster-api-provider-rke2/bootstrap/api/v1beta1"
"github.com/rancher-sandbox/cluster-api-provider-rke2/bootstrap/internal/cloudinit"
"github.com/rancher-sandbox/cluster-api-provider-rke2/bootstrap/internal/ignition/butane"
bootstrapv1 "github.com/rancher/cluster-api-provider-rke2/bootstrap/api/v1beta1"
"github.com/rancher/cluster-api-provider-rke2/bootstrap/internal/cloudinit"
"github.com/rancher/cluster-api-provider-rke2/bootstrap/internal/ignition/butane"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions bootstrap/internal/ignition/ignition_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ import (
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"

bootstrapv1 "github.com/rancher-sandbox/cluster-api-provider-rke2/bootstrap/api/v1beta1"
"github.com/rancher-sandbox/cluster-api-provider-rke2/bootstrap/internal/cloudinit"
bootstrapv1 "github.com/rancher/cluster-api-provider-rke2/bootstrap/api/v1beta1"
"github.com/rancher/cluster-api-provider-rke2/bootstrap/internal/cloudinit"
)

func TestIgnition(t *testing.T) {
Expand Down
12 changes: 6 additions & 6 deletions bootstrap/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ import (
clusterv1 "sigs.k8s.io/cluster-api/api/v1beta1"
"sigs.k8s.io/cluster-api/util/flags"

bootstrapv1alpha1 "github.com/rancher-sandbox/cluster-api-provider-rke2/bootstrap/api/v1alpha1"
bootstrapv1 "github.com/rancher-sandbox/cluster-api-provider-rke2/bootstrap/api/v1beta1"
"github.com/rancher-sandbox/cluster-api-provider-rke2/bootstrap/internal/controllers"
controlplanev1alpha1 "github.com/rancher-sandbox/cluster-api-provider-rke2/controlplane/api/v1alpha1"
controlplanev1 "github.com/rancher-sandbox/cluster-api-provider-rke2/controlplane/api/v1beta1"
"github.com/rancher-sandbox/cluster-api-provider-rke2/pkg/consts"
bootstrapv1alpha1 "github.com/rancher/cluster-api-provider-rke2/bootstrap/api/v1alpha1"
bootstrapv1 "github.com/rancher/cluster-api-provider-rke2/bootstrap/api/v1beta1"
"github.com/rancher/cluster-api-provider-rke2/bootstrap/internal/controllers"
controlplanev1alpha1 "github.com/rancher/cluster-api-provider-rke2/controlplane/api/v1alpha1"
controlplanev1 "github.com/rancher/cluster-api-provider-rke2/controlplane/api/v1beta1"
"github.com/rancher/cluster-api-provider-rke2/pkg/consts"
)

var (
Expand Down
6 changes: 3 additions & 3 deletions controlplane/PROJECT
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ domain: cluster.x-k8s.io
layout:
- go.kubebuilder.io/v3
projectName: controlplane
repo: github.com/rancher-sandbox/cluster-api-provider-rke2/controlplane
repo: github.com/rancher/cluster-api-provider-rke2/controlplane
resources:
- api:
crdVersion: v1
Expand All @@ -11,7 +11,7 @@ resources:
domain: cluster.x-k8s.io
group: controlplane
kind: Rke2ControlPlane
path: github.com/rancher-sandbox/cluster-api-provider-rke2/controlplane/api/v1alpha1
path: github.com/rancher/cluster-api-provider-rke2/controlplane/api/v1alpha1
version: v1alpha1
webhooks:
defaulting: true
Expand All @@ -23,7 +23,7 @@ resources:
domain: cluster.x-k8s.io
group: controlplane
kind: Rke2ControlPlaneTemplate
path: github.com/rancher-sandbox/cluster-api-provider-rke2/controlplane/api/v1alpha1
path: github.com/rancher/cluster-api-provider-rke2/controlplane/api/v1alpha1
version: v1alpha1
webhooks:
defaulting: true
Expand Down
2 changes: 1 addition & 1 deletion controlplane/api/v1alpha1/conversion.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
apiconversion "k8s.io/apimachinery/pkg/conversion"
utilconversion "sigs.k8s.io/cluster-api/util/conversion"

controlplanev1 "github.com/rancher-sandbox/cluster-api-provider-rke2/controlplane/api/v1beta1"
controlplanev1 "github.com/rancher/cluster-api-provider-rke2/controlplane/api/v1beta1"
"sigs.k8s.io/controller-runtime/pkg/conversion"
)

Expand Down
2 changes: 1 addition & 1 deletion controlplane/api/v1alpha1/conversion_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"k8s.io/apimachinery/pkg/api/apitesting/fuzzer"
"k8s.io/apimachinery/pkg/runtime"

controlplanev1 "github.com/rancher-sandbox/cluster-api-provider-rke2/controlplane/api/v1beta1"
controlplanev1 "github.com/rancher/cluster-api-provider-rke2/controlplane/api/v1beta1"
utilconversion "sigs.k8s.io/cluster-api/util/conversion"
)

Expand Down
2 changes: 1 addition & 1 deletion controlplane/api/v1alpha1/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ limitations under the License.

// Package v1alpha1 contains a v1alpha1 api for controlplane resources.
//
// +k8s:conversion-gen=github.com/rancher-sandbox/cluster-api-provider-rke2/controlplane/api/v1beta1
// +k8s:conversion-gen=github.com/rancher/cluster-api-provider-rke2/controlplane/api/v1beta1
// +k8s:deepcopy-gen=package
package v1alpha1
2 changes: 1 addition & 1 deletion controlplane/api/v1alpha1/rke2controlplane_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (

clusterv1 "sigs.k8s.io/cluster-api/api/v1beta1"

bootstrapv1alpha1 "github.com/rancher-sandbox/cluster-api-provider-rke2/bootstrap/api/v1alpha1"
bootstrapv1alpha1 "github.com/rancher/cluster-api-provider-rke2/bootstrap/api/v1alpha1"
)

const (
Expand Down
6 changes: 3 additions & 3 deletions controlplane/api/v1alpha1/zz_generated.conversion.go

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

2 changes: 1 addition & 1 deletion controlplane/api/v1alpha1/zz_generated.deepcopy.go

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

2 changes: 1 addition & 1 deletion controlplane/api/v1beta1/rke2controlplane_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (

clusterv1 "sigs.k8s.io/cluster-api/api/v1beta1"

bootstrapv1 "github.com/rancher-sandbox/cluster-api-provider-rke2/bootstrap/api/v1beta1"
bootstrapv1 "github.com/rancher/cluster-api-provider-rke2/bootstrap/api/v1beta1"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion controlplane/api/v1beta1/rke2controlplane_webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (
"sigs.k8s.io/controller-runtime/pkg/webhook"
"sigs.k8s.io/controller-runtime/pkg/webhook/admission"

bootstrapv1 "github.com/rancher-sandbox/cluster-api-provider-rke2/bootstrap/api/v1beta1"
bootstrapv1 "github.com/rancher/cluster-api-provider-rke2/bootstrap/api/v1beta1"
)

// log is for logging in this package.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
"sigs.k8s.io/controller-runtime/pkg/webhook"
"sigs.k8s.io/controller-runtime/pkg/webhook/admission"

bootstrapv1 "github.com/rancher-sandbox/cluster-api-provider-rke2/bootstrap/api/v1beta1"
bootstrapv1 "github.com/rancher/cluster-api-provider-rke2/bootstrap/api/v1beta1"
)

// SetupWebhookWithManager sets up the Controller Manager for the Webhook for the RKE2ControlPlaneTemplate resource.
Expand Down
2 changes: 1 addition & 1 deletion controlplane/api/v1beta1/zz_generated.deepcopy.go

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

Loading

0 comments on commit b226680

Please sign in to comment.