UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects
Commit 2d6d61b1 authored by andrew.greene's avatar andrew.greene Committed by Rob Mengert
Browse files

feat: add package wait script [SKIP INTEGRATION]

parent 100432bb
No related branches found
No related tags found
1 merge request!13feat: add package wait script [SKIP INTEGRATION]
...@@ -2,5 +2,8 @@ ...@@ -2,5 +2,8 @@
Format: [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) Format: [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
## [0.1.3-alpha-bb.1] - unreleased
- Pipeline fixes
## [0.1.3-alpha-bb.0] - 2022-06-24 ## [0.1.3-alpha-bb.0] - 2022-06-24
- Initial Chart creation - Initial Chart creation
\ No newline at end of file
# kubevirt # kubevirt
![Version: 0.1.3-alpha-bb.0](https://img.shields.io/badge/Version-0.1.3--alpha--bb.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.53.0](https://img.shields.io/badge/AppVersion-0.53.0-informational?style=flat-square) ![Version: 0.1.3-alpha-bb.1](https://img.shields.io/badge/Version-0.1.3--alpha--bb.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.53.0](https://img.shields.io/badge/AppVersion-0.53.0-informational?style=flat-square)
KubeVirt Big Bang package KubeVirt Big Bang package
......
...@@ -2,5 +2,5 @@ apiVersion: v2 ...@@ -2,5 +2,5 @@ apiVersion: v2
name: kubevirt name: kubevirt
description: KubeVirt Big Bang package description: KubeVirt Big Bang package
type: application type: application
version: 0.1.3-alpha-bb.0 version: 0.1.3-alpha-bb.1
appVersion: "0.53.0" appVersion: "0.53.0"
#!/bin/bash
custom_package_wait() {
timeElapsed=0
sleepTime=3
timeout=600
while [[ $timeElapsed -le $timeout ]]; do
podCount=$(kubectl get pods -n kubevirt | grep "1/1" -c)
#Note: podCount = 7 assumes .Values.deployment.spec.replicas = 2
if [[ "$podCount" -eq "7" ]]; then
break
fi
sleep $sleepTime
timeElapsed=$(($timeElapsed + $sleepTime))
done
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment