2021-07-20 22:59:48 +03:00
|
|
|
SHELL = /bin/bash
|
2022-02-03 19:45:04 +03:00
|
|
|
TAG ?= $(shell git describe --exact-match 2>/dev/null)
|
2021-04-15 20:53:44 +03:00
|
|
|
COMMIT = $(shell git rev-parse --short=7 HEAD)$(shell [[ $$(git status --porcelain) = "" ]] || echo -dirty)
|
2023-04-06 05:11:27 +03:00
|
|
|
ARO_IMAGE_BASE = ${RP_IMAGE_ACR}.azurecr.io/aro
|
2022-11-04 13:56:19 +03:00
|
|
|
E2E_FLAGS ?= -test.v --ginkgo.v --ginkgo.timeout 180m --ginkgo.flake-attempts=2 --ginkgo.junit-report=e2e-report.xml
|
2024-01-04 02:52:09 +03:00
|
|
|
GO_FLAGS ?= -tags=containers_image_openpgp,exclude_graphdriver_btrfs,exclude_graphdriver_devicemapper
|
2024-03-20 14:24:18 +03:00
|
|
|
NO_CACHE ?= true
|
2023-07-13 06:04:39 +03:00
|
|
|
|
|
|
|
export GOFLAGS=$(GO_FLAGS)
|
2019-11-30 16:51:47 +03:00
|
|
|
|
2021-06-16 00:39:42 +03:00
|
|
|
# fluentbit version must also be updated in RP code, see pkg/util/version/const.go
|
2023-03-30 06:42:59 +03:00
|
|
|
MARINER_VERSION = 20230321
|
2023-03-06 03:55:01 +03:00
|
|
|
FLUENTBIT_VERSION = 1.9.10
|
2023-04-06 05:11:27 +03:00
|
|
|
FLUENTBIT_IMAGE ?= ${RP_IMAGE_ACR}.azurecr.io/fluentbit:$(FLUENTBIT_VERSION)-cm$(MARINER_VERSION)
|
2023-05-02 06:36:41 +03:00
|
|
|
AUTOREST_VERSION = 3.6.3
|
2023-04-06 05:11:27 +03:00
|
|
|
AUTOREST_IMAGE = quay.io/openshift-on-azure/autorest:${AUTOREST_VERSION}
|
2023-07-14 13:22:33 +03:00
|
|
|
GATEKEEPER_VERSION = v3.10.0
|
2023-05-30 04:38:48 +03:00
|
|
|
GATEKEEPER_IMAGE ?= ${RP_IMAGE_ACR}.azurecr.io/gatekeeper:$(GATEKEEPER_VERSION)
|
2024-02-20 05:55:31 +03:00
|
|
|
GOTESTSUM = gotest.tools/gotestsum@v1.11.0
|
2021-06-16 00:39:42 +03:00
|
|
|
|
2020-11-12 21:45:31 +03:00
|
|
|
ifneq ($(shell uname -s),Darwin)
|
|
|
|
export CGO_CFLAGS=-Dgpgme_off_t=off_t
|
|
|
|
endif
|
2020-08-10 15:25:30 +03:00
|
|
|
|
2022-02-22 18:44:43 +03:00
|
|
|
ifeq ($(TAG),)
|
|
|
|
VERSION = $(COMMIT)
|
|
|
|
else
|
|
|
|
VERSION = $(TAG)
|
|
|
|
endif
|
|
|
|
|
2022-06-24 21:40:13 +03:00
|
|
|
# default to registry.access.redhat.com for build images on local builds and CI builds without $RP_IMAGE_ACR set.
|
|
|
|
ifeq ($(RP_IMAGE_ACR),arointsvc)
|
|
|
|
REGISTRY = arointsvc.azurecr.io
|
|
|
|
else ifeq ($(RP_IMAGE_ACR),arosvc)
|
|
|
|
REGISTRY = arosvc.azurecr.io
|
|
|
|
else ifeq ($(RP_IMAGE_ACR),)
|
|
|
|
REGISTRY = registry.access.redhat.com
|
|
|
|
else
|
|
|
|
REGISTRY = $(RP_IMAGE_ACR)
|
|
|
|
endif
|
|
|
|
|
2022-02-22 18:44:43 +03:00
|
|
|
ARO_IMAGE ?= $(ARO_IMAGE_BASE):$(VERSION)
|
|
|
|
|
2022-12-07 22:10:28 +03:00
|
|
|
check-release:
|
2023-02-01 15:49:10 +03:00
|
|
|
# Check that VERSION is a valid tag when building an official release (when RELEASE=true).
|
|
|
|
ifeq ($(RELEASE), true)
|
2022-12-07 22:10:28 +03:00
|
|
|
ifeq ($(TAG), $(VERSION))
|
|
|
|
@echo Building release version $(VERSION)
|
|
|
|
else
|
|
|
|
$(error $(shell git describe --exact-match) Ensure there is an annotated tag (git tag -a) for git commit $(COMMIT))
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2021-06-01 16:23:55 +03:00
|
|
|
build-all:
|
2023-07-13 06:04:39 +03:00
|
|
|
go build ./...
|
2021-06-01 16:23:55 +03:00
|
|
|
|
2022-12-07 22:10:28 +03:00
|
|
|
aro: check-release generate
|
2023-07-13 06:04:39 +03:00
|
|
|
go build -ldflags "-X github.com/Azure/ARO-RP/pkg/util/version.GitCommit=$(VERSION)" ./cmd/aro
|
2021-08-26 17:17:38 +03:00
|
|
|
|
|
|
|
runlocal-rp:
|
2023-07-13 06:04:39 +03:00
|
|
|
go run -ldflags "-X github.com/Azure/ARO-RP/pkg/util/version.GitCommit=$(VERSION)" ./cmd/aro rp
|
2019-11-18 09:24:26 +03:00
|
|
|
|
2020-10-08 03:20:20 +03:00
|
|
|
az: pyenv
|
|
|
|
. pyenv/bin/activate && \
|
|
|
|
cd python/az/aro && \
|
2021-05-05 23:19:29 +03:00
|
|
|
python3 ./setup.py bdist_egg && \
|
|
|
|
python3 ./setup.py bdist_wheel || true && \
|
2021-08-16 15:44:58 +03:00
|
|
|
rm -f ~/.azure/commandIndex.json # https://github.com/Azure/azure-cli/issues/14997
|
2019-12-13 21:09:53 +03:00
|
|
|
|
2019-11-18 09:24:26 +03:00
|
|
|
clean:
|
2019-12-22 20:47:29 +03:00
|
|
|
rm -rf python/az/aro/{aro.egg-info,build,dist} aro
|
2019-12-13 21:09:53 +03:00
|
|
|
find python -type f -name '*.pyc' -delete
|
|
|
|
find python -type d -name __pycache__ -delete
|
2022-02-10 20:08:55 +03:00
|
|
|
find -type d -name 'gomock_reflect_[0-9]*' -exec rm -rf {} \+ 2>/dev/null
|
2019-11-18 09:24:26 +03:00
|
|
|
|
2019-12-11 15:06:19 +03:00
|
|
|
client: generate
|
2024-02-29 20:37:28 +03:00
|
|
|
hack/build-client.sh "${AUTOREST_IMAGE}" 2020-04-30 2021-09-01-preview 2022-04-01 2022-09-04 2023-04-01 2023-07-01-preview 2023-09-04 2023-11-22 2024-08-12-preview
|
2019-12-03 14:33:55 +03:00
|
|
|
|
2024-03-20 14:24:18 +03:00
|
|
|
ci-portal:
|
|
|
|
docker build . -f Dockerfile.ci-portal --build-arg REGISTRY=$(REGISTRY) --no-cache=$(NO_CACHE)
|
|
|
|
|
2021-03-09 00:02:45 +03:00
|
|
|
# TODO: hard coding dev-config.yaml is clunky; it is also probably convenient to
|
|
|
|
# override COMMIT.
|
|
|
|
deploy:
|
2023-07-13 06:04:39 +03:00
|
|
|
go run -ldflags "-X github.com/Azure/ARO-RP/pkg/util/version.GitCommit=$(VERSION)" ./cmd/aro deploy dev-config.yaml ${LOCATION}
|
2021-03-09 00:02:45 +03:00
|
|
|
|
2021-03-11 02:42:48 +03:00
|
|
|
dev-config.yaml:
|
|
|
|
go run ./hack/gendevconfig >dev-config.yaml
|
|
|
|
|
2020-10-03 00:42:23 +03:00
|
|
|
discoverycache:
|
|
|
|
$(MAKE) admin.kubeconfig
|
|
|
|
KUBECONFIG=admin.kubeconfig go run ./hack/gendiscoverycache
|
|
|
|
$(MAKE) generate
|
|
|
|
|
2019-12-11 15:06:19 +03:00
|
|
|
generate:
|
|
|
|
go generate ./...
|
|
|
|
|
2024-02-20 06:03:07 +03:00
|
|
|
# TODO: This does not work outside of GOROOT. We should replace all usage of the
|
|
|
|
# clientset with controller-runtime so we don't need to generate it.
|
|
|
|
generate-operator-apiclient:
|
|
|
|
go run ./vendor/k8s.io/code-generator/cmd/client-gen --clientset-name versioned --input-base ./pkg/operator/apis --input aro.openshift.io/v1alpha1,preview.aro.openshift.io/v1alpha1 --output-package ./pkg/operator/clientset --go-header-file ./hack/licenses/boilerplate.go.txt
|
|
|
|
gofmt -s -w ./pkg/operator/clientset
|
|
|
|
go run ./vendor/golang.org/x/tools/cmd/goimports -local=github.com/Azure/ARO-RP -e -w ./pkg/operator/clientset ./pkg/operator/apis
|
|
|
|
|
2023-07-18 07:04:40 +03:00
|
|
|
generate-guardrails:
|
|
|
|
cd pkg/operator/controllers/guardrails/policies && ./scripts/generate.sh > /dev/null
|
|
|
|
|
2023-08-25 05:21:10 +03:00
|
|
|
generate-kiota:
|
|
|
|
kiota generate --clean-output -l go -o ./pkg/util/graph/graphsdk -n "github.com/Azure/ARO-RP/pkg/util/graph/graphsdk" -d hack/graphsdk/openapi.yaml -c GraphBaseServiceClient --additional-data=False --backing-store=True
|
|
|
|
find ./pkg/util/graph/graphsdk -type f -name "*.go" -exec sed -i'' -e 's\github.com/azure/aro-rp\github.com/Azure/ARO-RP\g' {} +
|
|
|
|
gofmt -s -w pkg/util/graph/graphsdk
|
|
|
|
go run ./vendor/golang.org/x/tools/cmd/goimports -w -local=github.com/Azure/ARO-RP pkg/util/graph/graphsdk
|
|
|
|
go run ./hack/validate-imports pkg/util/graph/graphsdk
|
|
|
|
go run ./hack/licenses -dirs ./pkg/util/graph/graphsdk
|
|
|
|
|
2024-03-25 22:48:08 +03:00
|
|
|
init-contrib:
|
|
|
|
cp -R hack/git/hooks/* .git/hooks/
|
|
|
|
|
2021-03-10 00:13:26 +03:00
|
|
|
image-aro-multistage:
|
2022-08-30 07:05:49 +03:00
|
|
|
docker build --platform=linux/amd64 --network=host --no-cache -f Dockerfile.aro-multistage -t $(ARO_IMAGE) --build-arg REGISTRY=$(REGISTRY) .
|
2021-03-10 00:13:26 +03:00
|
|
|
|
2021-08-13 19:47:17 +03:00
|
|
|
image-autorest:
|
2023-04-06 05:11:27 +03:00
|
|
|
docker build --platform=linux/amd64 --network=host --no-cache --build-arg AUTOREST_VERSION="${AUTOREST_VERSION}" --build-arg REGISTRY=$(REGISTRY) -f Dockerfile.autorest -t ${AUTOREST_IMAGE} .
|
2021-08-13 19:47:17 +03:00
|
|
|
|
2020-02-28 07:04:37 +03:00
|
|
|
image-fluentbit:
|
2023-03-30 06:42:59 +03:00
|
|
|
docker build --platform=linux/amd64 --network=host --build-arg VERSION=$(FLUENTBIT_VERSION) --build-arg MARINER_VERSION=$(MARINER_VERSION) -f Dockerfile.fluentbit -t $(FLUENTBIT_IMAGE) .
|
2020-02-28 07:04:37 +03:00
|
|
|
|
2023-03-15 02:29:57 +03:00
|
|
|
image-proxy:
|
2022-06-24 21:40:13 +03:00
|
|
|
docker pull $(REGISTRY)/ubi8/ubi-minimal
|
2022-08-30 07:05:49 +03:00
|
|
|
docker build --platform=linux/amd64 --no-cache -f Dockerfile.proxy -t $(REGISTRY)/proxy:latest --build-arg REGISTRY=$(REGISTRY) .
|
2020-03-09 17:40:34 +03:00
|
|
|
|
2023-05-30 04:38:48 +03:00
|
|
|
image-gatekeeper:
|
|
|
|
docker build --platform=linux/amd64 --network=host --build-arg GATEKEEPER_VERSION=$(GATEKEEPER_VERSION) --build-arg REGISTRY=$(REGISTRY) -f Dockerfile.gatekeeper -t $(GATEKEEPER_IMAGE) .
|
2023-05-22 04:06:42 +03:00
|
|
|
|
2021-03-10 00:13:26 +03:00
|
|
|
publish-image-aro-multistage: image-aro-multistage
|
|
|
|
docker push $(ARO_IMAGE)
|
2023-04-06 05:11:27 +03:00
|
|
|
ifeq ("${RP_IMAGE_ACR}-$(BRANCH)","arointsvc-master")
|
2021-03-10 00:13:26 +03:00
|
|
|
docker tag $(ARO_IMAGE) arointsvc.azurecr.io/aro:latest
|
|
|
|
docker push arointsvc.azurecr.io/aro:latest
|
|
|
|
endif
|
|
|
|
|
2021-08-13 19:47:17 +03:00
|
|
|
publish-image-autorest: image-autorest
|
2023-04-06 05:11:27 +03:00
|
|
|
docker push ${AUTOREST_IMAGE}
|
2021-08-13 19:47:17 +03:00
|
|
|
|
2020-03-09 17:40:34 +03:00
|
|
|
publish-image-fluentbit: image-fluentbit
|
2021-11-16 21:29:01 +03:00
|
|
|
docker push $(FLUENTBIT_IMAGE)
|
2020-03-09 17:40:34 +03:00
|
|
|
|
|
|
|
publish-image-proxy: image-proxy
|
2023-04-06 05:11:27 +03:00
|
|
|
docker push ${RP_IMAGE_ACR}.azurecr.io/proxy:latest
|
2019-12-29 17:49:38 +03:00
|
|
|
|
2023-05-30 04:38:48 +03:00
|
|
|
publish-image-gatekeeper: image-gatekeeper
|
2023-05-22 04:06:42 +03:00
|
|
|
docker push $(GATEKEEPER_IMAGE)
|
|
|
|
|
2023-01-31 02:10:05 +03:00
|
|
|
image-e2e:
|
|
|
|
docker build --platform=linux/amd64 --network=host --no-cache -f Dockerfile.aro-e2e -t $(ARO_IMAGE) --build-arg REGISTRY=$(REGISTRY) .
|
|
|
|
|
|
|
|
publish-image-e2e: image-e2e
|
|
|
|
docker push $(ARO_IMAGE)
|
|
|
|
|
|
|
|
extract-aro-docker:
|
2023-04-06 05:11:27 +03:00
|
|
|
hack/ci-utils/extractaro.sh ${ARO_IMAGE}
|
2023-01-31 02:10:05 +03:00
|
|
|
|
2019-12-29 17:49:38 +03:00
|
|
|
proxy:
|
2022-11-02 16:59:02 +03:00
|
|
|
CGO_ENABLED=0 go build -ldflags "-X github.com/Azure/ARO-RP/pkg/util/version.GitCommit=$(VERSION)" ./hack/proxy
|
2019-11-18 09:24:26 +03:00
|
|
|
|
2021-05-07 16:00:46 +03:00
|
|
|
run-portal:
|
2023-07-13 06:04:39 +03:00
|
|
|
go run -ldflags "-X github.com/Azure/ARO-RP/pkg/util/version.GitCommit=$(VERSION)" ./cmd/aro portal
|
2021-05-07 16:00:46 +03:00
|
|
|
|
|
|
|
build-portal:
|
2024-04-05 04:06:22 +03:00
|
|
|
cd portal/v2 && npm install && npm run build
|
2021-05-07 16:00:46 +03:00
|
|
|
|
2020-10-08 03:04:39 +03:00
|
|
|
pyenv:
|
2021-07-02 13:36:25 +03:00
|
|
|
python3 -m venv pyenv
|
2020-10-08 03:04:39 +03:00
|
|
|
. pyenv/bin/activate && \
|
2021-02-08 15:43:39 +03:00
|
|
|
pip install -U pip && \
|
2022-08-10 01:02:09 +03:00
|
|
|
pip install -r requirements.txt && \
|
2021-08-06 16:50:20 +03:00
|
|
|
azdev setup -r . && \
|
|
|
|
sed -i -e "s|^dev_sources = $(PWD)$$|dev_sources = $(PWD)/python|" ~/.azure/config
|
2019-12-16 19:52:17 +03:00
|
|
|
|
2019-12-04 16:17:27 +03:00
|
|
|
secrets:
|
2023-04-06 05:11:27 +03:00
|
|
|
@[ "${SECRET_SA_ACCOUNT_NAME}" ] || ( echo ">> SECRET_SA_ACCOUNT_NAME is not set"; exit 1 )
|
2019-12-04 16:17:27 +03:00
|
|
|
rm -rf secrets
|
2023-04-06 05:11:27 +03:00
|
|
|
az storage blob download -n secrets.tar.gz -c secrets -f secrets.tar.gz --account-name ${SECRET_SA_ACCOUNT_NAME} >/dev/null
|
2020-02-27 16:35:25 +03:00
|
|
|
tar -xzf secrets.tar.gz
|
|
|
|
rm secrets.tar.gz
|
2019-12-04 16:17:27 +03:00
|
|
|
|
|
|
|
secrets-update:
|
2023-04-06 05:11:27 +03:00
|
|
|
@[ "${SECRET_SA_ACCOUNT_NAME}" ] || ( echo ">> SECRET_SA_ACCOUNT_NAME is not set"; exit 1 )
|
2020-02-27 16:35:25 +03:00
|
|
|
tar -czf secrets.tar.gz secrets
|
2023-04-06 05:11:27 +03:00
|
|
|
az storage blob upload -n secrets.tar.gz -c secrets -f secrets.tar.gz --overwrite --account-name ${SECRET_SA_ACCOUNT_NAME} >/dev/null
|
2020-02-27 16:34:46 +03:00
|
|
|
rm secrets.tar.gz
|
2019-12-04 16:17:27 +03:00
|
|
|
|
2021-03-22 17:48:48 +03:00
|
|
|
tunnel:
|
2023-04-06 05:11:27 +03:00
|
|
|
go run ./hack/tunnel $(shell az network public-ip show -g ${RESOURCEGROUP} -n rp-pip --query 'ipAddress')
|
2021-03-22 17:48:48 +03:00
|
|
|
|
2020-07-07 15:19:55 +03:00
|
|
|
e2e.test:
|
2022-06-15 03:10:42 +03:00
|
|
|
go test ./test/e2e/... -tags e2e,codec.safe -c -ldflags "-X github.com/Azure/ARO-RP/pkg/util/version.GitCommit=$(VERSION)" -o e2e.test
|
2020-07-07 15:19:55 +03:00
|
|
|
|
2023-01-31 02:10:05 +03:00
|
|
|
e2etools:
|
|
|
|
CGO_ENABLED=0 go build -ldflags "-X github.com/Azure/ARO-RP/pkg/util/version.GitCommit=$(VERSION)" ./hack/cluster
|
|
|
|
CGO_ENABLED=0 go build -ldflags "-X github.com/Azure/ARO-RP/pkg/util/version.GitCommit=$(VERSION)" ./hack/db
|
|
|
|
CGO_ENABLED=0 go build -ldflags "-X github.com/Azure/ARO-RP/pkg/util/version.GitCommit=$(VERSION)" ./hack/portalauth
|
2023-07-28 04:29:23 +03:00
|
|
|
CGO_ENABLED=0 go build ./hack/jq
|
2023-01-31 02:10:05 +03:00
|
|
|
|
2020-07-07 15:19:55 +03:00
|
|
|
test-e2e: e2e.test
|
2022-03-11 03:53:31 +03:00
|
|
|
./e2e.test $(E2E_FLAGS)
|
2020-01-23 09:25:27 +03:00
|
|
|
|
2021-06-01 16:23:55 +03:00
|
|
|
test-go: generate build-all validate-go lint-go unit-test-go
|
2019-11-30 03:53:25 +03:00
|
|
|
|
2021-04-26 17:12:00 +03:00
|
|
|
validate-go:
|
2020-01-24 02:55:22 +03:00
|
|
|
gofmt -s -w cmd hack pkg test
|
|
|
|
go run ./vendor/golang.org/x/tools/cmd/goimports -w -local=github.com/Azure/ARO-RP cmd hack pkg test
|
|
|
|
go run ./hack/validate-imports cmd hack pkg test
|
2019-12-16 07:48:57 +03:00
|
|
|
go run ./hack/licenses
|
2019-11-30 03:53:25 +03:00
|
|
|
@[ -z "$$(ls pkg/util/*.go 2>/dev/null)" ] || (echo error: go files are not allowed in pkg/util, use a subpackage; exit 1)
|
|
|
|
@[ -z "$$(find -name "*:*")" ] || (echo error: filenames with colons are not allowed on Windows, please rename; exit 1)
|
2019-12-02 14:04:46 +03:00
|
|
|
@sha256sum --quiet -c .sha256sum || (echo error: client library is stale, please run make client; exit 1)
|
2020-01-24 17:02:15 +03:00
|
|
|
go test -tags e2e -run ^$$ ./test/e2e/...
|
2019-11-30 03:53:25 +03:00
|
|
|
|
2022-06-07 13:39:51 +03:00
|
|
|
validate-go-action:
|
2023-06-06 18:59:59 +03:00
|
|
|
go run ./hack/licenses -validate -ignored-go vendor,pkg/client,.git -ignored-python python/client,python/az/aro/azext_aro/aaz,vendor,.git
|
2022-06-07 13:39:51 +03:00
|
|
|
go run ./hack/validate-imports cmd hack pkg test
|
|
|
|
@[ -z "$$(ls pkg/util/*.go 2>/dev/null)" ] || (echo error: go files are not allowed in pkg/util, use a subpackage; exit 1)
|
|
|
|
@[ -z "$$(find -name "*:*")" ] || (echo error: filenames with colons are not allowed on Windows, please rename; exit 1)
|
|
|
|
@sha256sum --quiet -c .sha256sum || (echo error: client library is stale, please run make client; exit 1)
|
|
|
|
|
2022-02-03 04:54:12 +03:00
|
|
|
validate-fips:
|
2024-02-01 05:21:34 +03:00
|
|
|
hack/fips/validate-fips.sh ./aro
|
2022-02-03 04:54:12 +03:00
|
|
|
|
2021-04-26 17:12:00 +03:00
|
|
|
unit-test-go:
|
2024-02-20 05:55:31 +03:00
|
|
|
go run ${GOTESTSUM} --format pkgname --junitfile report.xml -- -coverprofile=cover.out ./...
|
2019-11-21 05:32:34 +03:00
|
|
|
|
2022-11-09 07:36:55 +03:00
|
|
|
unit-test-go-coverpkg:
|
2024-02-20 05:55:31 +03:00
|
|
|
go run ${GOTESTSUM} --format pkgname --junitfile report.xml -- -coverpkg=./... -coverprofile=cover_coverpkg.out ./...
|
2022-11-09 07:36:55 +03:00
|
|
|
|
2020-11-14 03:07:17 +03:00
|
|
|
lint-go:
|
2022-06-03 18:11:25 +03:00
|
|
|
hack/lint-go.sh
|
2020-06-18 07:51:21 +03:00
|
|
|
|
2022-04-06 16:06:11 +03:00
|
|
|
lint-admin-portal:
|
2022-09-13 03:13:51 +03:00
|
|
|
docker build --platform=linux/amd64 --build-arg REGISTRY=$(REGISTRY) -f Dockerfile.portal_lint . -t linter:latest --no-cache
|
|
|
|
docker run --platform=linux/amd64 -t --rm linter:latest
|
2022-04-06 16:06:11 +03:00
|
|
|
|
2021-10-18 16:55:22 +03:00
|
|
|
test-python: pyenv az
|
2020-10-08 03:04:39 +03:00
|
|
|
. pyenv/bin/activate && \
|
2021-08-06 16:50:20 +03:00
|
|
|
azdev linter && \
|
2022-06-09 10:24:31 +03:00
|
|
|
azdev style && \
|
|
|
|
hack/unit-test-python.sh
|
|
|
|
|
2022-08-30 07:05:49 +03:00
|
|
|
shared-cluster-login:
|
2024-03-07 16:50:53 +03:00
|
|
|
@oc login $(shell az aro show -g sre-shared-cluster -n sre-shared-cluster -ojson --query apiserverProfile.url) \
|
|
|
|
-u kubeadmin \
|
|
|
|
-p $(shell az aro list-credentials -g sre-shared-cluster -n sre-shared-cluster -ojson --query "kubeadminPassword")
|
2022-06-24 15:34:53 +03:00
|
|
|
|
2024-01-25 14:02:23 +03:00
|
|
|
shared-cluster-create:
|
|
|
|
./hack/shared-cluster.sh create
|
|
|
|
|
|
|
|
shared-cluster-delete:
|
|
|
|
./hack/shared-cluster.sh delete
|
|
|
|
|
2022-06-09 10:24:31 +03:00
|
|
|
unit-test-python:
|
|
|
|
hack/unit-test-python.sh
|
2019-12-13 21:09:53 +03:00
|
|
|
|
2020-03-12 05:45:32 +03:00
|
|
|
admin.kubeconfig:
|
2023-04-06 05:11:27 +03:00
|
|
|
hack/get-admin-kubeconfig.sh /subscriptions/${AZURE_SUBSCRIPTION_ID}/resourceGroups/${RESOURCEGROUP}/providers/Microsoft.RedHatOpenShift/openShiftClusters/${CLUSTER} >admin.kubeconfig
|
2020-03-11 01:22:20 +03:00
|
|
|
|
2022-05-17 12:51:23 +03:00
|
|
|
aks.kubeconfig:
|
|
|
|
hack/get-admin-aks-kubeconfig.sh
|
|
|
|
|
2020-10-31 21:05:27 +03:00
|
|
|
vendor:
|
2021-05-19 16:08:23 +03:00
|
|
|
# See comments in the script for background on why we need it
|
2020-11-17 12:55:24 +03:00
|
|
|
hack/update-go-module-dependencies.sh
|
2020-10-31 21:05:27 +03:00
|
|
|
|
2024-02-20 05:55:31 +03:00
|
|
|
install-go-tools:
|
|
|
|
go install ${GOTESTSUM}
|
|
|
|
|
2024-03-25 22:48:08 +03:00
|
|
|
.PHONY: admin.kubeconfig aks.kubeconfig aro az ci-portal clean client deploy dev-config.yaml discoverycache generate image-aro-multistage image-fluentbit image-proxy init-contrib lint-go runlocal-rp proxy publish-image-aro-multistage publish-image-fluentbit publish-image-proxy secrets secrets-update e2e.test tunnel test-e2e test-go test-python vendor build-all validate-go unit-test-go coverage-go validate-fips install-go-tools
|