-
Notifications
You must be signed in to change notification settings - Fork 344
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into ownership-metric
- Loading branch information
Showing
84 changed files
with
2,657 additions
and
419 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,8 @@ on: | |
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
env: | ||
USER: jaegertracing | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: docker/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,7 +39,7 @@ GOROOT ?= "$(shell go env GOROOT)" | |
ECHO ?= @echo $(echo_prefix) | ||
SED ?= "sed" | ||
CERTMANAGER_VERSION ?= 1.6.1 | ||
OPERATOR_SDK_VERSION ?= 1.13.1 | ||
OPERATOR_SDK_VERSION ?= 1.17.0 | ||
|
||
USE_KIND_CLUSTER ?= true | ||
export OLM ?= false | ||
|
@@ -77,7 +77,7 @@ endif | |
BUNDLE_METADATA_OPTS ?= $(BUNDLE_CHANNELS) $(BUNDLE_DEFAULT_CHANNEL) | ||
|
||
# Produce CRDs that work back to Kubernetes 1.11 (no version conversion) | ||
CRD_OPTIONS ?= "crd:trivialVersions=true,preserveUnknownFields=false,maxDescLen=0,generateEmbeddedObjectMeta=true" | ||
CRD_OPTIONS ?= "crd:maxDescLen=0,generateEmbeddedObjectMeta=true" | ||
|
||
# If we are running in CI, run go test in verbose mode | ||
ifeq (,$(CI)) | ||
|
@@ -95,7 +95,6 @@ check: | |
$(VECHO)[ ! -s "$(FMT_LOG)" ] || (echo "Go fmt, license check, or import ordering failures, run 'make format'" | cat - $(FMT_LOG) && false) | ||
|
||
ensure-generate-is-noop: VERSION=$(OPERATOR_VERSION) | ||
ensure-generate-is-noop: USER=jaegertracing | ||
ensure-generate-is-noop: set-image-controller generate bundle | ||
$(VECHO)# on make bundle config/manager/kustomization.yaml includes changes, which should be ignored for the below check | ||
$(VECHO)git restore config/manager/kustomization.yaml | ||
|
@@ -273,7 +272,7 @@ else | |
endif | ||
|
||
.PHONY: clean | ||
clean: undeploy-kafka undeploy-es-operator undeploy-prometheus-operator undeploy-istio | ||
clean: undeploy-kafka undeploy-prometheus-operator undeploy-istio | ||
$(VECHO)kubectl delete namespace $(KAFKA_NAMESPACE) --ignore-not-found=true 2>&1 || true | ||
$(VECHO)if [ -d tests/_build ]; then rm -rf tests/_build ; fi | ||
$(VECHO)kubectl delete -f ./tests/cassandra.yml --ignore-not-found=true -n $(STORAGE_NAMESPACE) || true | ||
|
@@ -296,13 +295,19 @@ all: check format lint security build test | |
.PHONY: ci | ||
ci: ensure-generate-is-noop check format lint security build unit-tests | ||
|
||
##@ Deployment | ||
|
||
ifndef ignore-not-found | ||
ignore-not-found = false | ||
endif | ||
|
||
.PHONY: install | ||
install: manifests kustomize ## Install CRDs into the K8s cluster specified in ~/.kube/config. | ||
$(KUSTOMIZE) build config/crd | kubectl apply -f - | ||
|
||
.PHONY: uninstall | ||
uninstall: manifests kustomize ## Uninstall CRDs from the K8s cluster specified in ~/.kube/config. | ||
$(KUSTOMIZE) build config/crd | kubectl delete -f - | ||
$(KUSTOMIZE) build config/crd | kubectl delete -ignore-not-found=$(ignore-not-found) -f - | ||
|
||
.PHONY: deploy | ||
deploy: manifests kustomize ## Deploy controller to the K8s cluster specified in ~/.kube/config. | ||
|
@@ -311,7 +316,7 @@ deploy: manifests kustomize ## Deploy controller to the K8s cluster specified in | |
|
||
.PHONY: undeploy | ||
undeploy: ## Undeploy controller from the K8s cluster specified in ~/.kube/config. | ||
$(KUSTOMIZE) build config/default | kubectl delete -f - | ||
$(KUSTOMIZE) build config/default | kubectl delete -ignore-not-found=$(ignore-not-found) -f - | ||
|
||
.PHONY: operatorhub | ||
operatorhub: check-operatorhub-pr-template | ||
|
@@ -325,16 +330,12 @@ check-operatorhub-pr-template: | |
.PHONY: changelog | ||
changelog: | ||
$(ECHO) "Set env variable OAUTH_TOKEN before invoking, https://github.com/settings/tokens/new?description=GitHub%20Changelog%20Generator%20token" | ||
$(VECHO)docker run --rm -v "${PWD}:/app" pavolloffay/gch:latest --oauth-token ${OAUTH_TOKEN} --owner jaegertracing --repo jaeger-operator | ||
$(VECHO)docker run --rm -v "${PWD}:/app" pavolloffay/gch:latest --oauth-token ${OAUTH_TOKEN} --branch main --owner jaegertracing --repo jaeger-operator | ||
|
||
|
||
CONTROLLER_GEN = $(shell pwd)/bin/controller-gen | ||
controller-gen: ## Download controller-gen locally if necessary. | ||
$(call go-get-tool,$(CONTROLLER_GEN),sigs.k8s.io/controller-tools/cmd/[email protected]) | ||
|
||
KUSTOMIZE = $(shell pwd)/bin/kustomize | ||
kustomize: ## Download kustomize locally if necessary. | ||
$(call go-get-tool,$(KUSTOMIZE),sigs.k8s.io/kustomize/kustomize/[email protected]) | ||
$(call go-get-tool,$(CONTROLLER_GEN),sigs.k8s.io/controller-tools/cmd/[email protected]) | ||
|
||
ENVTEST = $(shell pwd)/bin/setup-envtest | ||
envtest: ## Download envtest-setup locally if necessary. | ||
|
@@ -367,7 +368,7 @@ bundle-build: ## Build the bundle image. | |
|
||
.PHONY: bundle-push | ||
bundle-push: ## Push the bundle image. | ||
$(MAKE) docker-push IMG=$(BUNDLE_IMG) | ||
docker push $(BUNDLE_IMG) | ||
|
||
.PHONY: opm | ||
OPM = ./bin/opm | ||
|
@@ -442,43 +443,11 @@ release-artifacts: set-image-controller | |
mkdir -p dist | ||
$(KUSTOMIZE) build config/default -o dist/jaeger-operator.yaml | ||
|
||
|
||
kuttl: | ||
ifeq (, $(shell which kubectl-kuttl)) | ||
echo ${PATH} | ||
ls -l /usr/local/bin | ||
which kubectl-kuttl | ||
|
||
@{ \ | ||
set -e ;\ | ||
echo "" ;\ | ||
echo "ERROR: kuttl not found." ;\ | ||
echo "Please check https://kuttl.dev/docs/cli.html for installation instructions and try again." ;\ | ||
echo "" ;\ | ||
exit 1 ;\ | ||
} | ||
else | ||
KUTTL=$(shell which kubectl-kuttl) | ||
endif | ||
|
||
# Set the controller image parameters | ||
set-image-controller: manifests kustomize | ||
cd config/manager && $(KUSTOMIZE) edit set image controller=${IMG} | ||
|
||
kind: | ||
ifeq (, $(shell which kind)) | ||
@{ \ | ||
set -e ;\ | ||
echo "" ;\ | ||
echo "ERROR: KIND not found." ;\ | ||
echo "Please check https://kind.sigs.k8s.io/docs/user/quick-start/#installation for installation instructions and try again." ;\ | ||
echo "" ;\ | ||
exit 1 ;\ | ||
} | ||
else | ||
KIND=$(shell which kind) | ||
endif | ||
|
||
.PHONY: tools | ||
tools: kustomize controller-gen operator-sdk | ||
|
||
.PHONY: install-tools | ||
|
@@ -487,7 +456,21 @@ install-tools: operator-sdk | |
golang.org/x/lint/golint \ | ||
golang.org/x/tools/cmd/goimports \ | ||
github.com/securego/gosec/cmd/[email protected] | ||
$(VECHO)./.ci/install-gomplate.sh | ||
|
||
.PHONY: kustomize | ||
kustomize: | ||
./hack/install/install-kustomize.sh | ||
$(eval KUSTOMIZE=$(shell echo ${PWD}/bin/kustomize)) | ||
|
||
.PHONY: kuttl | ||
kuttl: | ||
./hack/install/install-kuttl.sh | ||
$(eval KUTTL=$(shell echo ${PWD}/bin/kubectl-kuttl)) | ||
|
||
.PHONY: kind | ||
kind: | ||
./hack/install/install-kind.sh | ||
$(eval KIND=$(shell echo ${PWD}/bin/kind)) | ||
|
||
.PHONY: prepare-release | ||
prepare-release: | ||
|
Oops, something went wrong.