-
Notifications
You must be signed in to change notification settings - Fork 241
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
HIVE-2656: Various fixes related to hive developer experience (dx) #2512
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
bin/** | ||
**/__debug_bin | ||
**/__pycache__ | ||
**/venv | ||
|
||
# Test binary, build with `go test -c` | ||
*.test | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Definitely +1 to having this target. I don't think we should turn off TLS by default though. Other options:
|
||
|
||
# Build and push the dev image with buildah | ||
.PHONY: buildah-dev-push | ||
buildah-dev-push: buildah-dev-build | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
# - hiveadmission | ||
# - hive-controllers | ||
# | ||
cat <<EOF | kubectl apply -f - | ||
cat <<EOF | oc apply -f - | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. -1 This script is explicitly for folks setting up hive on non-openshifts. And most of the time, people have them (sym)linked to each other anyway.
|
||
apiVersion: v1 | ||
kind: List | ||
items: | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ cat <<EOF | cfssl genkey - | cfssljson -bare server | |
} | ||
EOF | ||
|
||
cat <<EOF | kubectl apply -f - | ||
cat <<EOF | oc apply -f - | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ditto (and below) |
||
apiVersion: certificates.k8s.io/v1 | ||
kind: CertificateSigningRequest | ||
metadata: | ||
|
@@ -38,14 +38,14 @@ spec: | |
- server auth | ||
EOF | ||
|
||
kubectl certificate approve hiveadmission.${HIVE_NS} | ||
oc adm certificate approve hiveadmission.${HIVE_NS} | ||
|
||
sleep 5 | ||
kubectl get csr hiveadmission.${HIVE_NS} -o jsonpath='{.status.certificate}' | base64 --decode > server.crt | ||
oc get csr hiveadmission.${HIVE_NS} -o jsonpath='{.status.certificate}' | base64 --decode > server.crt | ||
|
||
cat server.crt | ||
|
||
cat <<EOF | kubectl apply -f - | ||
cat <<EOF | oc apply -f - | ||
kind: Secret | ||
apiVersion: v1 | ||
data: | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't hate this, but it assumes everyone uses the same name for their python venv as you.
You can set up personal gitignores in several ways. For example, my ~/.gitconfig contains:
...and that file contains:
(The idea being that not everyone necessarily uses vscode -- though I see we've got that in here on L33 -- or vim.)