Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
knikhil42 committed Feb 7, 2024
1 parent d8e9d93 commit 8b06c08
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
2 changes: 2 additions & 0 deletions yaml/kafka/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
nodeSelector:
label: external
19 changes: 19 additions & 0 deletions yaml/pre-install-hook.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: v1
kind: Pod
metadata:
name: preinstall-hook
annotations:
"helm.sh/hook": "pre-install"
spec:
containers:
- name: pre-install-container
image: bitnami/kubectl:latest
# image: busybox
imagePullPolicy: IfNotPresent
command: ["/bin/sh", "-c"]
args:
- num_jobs=$(kubectl get jobs --field-selector status.successful=0 --output json | jq -j '.items | length')
- echo "number running jobs - $num_jobs"
- while [[ "$num_jobs" > 0 ]];do;echo "waiting for running jobs to complete";sleep 20;num_jobs=$(kubectl get jobs --field-selector status.successful=0 --output json | jq -j '.items | length');echo "number running jobs - $num_jobs";done
restartPolicy: Never
terminationGracePeriodSeconds: 0

0 comments on commit 8b06c08

Please sign in to comment.