diff --git a/Chart.yaml b/Chart.yaml index 1838519..d7437d5 100644 --- a/Chart.yaml +++ b/Chart.yaml @@ -15,9 +15,9 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.2.0 +version: 0.2.1 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. -appVersion: 0.2.0 +appVersion: 0.2.1 diff --git a/reconcile.sh b/reconcile.sh index 1754470..330139f 100755 --- a/reconcile.sh +++ b/reconcile.sh @@ -5,7 +5,7 @@ while true; do echo "Finding Pending pods with no image pull secrets..." - pods=$(oc get po --all-namespaces --field-selector=status.phase==Pending -o go-template='{{range .items}}{{.metadata.namespace}} {{.metadata.name}} {{ len .metadata.ownerReferences }} {{ len .spec.imagePullSecrets }}{{"\n"}}{{end}}') + pods=$(oc get po --all-namespaces --field-selector=status.phase==Pending -o go-template='{{range .items}}{{.metadata.namespace}} {{.metadata.name}} {{with .metadata.ownerReferences}}{{len .}}{{else}}0{{end}} {{with .spec.imagePullSecrets}}{{len .}}{{else}}0{{end}}{{"\n"}}{{end}}') count=0 # loop over all pending pods