From e8d00f1824bae503bcef62e60f697de1d367fe7f Mon Sep 17 00:00:00 2001 From: Mark Old Date: Fri, 8 Nov 2024 12:32:42 -0800 Subject: [PATCH] Various fixes related to hive developer experience (dx) .gitignore: add venv so I stop accidentally adding it with `git add hack/` hack/*.sh: use `oc` instead of `kubectl` Makefile: add target for using podman to push to registry (local registry running in podman has no security setup, hence ignore TLS) --- .gitignore | 1 + Makefile | 4 ++++ hack/create-service-account-secrets.sh | 2 +- hack/hiveadmission-dev-cert.sh | 8 ++++---- 4 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 32a79679f04..4b0ce2fb59a 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,7 @@ bin/** **/__debug_bin **/__pycache__ +**/venv # Test binary, build with `go test -c` *.test diff --git a/Makefile b/Makefile index a32c4ad26e9..f97576e03b3 100644 --- a/Makefile +++ b/Makefile @@ -317,6 +317,10 @@ buildah-dev-build: podman-dev-build: podman build --tag ${IMG} $(GOCACHE_VOL_ARG) -f ./Dockerfile . +.PHONY: podman-dev-push +podman-dev-push: podman-dev-build + podman push --tls-verify=false ${IMG} + # Build and push the dev image with buildah .PHONY: buildah-dev-push buildah-dev-push: buildah-dev-build diff --git a/hack/create-service-account-secrets.sh b/hack/create-service-account-secrets.sh index c980b712d1f..e00f5904ab6 100755 --- a/hack/create-service-account-secrets.sh +++ b/hack/create-service-account-secrets.sh @@ -5,7 +5,7 @@ # - hiveadmission # - hive-controllers # -cat < server.crt +oc get csr hiveadmission.${HIVE_NS} -o jsonpath='{.status.certificate}' | base64 --decode > server.crt cat server.crt -cat <