https://github.com/kubeflow/katib
Revision 6b7142f00b5307cc9b663288bdcce64fb90df416 authored by Andrey Velichkevich on 09 September 2020, 06:57:52 UTC, committed by GitHub on 09 September 2020, 06:57:52 UTC
* Enable to wait all in metrics collectors

* Rename metricsFilePath

* Fix tfevent

* Fix pns py

* Fix comment
1 parent 7b797e1
Raw File
Tip revision: 6b7142f00b5307cc9b663288bdcce64fb90df416 authored by Andrey Velichkevich on 09 September 2020, 06:57:52 UTC
Custom CRD: Wait for all processes before running metrics collector (#1313)
Tip revision: 6b7142f
Makefile
HAS_DEP := $(shell command -v dep;)
HAS_LINT := $(shell command -v golint;)

PREFIX ?= katib
CMD_PREFIX ?= cmd

# Run tests
.PHONY: test
test:
	go test ./pkg/... ./cmd/... -coverprofile coverage.out

depend:
ifndef HAS_DEP
	curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
endif
	dep ensure -v

check: depend generate fmt vet lint

fmt:
	hack/verify-gofmt.sh

lint:
ifndef HAS_LINT
	go get -u golang.org/x/lint/golint
	echo "installing golint"
endif
	hack/verify-golint.sh

vet:
	go vet ./pkg/... ./cmd/...

update:
	hack/update-gofmt.sh

# Deploy Katib v1alpha3 manifests into a k8s cluster
deployv1alpha3:
	bash scripts/v1alpha3/deploy.sh

# Deploy Katib v1beta1 manifests into a k8s cluster
deploy:
	bash scripts/v1beta1/deploy.sh

# Undeploy Katib v1alpha3 manifests from a k8s cluster
undeployv1alpha3:
	bash scripts/v1alpha3/undeploy.sh

# Undeploy Katib v1beta1 manifests from a k8s cluster
undeploy:
	bash scripts/v1beta1/undeploy.sh

# Generate deepcopy, clientset, listers, informers, open-api and python SDK for APIs.
# Run this if you update any existing controller APIs.
generate:
ifndef GOPATH
	$(error GOPATH not defined, please define GOPATH. Run "go help gopath" to learn more about GOPATH)
endif
	go generate ./pkg/... ./cmd/...
	hack/gen-python-sdk/gen-sdk.sh

# Build images for Katib v1alpha3 components
buildv1alpha3: depend generate
	bash scripts/v1alpha3/build.sh

# Build images for Katib v1beta1 components
build: depend generate
	bash scripts/v1beta1/build.sh

# Prettier UI format check for Katib v1alpha3
prettier-check-v1alpha3:
	npm run format:check --prefix pkg/ui/v1alpha3/frontend

# Prettier UI format check for Katib v1beta1
prettier-check:
	npm run format:check --prefix pkg/ui/v1beta1/frontend
back to top