test/main.go: add IncludeUninitialized to GetOptions
@@ -126,7 +126,7 @@ func printDeployments(deployments *apps.DeploymentList) {
func deploymentReplicaCheck(kubeclient *kubernetes.Clientset, namespace, name string, replicas, retries int) error {
err := retryutil.Retry(retryInterval, retries, func() (done bool, err error) {
- deployment, err := kubeclient.AppsV1().Deployments(namespace).Get(name, metav1.GetOptions{})
+ deployment, err := kubeclient.AppsV1().Deployments(namespace).Get(name, metav1.GetOptions{IncludeUninitialized: true})
if err != nil {
return false, err
}
