diff --git a/Makefile b/Makefile index 565af06..4976bde 100644 --- a/Makefile +++ b/Makefile @@ -19,15 +19,15 @@ test: ## Run test suite test/coverage: ## Run test suite with coverage report go test -v ./... -cover -build: ## Build operator Docker image +build/operator: ## Build operator Docker image @docker build -f operator/Dockerfile --build-arg operator_version=$(curVersion) -t $(DOCKER_IMG_TAG) . @echo "Successfully built and tagged image." @echo "Tag: $(DOCKER_IMG_TAG)" -build/local: ## Build local version of the operator Docker image +build/operator/local: ## Build local version of the operator Docker image @docker build -f operator/Dockerfile -t local/$(DOCKER_IMG_TAG) . -build/binary: clean ## Build operator binary +build/operator/binary: clean ## Build operator binary @mkdir -p dist @go build -mod vendor -a -o manager ./operator/cmd/manager/main.go @mv manager ./dist diff --git a/README.md b/README.md index e50a3c4..c315209 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ The 1Password Connect Kubernetes Operator also allows for Kubernetes Secrets to The 1Password Connect Kubernetes Operator will continually check for updates from 1Password for any Kubernetes Secret that it has generated. If a Kubernetes Secret is updated, any Deployment using that secret can be automatically restarted. -[Click here for more details on the 1Password Kubernetes Operator](https://github.com/1Password/onepassword-operator/operator) +[Click here for more details on the 1Password Kubernetes Operator](operator/README.md) # Security diff --git a/operator/Dockerfile b/operator/Dockerfile index e311c51..0792cbf 100644 --- a/operator/Dockerfile +++ b/operator/Dockerfile @@ -16,7 +16,7 @@ ARG operator_version=dev RUN CGO_ENABLED=0 \ GO111MODULE=on \ go build \ - -ldflags "-X \"github.com/1Password/onepassword-operator/version.Version=$operator_version\"" \ + -ldflags "-X \"github.com/1Password/onepassword-operator/operator/version.Version=$operator_version\"" \ -mod vendor \ -a -o manager operator/main.go