Skip to content

Commit

Permalink
makefile: remove targets covered by scripts
Browse files Browse the repository at this point in the history
with the aim at reducing the set of "installation sprawl", removing
these targets and focusing on the single installation location
(hack/setup.sh) we can instead just always use the commands from there.

Signed-off-by: Ciro S. Costa <ciroscosta@vmware.com>
  • Loading branch information
Ciro S. Costa committed Sep 20, 2021
1 parent e21eece commit bda5b06
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -67,36 +67,6 @@ coverage:
lint: copyright
go run github.com/golangci/golangci-lint/cmd/golangci-lint --config lint-config.yaml run

release: gen-manifests kodata
mkdir -p releases
ytt --ignore-unknown-comments -f ./config | ko resolve -f- > ./releases/release.yaml
kbld -f releases/release.yaml --imgpkg-lock-output releases/.imgpkg/images.yml
imgpkg push -b projectcartographer/cartographer-bundle -f releases --file-exclusion releases/kbld.lock.yml --lock-output releases/kbld.lock.yml
go run github.com/google/addlicense \
-f ./hack/boilerplate.go.txt \
releases

install-cert-manager:
kapp deploy --yes -a cert-manager \
-f https://github.com/jetstack/cert-manager/releases/download/v1.2.0/cert-manager.yaml

prep-deploy: install-cert-manager
kubectl create ns cartographer-system || true

deploy: prep-deploy
kapp deploy --yes -a cartographer -f ./releases/release.yaml

tear-down-local:
./hack/local-dev/delete-local-cluster-and-registry.sh

create-local:
./hack/local-dev/create-local-cluster-and-registry.sh

deploy-local: create-local prep-deploy gen-manifests kodata
ytt -f ./config --ignore-unknown-comments | \
KO_DOCKER_REPO=localhost:65432 ko resolve -f- | \
kapp deploy --yes -a cartographer -f -

copyright:
go run github.com/google/addlicense \
-f ./hack/boilerplate.go.txt \
Expand Down

0 comments on commit bda5b06

Please sign in to comment.