diff --git a/build/Dockerfile b/build/Dockerfile index 5008801..2a84f67 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -1,11 +1,11 @@ FROM registry.access.redhat.com/ubi8/ubi-minimal:latest -ENV OPERATOR=/usr/local/bin/k8s-poolprovider \ +ENV OPERATOR=/usr/local/bin/poolprovider-for-k8s \ USER_UID=1001 \ - USER_NAME=k8s-poolprovider + USER_NAME=poolprovider-for-k8s # install operator binary -COPY build/_output/bin/k8s-poolprovider ${OPERATOR} +COPY build/_output/bin/poolprovider-for-k8s ${OPERATOR} COPY build/bin /usr/local/bin RUN /usr/local/bin/user_setup diff --git a/cmd/manager/main.go b/cmd/manager/main.go index f1ec4da..01d5b9b 100644 --- a/cmd/manager/main.go +++ b/cmd/manager/main.go @@ -8,8 +8,8 @@ import ( _ "k8s.io/client-go/plugin/pkg/client/auth" - "github.com/microsoft/k8s-poolprovider/pkg/apis" - "github.com/microsoft/k8s-poolprovider/pkg/controller" + "github.com/microsoft/poolprovider-for-k8s/pkg/apis" + "github.com/microsoft/poolprovider-for-k8s/pkg/controller" "github.com/operator-framework/operator-sdk/pkg/k8sutil" "github.com/operator-framework/operator-sdk/pkg/leader" diff --git a/crd_controller_test.go b/crd_controller_test.go index 866a163..49d4d93 100644 --- a/crd_controller_test.go +++ b/crd_controller_test.go @@ -7,8 +7,8 @@ import ( "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/types" - v1alpha1 "github.com/microsoft/k8s-poolprovider/pkg/apis/dev/v1alpha1" - v1controller "github.com/microsoft/k8s-poolprovider/pkg/controller/azurepipelinespool" + v1alpha1 "github.com/microsoft/poolprovider-for-k8s/pkg/apis/dev/v1alpha1" + v1controller "github.com/microsoft/poolprovider-for-k8s/pkg/controller/azurepipelinespool" appsv1 "k8s.io/api/apps/v1" corev1 "k8s.io/api/core/v1" diff --git a/go.mod b/go.mod index b27ba6d..1334e99 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/microsoft/k8s-poolprovider +module github.com/microsoft/poolprovider-for-k8s go 1.13 diff --git a/helm/k8s-poolprovidercrd/templates/operator.yaml b/helm/k8s-poolprovidercrd/templates/operator.yaml index e4cab15..f91bcf4 100644 --- a/helm/k8s-poolprovidercrd/templates/operator.yaml +++ b/helm/k8s-poolprovidercrd/templates/operator.yaml @@ -17,9 +17,9 @@ spec: containers: - name: k8s-poolprovider # Replace this with the built image name - image: mcr.microsoft.com/azurepipelinespool/k8s-poolprovideroperator:v1.1 + image: prebansa/test:v3 command: - - k8s-poolprovider + - poolprovider-for-k8s imagePullPolicy: Always env: - name: WATCH_NAMESPACE diff --git a/kubernetes-auth.go b/kubernetes-auth.go index 5bb6973..4a0a1d2 100644 --- a/kubernetes-auth.go +++ b/kubernetes-auth.go @@ -4,7 +4,7 @@ import ( "os" "path/filepath" - v1alpha1 "github.com/microsoft/k8s-poolprovider/pkg/apis/dev/v1alpha1" + v1alpha1 "github.com/microsoft/poolprovider-for-k8s/pkg/apis/dev/v1alpha1" v1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/client-go/kubernetes" diff --git a/kubernetes.go b/kubernetes.go index c4aec88..463f2ee 100644 --- a/kubernetes.go +++ b/kubernetes.go @@ -7,7 +7,7 @@ import ( "log" - v1alpha1 "github.com/microsoft/k8s-poolprovider/pkg/apis/dev/v1alpha1" + v1alpha1 "github.com/microsoft/poolprovider-for-k8s/pkg/apis/dev/v1alpha1" "github.com/ghodss/yaml" v1 "k8s.io/api/core/v1" @@ -241,4 +241,4 @@ func AsOwner(m *v1.Pod) metav1.OwnerReference { UID: m.UID, Controller: &falseVar, } -} \ No newline at end of file +} diff --git a/pkg/apis/addtoscheme_dev_v1alpha1.go b/pkg/apis/addtoscheme_dev_v1alpha1.go index 1739726..a8abf38 100644 --- a/pkg/apis/addtoscheme_dev_v1alpha1.go +++ b/pkg/apis/addtoscheme_dev_v1alpha1.go @@ -1,7 +1,7 @@ package apis import ( - "github.com/microsoft/k8s-poolprovider/pkg/apis/dev/v1alpha1" + "github.com/microsoft/poolprovider-for-k8s/pkg/apis/dev/v1alpha1" ) func init() { diff --git a/pkg/controller/add_azurepipelinespool.go b/pkg/controller/add_azurepipelinespool.go index 2468546..db54655 100644 --- a/pkg/controller/add_azurepipelinespool.go +++ b/pkg/controller/add_azurepipelinespool.go @@ -1,7 +1,7 @@ package controller import ( - "github.com/microsoft/k8s-poolprovider/pkg/controller/azurepipelinespool" + "github.com/microsoft/poolprovider-for-k8s/pkg/controller/azurepipelinespool" ) func init() { diff --git a/pkg/controller/azurepipelinespool/azurepipelinespool_controller.go b/pkg/controller/azurepipelinespool/azurepipelinespool_controller.go index 121ecec..b61eef3 100644 --- a/pkg/controller/azurepipelinespool/azurepipelinespool_controller.go +++ b/pkg/controller/azurepipelinespool/azurepipelinespool_controller.go @@ -3,7 +3,7 @@ package azurepipelinespool import ( "context" - devv1alpha1 "github.com/microsoft/k8s-poolprovider/pkg/apis/dev/v1alpha1" + devv1alpha1 "github.com/microsoft/poolprovider-for-k8s/pkg/apis/dev/v1alpha1" appsv1 "k8s.io/api/apps/v1" corev1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/api/errors"