@@ -33,7 +33,7 @@ import (
33
33
)
34
34
35
35
var _ = Describe ("Test" , func () {
36
- var crds []apiextensionsv1.CustomResourceDefinition
36
+ var crds []* apiextensionsv1.CustomResourceDefinition
37
37
var err error
38
38
var s * runtime.Scheme
39
39
var c client.Client
@@ -45,7 +45,7 @@ var _ = Describe("Test", func() {
45
45
46
46
// Initialize the client
47
47
BeforeEach (func () {
48
- crds = []apiextensionsv1.CustomResourceDefinition {}
48
+ crds = []* apiextensionsv1.CustomResourceDefinition {}
49
49
s = scheme .Scheme
50
50
err = apiextensionsv1 .AddToScheme (s )
51
51
Expect (err ).NotTo (HaveOccurred ())
@@ -69,7 +69,7 @@ var _ = Describe("Test", func() {
69
69
continue
70
70
}
71
71
Expect (err ).NotTo (HaveOccurred ())
72
- Expect (c .Delete (context .TODO (), & crd )).To (Succeed ())
72
+ Expect (c .Delete (context .TODO (), crd )).To (Succeed ())
73
73
Eventually (func () bool {
74
74
err := c .Get (context .TODO (), crdObjectKey , & placeholder )
75
75
return apierrors .IsNotFound (err )
@@ -91,7 +91,7 @@ var _ = Describe("Test", func() {
91
91
Expect (err ).NotTo (HaveOccurred ())
92
92
Expect (crd .Spec .Names .Kind ).To (Equal ("Frigate" ))
93
93
94
- err = WaitForCRDs (env .Config , []apiextensionsv1.CustomResourceDefinition {
94
+ err = WaitForCRDs (env .Config , []* apiextensionsv1.CustomResourceDefinition {
95
95
{
96
96
Spec : apiextensionsv1.CustomResourceDefinitionSpec {
97
97
Group : "ship.example.com" ,
@@ -149,7 +149,7 @@ var _ = Describe("Test", func() {
149
149
Expect (err ).NotTo (HaveOccurred ())
150
150
Expect (crd .Spec .Names .Kind ).To (Equal ("Driver" ))
151
151
152
- err = WaitForCRDs (env .Config , []apiextensionsv1.CustomResourceDefinition {
152
+ err = WaitForCRDs (env .Config , []* apiextensionsv1.CustomResourceDefinition {
153
153
{
154
154
Spec : apiextensionsv1.CustomResourceDefinitionSpec {
155
155
Group : "bar.example.com" ,
@@ -256,7 +256,7 @@ var _ = Describe("Test", func() {
256
256
Expect (err ).NotTo (HaveOccurred ())
257
257
Expect (crd .Spec .Names .Kind ).To (Equal ("Config" ))
258
258
259
- err = WaitForCRDs (env .Config , []apiextensionsv1.CustomResourceDefinition {
259
+ err = WaitForCRDs (env .Config , []* apiextensionsv1.CustomResourceDefinition {
260
260
{
261
261
Spec : apiextensionsv1.CustomResourceDefinitionSpec {
262
262
Group : "foo.example.com" ,
@@ -305,7 +305,7 @@ var _ = Describe("Test", func() {
305
305
Expect (err ).NotTo (HaveOccurred ())
306
306
Expect (crd .Spec .Names .Kind ).To (Equal ("Foo" ))
307
307
308
- err = WaitForCRDs (env .Config , []apiextensionsv1.CustomResourceDefinition {
308
+ err = WaitForCRDs (env .Config , []* apiextensionsv1.CustomResourceDefinition {
309
309
{
310
310
Spec : apiextensionsv1.CustomResourceDefinitionSpec {
311
311
Group : "bar.example.com" ,
@@ -353,7 +353,7 @@ var _ = Describe("Test", func() {
353
353
It ("should return an error if the resource group version isn't found" , func () {
354
354
// Wait for a CRD where the Group and Version don't exist
355
355
err := WaitForCRDs (env .Config ,
356
- []apiextensionsv1.CustomResourceDefinition {
356
+ []* apiextensionsv1.CustomResourceDefinition {
357
357
{
358
358
Spec : apiextensionsv1.CustomResourceDefinitionSpec {
359
359
Versions : []apiextensionsv1.CustomResourceDefinitionVersion {
@@ -383,7 +383,7 @@ var _ = Describe("Test", func() {
383
383
Expect (err ).NotTo (HaveOccurred ())
384
384
385
385
// Wait for a CRD that doesn't exist, but the Group and Version do
386
- err = WaitForCRDs (env .Config , []apiextensionsv1.CustomResourceDefinition {
386
+ err = WaitForCRDs (env .Config , []* apiextensionsv1.CustomResourceDefinition {
387
387
{
388
388
Spec : apiextensionsv1.CustomResourceDefinitionSpec {
389
389
Group : "qux.example.com" ,
@@ -457,7 +457,7 @@ var _ = Describe("Test", func() {
457
457
Expect (err ).NotTo (HaveOccurred ())
458
458
Expect (crd .Spec .Names .Kind ).To (Equal ("Driver" ))
459
459
460
- err = WaitForCRDs (env .Config , []apiextensionsv1.CustomResourceDefinition {
460
+ err = WaitForCRDs (env .Config , []* apiextensionsv1.CustomResourceDefinition {
461
461
{
462
462
Spec : apiextensionsv1.CustomResourceDefinitionSpec {
463
463
Group : "bar.example.com" ,
@@ -586,7 +586,7 @@ var _ = Describe("Test", func() {
586
586
Expect (err ).NotTo (HaveOccurred ())
587
587
Expect (crd .Spec .Names .Kind ).To (Equal ("Driver" ))
588
588
589
- err = WaitForCRDs (env .Config , []apiextensionsv1.CustomResourceDefinition {
589
+ err = WaitForCRDs (env .Config , []* apiextensionsv1.CustomResourceDefinition {
590
590
{
591
591
Spec : apiextensionsv1.CustomResourceDefinitionSpec {
592
592
Group : "bar.example.com" ,
@@ -702,7 +702,7 @@ var _ = Describe("Test", func() {
702
702
// Store resource version for comparison later on
703
703
firstRV := crd .ResourceVersion
704
704
705
- err = WaitForCRDs (env .Config , []apiextensionsv1.CustomResourceDefinition {
705
+ err = WaitForCRDs (env .Config , []* apiextensionsv1.CustomResourceDefinition {
706
706
{
707
707
Spec : apiextensionsv1.CustomResourceDefinitionSpec {
708
708
Group : "crew.example.com" ,
@@ -742,7 +742,7 @@ var _ = Describe("Test", func() {
742
742
Expect (len (crd .Spec .Versions )).To (BeEquivalentTo (3 ))
743
743
Expect (crd .ResourceVersion ).NotTo (BeEquivalentTo (firstRV ))
744
744
745
- err = WaitForCRDs (env .Config , []apiextensionsv1.CustomResourceDefinition {
745
+ err = WaitForCRDs (env .Config , []* apiextensionsv1.CustomResourceDefinition {
746
746
{
747
747
Spec : apiextensionsv1.CustomResourceDefinitionSpec {
748
748
Group : "crew.example.com" ,
@@ -808,7 +808,7 @@ var _ = Describe("Test", func() {
808
808
Expect (err ).NotTo (HaveOccurred ())
809
809
Expect (crd .Spec .Names .Kind ).To (Equal ("Driver" ))
810
810
811
- err = WaitForCRDs (env .Config , []apiextensionsv1.CustomResourceDefinition {
811
+ err = WaitForCRDs (env .Config , []* apiextensionsv1.CustomResourceDefinition {
812
812
{
813
813
Spec : apiextensionsv1.CustomResourceDefinitionSpec {
814
814
Group : "bar.example.com" ,
0 commit comments