Skip to content

Commit

Permalink
chore: rename pkgs (#51)
Browse files Browse the repository at this point in the history
Signed-off-by: yue9944882 <[email protected]>
  • Loading branch information
yue9944882 authored Jan 13, 2022
1 parent 74b49e9 commit ff1d8df
Show file tree
Hide file tree
Showing 16 changed files with 9 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ test: manifests generate fmt vet ## Run tests.
source ${ENVTEST_ASSETS_DIR}/setup-envtest.sh; \
fetch_envtest_tools $(ENVTEST_ASSETS_DIR); \
setup_envtest_env $(ENVTEST_ASSETS_DIR); \
go test ./pkg/... ./controllers/... -coverprofile cover.out
go test ./pkg/... -coverprofile cover.out

##@ Build

Expand Down
2 changes: 0 additions & 2 deletions cmd/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ RUN go mod download
# Copy the go source
COPY cmd/ cmd/
COPY pkg pkg/
COPY controllers controllers/


# Build addons
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o agent cmd/addon-agent/main.go
Expand Down
2 changes: 1 addition & 1 deletion cmd/addon-agent/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (

"k8s.io/client-go/tools/clientcmd"
"k8s.io/klog/v2"
"open-cluster-management.io/cluster-proxy/pkg/addon/health"
"open-cluster-management.io/cluster-proxy/pkg/common"
"open-cluster-management.io/cluster-proxy/pkg/proxyagent/health"
"open-cluster-management.io/cluster-proxy/pkg/util"
)

Expand Down
6 changes: 3 additions & 3 deletions cmd/addon-manager/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ import (
addonv1alpha1 "open-cluster-management.io/api/addon/v1alpha1"
"open-cluster-management.io/api/client/addon/clientset/versioned"
"open-cluster-management.io/api/client/addon/informers/externalversions"
"open-cluster-management.io/cluster-proxy/controllers"
"open-cluster-management.io/cluster-proxy/pkg/addon/agent"
"open-cluster-management.io/cluster-proxy/pkg/addon/operator/authentication/selfsigned"
proxyv1alpha1 "open-cluster-management.io/cluster-proxy/pkg/apis/proxy/v1alpha1"
"open-cluster-management.io/cluster-proxy/pkg/config"
"open-cluster-management.io/cluster-proxy/pkg/proxyagent/agent"
"open-cluster-management.io/cluster-proxy/pkg/proxyserver/controllers"
"open-cluster-management.io/cluster-proxy/pkg/proxyserver/operator/authentication/selfsigned"
//+kubebuilder:scaffold:imports
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/addon/agent/agent.go → pkg/proxyagent/agent/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ import (
"open-cluster-management.io/addon-framework/pkg/agent"
addonv1alpha1 "open-cluster-management.io/api/addon/v1alpha1"
clusterv1 "open-cluster-management.io/api/cluster/v1"
"open-cluster-management.io/cluster-proxy/pkg/addon/operator/authentication/selfsigned"
proxyv1alpha1 "open-cluster-management.io/cluster-proxy/pkg/apis/proxy/v1alpha1"
"open-cluster-management.io/cluster-proxy/pkg/common"
"open-cluster-management.io/cluster-proxy/pkg/proxyserver/operator/authentication/selfsigned"

"github.com/pkg/errors"
appsv1 "k8s.io/api/apps/v1"
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ import (
"open-cluster-management.io/addon-framework/pkg/certrotation"
addonv1alpha1 "open-cluster-management.io/api/addon/v1alpha1"
addonlister "open-cluster-management.io/api/client/addon/listers/addon/v1alpha1"
"open-cluster-management.io/cluster-proxy/pkg/addon/operator/authentication/selfsigned"
"open-cluster-management.io/cluster-proxy/pkg/addon/operator/eventhandler"
"open-cluster-management.io/cluster-proxy/pkg/proxyserver/operator/authentication/selfsigned"
"open-cluster-management.io/cluster-proxy/pkg/proxyserver/operator/eventhandler"

"github.com/openshift/library-go/pkg/crypto"
"github.com/openshift/library-go/pkg/operator/events"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (

openshiftcrypto "github.com/openshift/library-go/pkg/crypto"
"github.com/stretchr/testify/assert"
"open-cluster-management.io/cluster-proxy/pkg/addon/operator/authentication/selfsigned"
"open-cluster-management.io/cluster-proxy/pkg/apis/proxy/v1alpha1"
"open-cluster-management.io/cluster-proxy/pkg/proxyserver/operator/authentication/selfsigned"
)

func TestEnsureSecretRotation(t *testing.T) {
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit ff1d8df

Please sign in to comment.