File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -71,12 +71,12 @@ func (b *crdBuilder) Do(ctx context.Context) error {
71
71
}
72
72
73
73
if updated {
74
- return waitForCustomResourceDefinitionCompletion (ctx , b .clientV1 , name )
74
+ return waitForCustomResourceDefinitionCompletion (ctx , b .clientV1beta1 , name )
75
75
}
76
76
return nil
77
77
}
78
78
79
- func waitForCustomResourceDefinitionCompletion (ctx context.Context , client apiextclientv1 .CustomResourceDefinitionsGetter , crd string ) error {
79
+ func waitForCustomResourceDefinitionCompletion (ctx context.Context , client apiextclientv1beta1 .CustomResourceDefinitionsGetter , crd string ) error {
80
80
return wait .PollImmediateUntil (defaultObjectPollInterval , func () (bool , error ) {
81
81
c , err := client .CustomResourceDefinitions ().Get (crd , metav1.GetOptions {})
82
82
if errors .IsNotFound (err ) {
@@ -89,7 +89,7 @@ func waitForCustomResourceDefinitionCompletion(ctx context.Context, client apiex
89
89
}
90
90
91
91
for _ , condition := range c .Status .Conditions {
92
- if condition .Type == apiextv1 .Established && condition .Status == apiextv1 .ConditionTrue {
92
+ if condition .Type == apiextv1beta1 .Established && condition .Status == apiextv1beta1 .ConditionTrue {
93
93
return true , nil
94
94
}
95
95
}
You can’t perform that action at this time.
0 commit comments