diff --git a/divingbell/Chart.yaml b/divingbell/Chart.yaml index c2b0da6..f8b39c0 100644 --- a/divingbell/Chart.yaml +++ b/divingbell/Chart.yaml @@ -15,4 +15,4 @@ apiVersion: v1 description: divingbell name: divingbell -version: 0.1.1 +version: 0.1.2 diff --git a/divingbell/templates/bin/_apt.sh.tpl b/divingbell/templates/bin/_apt.sh.tpl index 9782f6a..abed208 100644 --- a/divingbell/templates/bin/_apt.sh.tpl +++ b/divingbell/templates/bin/_apt.sh.tpl @@ -18,6 +18,8 @@ set -e +rm -rf /tmp/done + cat <<'EOF' > {{ .Values.conf.chroot_mnt_path | quote }}/tmp/apt.sh {{ include "divingbell.shcommon" . }} @@ -266,6 +268,8 @@ EOF chmod 755 {{ .Values.conf.chroot_mnt_path | quote }}/tmp/apt.sh chroot {{ .Values.conf.chroot_mnt_path | quote }} /tmp/apt.sh +touch /tmp/done + while [ 1 ]; do sleep 300 done diff --git a/divingbell/templates/daemonset-apt.yaml b/divingbell/templates/daemonset-apt.yaml index c515740..7237c65 100644 --- a/divingbell/templates/daemonset-apt.yaml +++ b/divingbell/templates/daemonset-apt.yaml @@ -63,6 +63,22 @@ spec: mountPath: /tmp/{{ $daemonset }}.sh subPath: {{ $daemonset }} readOnly: true + readinessProbe: + exec: + command: + - cat + - /tmp/done + initialDelaySeconds: 5 + periodSeconds: 5 + failureThreshold: 120 + livenessProbe: + exec: + command: + - cat + - /tmp/done + initialDelaySeconds: 5 + periodSeconds: 5 + failureThreshold: 120 volumes: - name: pod-tmp emptyDir: {} diff --git a/doc/source/conf.py b/doc/source/conf.py index 10512be..5a34431 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -56,9 +56,9 @@ author = u'Divingbell Authors' # built documents. # # The short X.Y version. -version = u'0.1.1' +version = u'0.1.2' # The full version, including alpha/beta/rc tags. -release = u'0.1.1' +release = u'0.1.2' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages.