ceph: adds scripts and components to support admission controllers
adds deploy.sh script to deploy validatingwebhookconfiguration and create secrets. adds new command ceph admission-controller to start webhook servers. adds validation for various rook custom resources Signed-off-by: Vineet Badrinath <vbadrina@redhat.com>
This commit is contained in:
1 parent
675c9673ca
commit
ce1003aef8
27 files changed
+1088
-19
No files matched your search
@@ -1122,8 +1122,10 @@ func (k8sh *K8sHelper) IsPodInExpectedState(podNamePattern string, namespace str
|
||||
podList, err := k8sh.Clientset.CoreV1().Pods(namespace).List(listOpts)
|
||||
if err == nil {
|
||||
if len(podList.Items) >= 1 {
|
||||
if podList.Items[0].Status.Phase == v1.PodPhase(state) {
|
||||
return true
|
||||
for _, pod := range podList.Items {
|
||||
if pod.Status.Phase == v1.PodPhase(state) {
|
||||
return true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user