diff --git a/.gitignore b/.gitignore index 81b4466..6a64382 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ .idea -rollouts-contour-trafficrouter-plugin \ No newline at end of file +rollouts-plugin-trafficrouter-contour \ No newline at end of file diff --git a/Makefile b/Makefile index e8b3673..ea81f50 100644 --- a/Makefile +++ b/Makefile @@ -4,4 +4,4 @@ go_lint: .PHONY: build build: - CGO_ENABLED=0 GOOS=linux GOARCH=$(TARGETARCH) go build -o rollouts-contour-trafficrouter-plugin ./ + CGO_ENABLED=0 GOOS=linux GOARCH=$(TARGETARCH) go build -o rollouts-plugin-trafficrouter-contour ./ diff --git a/go.mod b/go.mod index 53d8d87..6005a02 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/argoproj-labs/rollouts-contour-trafficrouter-plugin +module github.com/argoproj-labs/rollouts-plugin-trafficrouter-contour go 1.19 diff --git a/main.go b/main.go index 8a4ec28..4ae3d68 100644 --- a/main.go +++ b/main.go @@ -1,8 +1,8 @@ package main import ( - "github.com/argoproj-labs/rollouts-contour-trafficrouter-plugin/pkg/plugin" - "github.com/argoproj-labs/rollouts-contour-trafficrouter-plugin/pkg/utils" + "github.com/argoproj-labs/rollouts-plugin-trafficrouter-contour/pkg/plugin" + "github.com/argoproj-labs/rollouts-plugin-trafficrouter-contour/pkg/utils" rolloutsPlugin "github.com/argoproj/argo-rollouts/rollout/trafficrouting/plugin/rpc" goPlugin "github.com/hashicorp/go-plugin" diff --git a/pkg/plugin/plugin.go b/pkg/plugin/plugin.go index 792e460..f6dbaaa 100644 --- a/pkg/plugin/plugin.go +++ b/pkg/plugin/plugin.go @@ -6,7 +6,7 @@ import ( "errors" "fmt" - "github.com/argoproj-labs/rollouts-contour-trafficrouter-plugin/pkg/utils" + "github.com/argoproj-labs/rollouts-plugin-trafficrouter-contour/pkg/utils" "github.com/argoproj/argo-rollouts/pkg/apis/rollouts/v1alpha1" pluginTypes "github.com/argoproj/argo-rollouts/utils/plugin/types" diff --git a/pkg/plugin/plugin_test.go b/pkg/plugin/plugin_test.go index fee4b92..04baad6 100644 --- a/pkg/plugin/plugin_test.go +++ b/pkg/plugin/plugin_test.go @@ -7,8 +7,8 @@ import ( "testing" "time" - "github.com/argoproj-labs/rollouts-contour-trafficrouter-plugin/pkg/mocks" - "github.com/argoproj-labs/rollouts-contour-trafficrouter-plugin/pkg/utils" + "github.com/argoproj-labs/rollouts-plugin-trafficrouter-contour/pkg/mocks" + "github.com/argoproj-labs/rollouts-plugin-trafficrouter-contour/pkg/utils" "github.com/argoproj/argo-rollouts/pkg/apis/rollouts/v1alpha1" rolloutsPlugin "github.com/argoproj/argo-rollouts/rollout/trafficrouting/plugin/rpc" diff --git a/yaml/rbac.yaml b/yaml/rbac.yaml index 7ddbfcc..2f55764 100644 --- a/yaml/rbac.yaml +++ b/yaml/rbac.yaml @@ -1,7 +1,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: - name: rollouts-contour-trafficrouter-plugin + name: rollouts-plugin-trafficrouter-contour rules: - verbs: - get @@ -17,7 +17,7 @@ rules: apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: - name: rollouts-contour-trafficrouter-plugin + name: rollouts-plugin-trafficrouter-contour labels: app.kubernetes.io/component: rollouts-controller app.kubernetes.io/name: argo-rollouts @@ -29,4 +29,4 @@ subjects: roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole - name: rollouts-contour-trafficrouter-plugin + name: rollouts-plugin-trafficrouter-contour