This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -euo pipefail | |
##### | |
# Simple bash script to retrieve the selfsigned cert from TAP and install it locally on macOS | |
##### | |
echo "--- Fetching TAP Ingress Certificate ---" | |
kubectl get secret -n cert-manager tap-ingress-selfsigned-root-ca -o yaml | yq '.data."ca.crt"' | base64 -d > ca.crt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MAKE := make --no-print-directory | |
DESCRIBE := $(shell git describe --match "v*" --always --tags) | |
DESCRIBE_PARTS := $(subst -, ,$(DESCRIBE)) | |
VERSION_TAG := $(word 1,$(DESCRIBE_PARTS)) | |
COMMITS_SINCE_TAG := $(word 2,$(DESCRIBE_PARTS)) | |
VERSION := $(subst v,,$(VERSION_TAG)) | |
VERSION_PARTS := $(subst ., ,$(VERSION)) |