Move to helm 3 CLI in cluster

Signed-off-by: Sean Eagan <seaneagan1@gmail.com>
Change-Id: I3c385547d30796aecb67aaa6482da34765052c47
This commit is contained in:
Sean Eagan 2021-07-26 13:13:59 -05:00
parent 731deccf05
commit 1017536b9f
10 changed files with 16 additions and 14 deletions

View File

@ -22,7 +22,7 @@ Sample Document to run containers in Docker runtime
images:
haproxy: haproxy:1.8.3
helm:
helm: lachlanevenson/k8s-helm:v2.14.0
helm: lachlanevenson/k8s-helm:v3.6.2
monitoring_image: busybox:1.28.3
packages:
repositories:
@ -121,7 +121,7 @@ Sample Document to run containers in Containerd runtime
images:
haproxy: haproxy:1.8.3
helm:
helm: lachlanevenson/k8s-helm:v2.14.0
helm: lachlanevenson/k8s-helm:v3.6.2
monitoring_image: busybox:1.28.3
packages:
additional:

View File

@ -77,7 +77,7 @@ data:
monitoring_image: &busybox busybox:1.28.3
haproxy: haproxy:1.8.3
helm:
helm: lachlanevenson/k8s-helm:v2.14.0
helm: lachlanevenson/k8s-helm:v3.6.2
packages:
common:
repositories:

View File

@ -42,7 +42,7 @@ data:
monitoring_image: busybox:1.28.3
haproxy: haproxy:1.8.3
helm:
helm: lachlanevenson/k8s-helm:v2.14.0
helm: lachlanevenson/k8s-helm:v3.6.2
packages:
common:
repositories:

View File

@ -85,7 +85,7 @@ data:
monitoring_image: &busybox busybox:1.28.3
haproxy: haproxy:1.8.3
helm:
helm: lachlanevenson/k8s-helm:v2.14.0
helm: lachlanevenson/k8s-helm:v3.6.2
packages:
common:
additional:

View File

@ -77,7 +77,7 @@ data:
monitoring_image: &busybox busybox:1.28.3
haproxy: haproxy:1.8.3
helm:
helm: lachlanevenson/k8s-helm:v2.14.0
helm: lachlanevenson/k8s-helm:v3.6.2
packages:
common:
repositories:

View File

@ -92,20 +92,22 @@ function get_objects () {
export -f get_objects
function get_releases () {
helm list --all --short
helm list --all-namespaces --all | awk 'NR>1 { print $1, $2 }'
}
function get_release () {
input=($1)
RELEASE=${input[0]}
helm status "${RELEASE}" > "${HELM_DIR}/${RELEASE}.txt"
NAMESPACE=${input[1]}
NAMESPACE_DIR="${HELM_DIR}/${NAMESPACE}"
mkdir -p "${NAMESPACE_DIR}"
helm status -n "${NAMESPACE}" "${RELEASE}" > "${NAMESPACE_DIR}/${RELEASE}.txt"
}
export -f get_release
if which helm; then
mkdir -p "${HELM_DIR}"
helm list --all > "${HELM_DIR}/list" &
helm list --all-namespaces --all > "${HELM_DIR}/list" &
get_releases | \
xargs -r -n 1 -P "${PARALLELISM_FACTOR}" -I {} bash -c 'get_release "$@"' _ {}
fi

View File

@ -162,7 +162,7 @@ VALID_DOCS = [
'images': {
'haproxy': 'haproxy:1.8.3',
'helm': {
'helm': 'lachlanevenson/k8s-helm:v2.14.0'
'helm': 'lachlanevenson/k8s-helm:v3.6.2'
}
},
'packages': {

View File

@ -38,7 +38,7 @@ data:
monitoring_image: &busybox busybox:1.28.3
haproxy: haproxy:1.8.3
helm:
helm: lachlanevenson/k8s-helm:v2.14.0
helm: lachlanevenson/k8s-helm:v3.6.2
packages:
common:
repositories:

View File

@ -7,7 +7,7 @@ IMAGE_COREDNS=coredns/coredns:1.7.0
IMAGE_DEP_CHECK=quay.io/stackanetes/kubernetes-entrypoint:v0.3.1
IMAGE_ETCD=quay.io/coreos/etcd:v3.4.13
IMAGE_HAPROXY=haproxy:1.8.3
IMAGE_HELM=lachlanevenson/k8s-helm:v2.14.0
IMAGE_HELM=lachlanevenson/k8s-helm:v3.6.2
IMAGE_APISERVER=k8s.gcr.io/kube-apiserver-amd64:v1.20.5
IMAGE_CONTROLLER_MANAGER=k8s.gcr.io/kube-controller-manager-amd64:v1.20.5
IMAGE_SCHEDULER=k8s.gcr.io/kube-scheduler-amd64:v1.20.5

View File

@ -9,7 +9,7 @@ k8s.gcr.io/k8s-dns-dnsmasq-nanny-amd64,1.14.4,k8s-dns-dnsmasq-nanny-amd64
k8s.gcr.io/k8s-dns-kube-dns-amd64,1.14.4,k8s-dns-kube-dns-amd64
k8s.gcr.io/k8s-dns-sidecar-amd64,1.14.4,k8s-dns-sidecar-amd64
gcr.io/kubernetes-helm/tiller,v2.14.0,tiller
lachlanevenson/k8s-helm,v2.14.0,helm
lachlanevenson/k8s-helm,v3.6.3,helm
quay.io/airshipit/armada,master,armada
quay.io/calico/cni,v1.11.0,calico-cni
quay.io/calico/ctl,v1.6.1,calico-ctl