Various minor updates (amnesia)

This commit is contained in:
Jonas Juselius
2020-09-29 20:42:00 +02:00
parent 31f5b7f953
commit deb41300a6
12 changed files with 118 additions and 3 deletions

View File

@@ -0,0 +1,33 @@
#!/usr/bin/env bash
TOP="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)/.."
if [ x$1 = x ]; then
ehco "usage: install-namespace.sh {namespace}"
exit 1
fi
namespace=$1
tmpfile=/tmp/new-$namespace.$$
cat << EOF > $tmpfile
apiVersion: v1
kind: Namespace
metadata:
labels:
name: $namespace
name: $namespace
---
apiVersion: v1
kind: Secret
metadata:
name: gitlab-registry-auth
namespace: $namespace
data:
.dockerconfigjson: eyJhdXRocyI6eyJodHRwczovL3JlZ2lzdHJ5Lml0cGFydG5lci5ubyI6eyJ1c2VybmFtZSI6ImpvbmFzIiwicGFzc3dvcmQiOiJTRldwLVk0bkVfdXpNZFJxeHp6SyIsImF1dGgiOiJhbTl1WVhNNlUwWlhjQzFaTkc1RlgzVjZUV1JTY1hoNmVrcz0ifX19
type: kubernetes.io/dockerconfigjson
EOF
kubectl apply -f $tmpfile
rm $tmpfile