We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 805f5c9 + bfd8873 commit 4ff7793Copy full SHA for 4ff7793
cmd/snapshot-controller/main.go
@@ -68,7 +68,7 @@ func ensureCustomResourceDefinitionsExist(kubeClient *kubernetes.Clientset, clie
68
condition := func() (bool, error) {
69
var err error
70
_, err = kubeClient.CoreV1().Namespaces().Get(context.TODO(), "kube-system", metav1.GetOptions{})
71
- if err != nil {
+ if err == nil {
72
// only execute list VolumeSnapshots if the kube-system namespace exists
73
_, err = client.SnapshotV1().VolumeSnapshots("kube-system").List(context.TODO(), metav1.ListOptions{})
74
if err != nil {
0 commit comments