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:
Vineet Badrinath committed 2020-06-24 14:59:00 +05:30
1 parent 675c9673ca
commit ce1003aef8
27 files changed
+1088 -19

No files matched your search

+4 -2
View File
@@ -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
}
}
}
}