diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 1e94203..c4e71bb 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -8,7 +8,7 @@ on: - v* env: - REGISTRY_NAME: ghcr.io/leaseweb + REGISTRY_NAME: ghcr.io/shapeblue IMAGES: "cloudstack-csi-driver cloudstack-csi-sc-syncer" jobs: diff --git a/.golangci.yml b/.golangci.yml index a8b3ace..5399b8e 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -13,9 +13,9 @@ linters-settings: sections: - standard - default - - prefix(github.com/leaseweb/cloudstack-csi-driver) + - prefix(github.com/shapeblue/cloudstack-csi-driver) goimports: - local-prefixes: github.com/leaseweb/cloudstack-csi-driver + local-prefixes: github.com/shapeblue/cloudstack-csi-driver misspell: locale: US diff --git a/Makefile b/Makefile index 1752fd1..7c64ee1 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ CMDS=cloudstack-csi-driver cloudstack-csi-sc-syncer -PKG=github.com/leaseweb/cloudstack-csi-driver +PKG=github.com/shapeblue/cloudstack-csi-driver # Revision that gets built into each binary via the main.version # string. Uses the `git describe` output based on the most recent # version tag with a short revision suffix or, if nothing has been diff --git a/README.md b/README.md index abfb2e0..ec26b4f 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ # CloudStack CSI Driver -[![Go Reference](https://pkg.go.dev/badge/github.com/leaseweb/cloudstack-csi-driver.svg)](https://pkg.go.dev/github.com/leaseweb/cloudstack-csi-driver) -[![Go Report Card](https://goreportcard.com/badge/github.com/leaseweb/cloudstack-csi-driver)](https://goreportcard.com/report/github.com/leaseweb/cloudstack-csi-driver) -[![Release](https://github.com/leaseweb/cloudstack-csi-driver/workflows/Release/badge.svg?branch=master)](https://github.com/leaseweb/cloudstack-csi-driver/actions) +[![Go Reference](https://pkg.go.dev/badge/github.com/shapeblue/cloudstack-csi-driver.svg)](https://pkg.go.dev/github.com/shapeblue/cloudstack-csi-driver) +[![Go Report Card](https://goreportcard.com/badge/github.com/shapeblue/cloudstack-csi-driver)](https://goreportcard.com/report/github.com/shapeblue/cloudstack-csi-driver) +[![Release](https://github.com/shapeblue/cloudstack-csi-driver/workflows/Release/badge.svg?branch=master)](https://github.com/shapeblue/cloudstack-csi-driver/actions) This repository provides a [Container Storage Interface (CSI)](https://github.com/container-storage-interface/spec) plugin for [Apache CloudStack](https://cloudstack.apache.org/). @@ -56,7 +56,7 @@ you may use the same secret for both tools. ### Deployment ``` -kubectl apply -f https://github.com/leaseweb/cloudstack-csi-driver/releases/latest/download/manifest.yaml +kubectl apply -f https://github.com/shapeblue/cloudstack-csi-driver/releases/latest/download/manifest.yaml ``` ### Creation of Storage classes diff --git a/charts/cloudstack-csi/Chart.yaml b/charts/cloudstack-csi/Chart.yaml index c763fec..af3e07f 100644 --- a/charts/cloudstack-csi/Chart.yaml +++ b/charts/cloudstack-csi/Chart.yaml @@ -5,7 +5,7 @@ type: application version: 2.0.2 appVersion: 0.6.1 sources: - - https://github.com/Leaseweb/cloudstack-csi-driver + - https://github.com/shapeblue/cloudstack-csi-driver keywords: - csi - cloudStack diff --git a/charts/cloudstack-csi/values.yaml b/charts/cloudstack-csi/values.yaml index c733046..cfbc3b4 100644 --- a/charts/cloudstack-csi/values.yaml +++ b/charts/cloudstack-csi/values.yaml @@ -135,7 +135,7 @@ sidecars: controller: enabled: true image: - repository: ghcr.io/leaseweb/cloudstack-csi-driver + repository: ghcr.io/shapeblue/cloudstack-csi-driver # Overrides the image tag whose default is v{{ .Chart.AppVersion }} tag: "" pullPolicy: IfNotPresent @@ -241,7 +241,7 @@ controller: node: enabled: true image: - repository: ghcr.io/leaseweb/cloudstack-csi-driver + repository: ghcr.io/shapeblue/cloudstack-csi-driver # Overrides the image tag whose default is v{{ .Chart.AppVersion }} tag: "" pullPolicy: IfNotPresent @@ -323,7 +323,7 @@ syncer: enabled: true # Job image image: - repository: "ghcr.io/leaseweb/cloudstack-csi-sc-syncer" + repository: "ghcr.io/shapeblue/cloudstack-csi-sc-syncer" # Overrides the image tag. Default is {{ .Chart.AppVersion }} tag: "" imagePullPolicy: IfNotPresent diff --git a/cmd/cloudstack-csi-driver/Dockerfile b/cmd/cloudstack-csi-driver/Dockerfile index 394cd8d..4c260e8 100644 --- a/cmd/cloudstack-csi-driver/Dockerfile +++ b/cmd/cloudstack-csi-driver/Dockerfile @@ -2,7 +2,7 @@ FROM alpine:3.18 LABEL \ org.opencontainers.image.description="CloudStack CSI driver" \ - org.opencontainers.image.source="https://github.com/leaseweb/cloudstack-csi-driver/" + org.opencontainers.image.source="https://github.com/shapeblue/cloudstack-csi-driver/" RUN apk add --no-cache \ ca-certificates \ diff --git a/cmd/cloudstack-csi-driver/main.go b/cmd/cloudstack-csi-driver/main.go index 39793cc..02d5732 100644 --- a/cmd/cloudstack-csi-driver/main.go +++ b/cmd/cloudstack-csi-driver/main.go @@ -18,8 +18,8 @@ import ( "k8s.io/component-base/logs/json" "k8s.io/klog/v2" - "github.com/leaseweb/cloudstack-csi-driver/pkg/cloud" - "github.com/leaseweb/cloudstack-csi-driver/pkg/driver" + "github.com/shapeblue/cloudstack-csi-driver/pkg/cloud" + "github.com/shapeblue/cloudstack-csi-driver/pkg/driver" ) func main() { diff --git a/cmd/cloudstack-csi-sc-syncer/Dockerfile b/cmd/cloudstack-csi-sc-syncer/Dockerfile index 39ff16f..2bdd8a1 100644 --- a/cmd/cloudstack-csi-sc-syncer/Dockerfile +++ b/cmd/cloudstack-csi-sc-syncer/Dockerfile @@ -2,7 +2,7 @@ FROM alpine:3.18 LABEL \ org.opencontainers.image.description="CloudStack disk offering to Kubernetes storage class syncer" \ - org.opencontainers.image.source="https://github.com/leaseweb/cloudstack-csi-driver/" + org.opencontainers.image.source="https://github.com/shapeblue/cloudstack-csi-driver/" RUN apk add --no-cache ca-certificates diff --git a/cmd/cloudstack-csi-sc-syncer/README.md b/cmd/cloudstack-csi-sc-syncer/README.md index 8dab035..7935a5b 100644 --- a/cmd/cloudstack-csi-sc-syncer/README.md +++ b/cmd/cloudstack-csi-sc-syncer/README.md @@ -20,7 +20,7 @@ You may use it locally or as a Kubernetes Job. You must have a CloudStack configuration file and a Kubernetes `kubeconfig` file. -1. Download `cloudstack-csi-sc-syncer` from [latest release](https://github.com/leaseweb/cloudstack-csi-driver/releases/latest/); +1. Download `cloudstack-csi-sc-syncer` from [latest release](https://github.com/shapeblue/cloudstack-csi-driver/releases/latest/); 1. Set the execution permission: @@ -85,7 +85,7 @@ spec: serviceAccountName: cloudstack-csi-sc-syncer containers: - name: cloudstack-csi-sc-syncer - image: ghcr.io/leaseweb/cloudstack-csi-sc-syncer:${version} + image: ghcr.io/shapeblue/cloudstack-csi-sc-syncer:${version} args: - "-cloudstackconfig=/etc/cloudstack-csi-driver/cloud-config" - "-kubeconfig=-" diff --git a/cmd/cloudstack-csi-sc-syncer/main.go b/cmd/cloudstack-csi-sc-syncer/main.go index 4cf3884..912bc2b 100644 --- a/cmd/cloudstack-csi-sc-syncer/main.go +++ b/cmd/cloudstack-csi-sc-syncer/main.go @@ -10,7 +10,7 @@ import ( "os" "path" - "github.com/leaseweb/cloudstack-csi-driver/pkg/syncer" + "github.com/shapeblue/cloudstack-csi-driver/pkg/syncer" ) const agent = "cloudstack-csi-sc-syncer" diff --git a/go.mod b/go.mod index d0777e9..84aa4cf 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/leaseweb/cloudstack-csi-driver +module github.com/shapeblue/cloudstack-csi-driver go 1.21 diff --git a/pkg/cloud/fake/fake.go b/pkg/cloud/fake/fake.go index a9db626..23218bc 100644 --- a/pkg/cloud/fake/fake.go +++ b/pkg/cloud/fake/fake.go @@ -7,8 +7,8 @@ import ( "github.com/hashicorp/go-uuid" - "github.com/leaseweb/cloudstack-csi-driver/pkg/cloud" - "github.com/leaseweb/cloudstack-csi-driver/pkg/util" + "github.com/shapeblue/cloudstack-csi-driver/pkg/cloud" + "github.com/shapeblue/cloudstack-csi-driver/pkg/util" ) const zoneID = "a1887604-237c-4212-a9cd-94620b7880fa" diff --git a/pkg/cloud/volumes.go b/pkg/cloud/volumes.go index f367796..831cdec 100644 --- a/pkg/cloud/volumes.go +++ b/pkg/cloud/volumes.go @@ -9,7 +9,7 @@ import ( "github.com/apache/cloudstack-go/v2/cloudstack" "k8s.io/klog/v2" - "github.com/leaseweb/cloudstack-csi-driver/pkg/util" + "github.com/shapeblue/cloudstack-csi-driver/pkg/util" ) func (c *client) listVolumes(p *cloudstack.ListVolumesParams) (*Volume, error) { diff --git a/pkg/driver/controller.go b/pkg/driver/controller.go index 8cf8765..70dffa3 100644 --- a/pkg/driver/controller.go +++ b/pkg/driver/controller.go @@ -12,8 +12,8 @@ import ( "google.golang.org/grpc/status" "k8s.io/klog/v2" - "github.com/leaseweb/cloudstack-csi-driver/pkg/cloud" - "github.com/leaseweb/cloudstack-csi-driver/pkg/util" + "github.com/shapeblue/cloudstack-csi-driver/pkg/cloud" + "github.com/shapeblue/cloudstack-csi-driver/pkg/util" ) // onlyVolumeCapAccessMode is the only volume capability access diff --git a/pkg/driver/driver.go b/pkg/driver/driver.go index 839574e..2d0f59b 100644 --- a/pkg/driver/driver.go +++ b/pkg/driver/driver.go @@ -12,9 +12,9 @@ import ( "google.golang.org/grpc" "k8s.io/klog/v2" - "github.com/leaseweb/cloudstack-csi-driver/pkg/cloud" - "github.com/leaseweb/cloudstack-csi-driver/pkg/mount" - "github.com/leaseweb/cloudstack-csi-driver/pkg/util" + "github.com/shapeblue/cloudstack-csi-driver/pkg/cloud" + "github.com/shapeblue/cloudstack-csi-driver/pkg/mount" + "github.com/shapeblue/cloudstack-csi-driver/pkg/util" ) // Interface is the CloudStack CSI driver interface. diff --git a/pkg/driver/node.go b/pkg/driver/node.go index 6050af8..8fd3f29 100644 --- a/pkg/driver/node.go +++ b/pkg/driver/node.go @@ -13,9 +13,9 @@ import ( "google.golang.org/grpc/status" "k8s.io/klog/v2" - "github.com/leaseweb/cloudstack-csi-driver/pkg/cloud" - "github.com/leaseweb/cloudstack-csi-driver/pkg/mount" - "github.com/leaseweb/cloudstack-csi-driver/pkg/util" + "github.com/shapeblue/cloudstack-csi-driver/pkg/cloud" + "github.com/shapeblue/cloudstack-csi-driver/pkg/mount" + "github.com/shapeblue/cloudstack-csi-driver/pkg/util" ) const ( diff --git a/pkg/syncer/run.go b/pkg/syncer/run.go index b81affb..8216a0b 100644 --- a/pkg/syncer/run.go +++ b/pkg/syncer/run.go @@ -13,7 +13,7 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/labels" - "github.com/leaseweb/cloudstack-csi-driver/pkg/driver" + "github.com/shapeblue/cloudstack-csi-driver/pkg/driver" ) var ( diff --git a/pkg/syncer/syncer.go b/pkg/syncer/syncer.go index 9a4fea2..ddc0f8a 100644 --- a/pkg/syncer/syncer.go +++ b/pkg/syncer/syncer.go @@ -15,7 +15,7 @@ import ( "k8s.io/client-go/rest" "k8s.io/client-go/tools/clientcmd" - "github.com/leaseweb/cloudstack-csi-driver/pkg/cloud" + "github.com/shapeblue/cloudstack-csi-driver/pkg/cloud" ) // Config holds the syncer tool configuration. diff --git a/test/sanity/sanity_test.go b/test/sanity/sanity_test.go index 2a6780b..c1ad0d0 100644 --- a/test/sanity/sanity_test.go +++ b/test/sanity/sanity_test.go @@ -5,15 +5,16 @@ package sanity import ( "context" "io/ioutil" - "k8s.io/klog/v2" "os" "path/filepath" "testing" + "k8s.io/klog/v2" + "github.com/kubernetes-csi/csi-test/v5/pkg/sanity" - "github.com/leaseweb/cloudstack-csi-driver/pkg/cloud/fake" - "github.com/leaseweb/cloudstack-csi-driver/pkg/driver" - "github.com/leaseweb/cloudstack-csi-driver/pkg/mount" + "github.com/shapeblue/cloudstack-csi-driver/pkg/cloud/fake" + "github.com/shapeblue/cloudstack-csi-driver/pkg/driver" + "github.com/shapeblue/cloudstack-csi-driver/pkg/mount" ) func TestSanity(t *testing.T) {