@@ -37,7 +37,7 @@ import (
37
37
38
38
// CRDInstallOptions are the options for installing CRDs
39
39
type CRDInstallOptions struct {
40
- // Paths is the path to the directory containing CRDs
40
+ // Paths is a list of paths to the directories containing CRDs
41
41
Paths []string
42
42
43
43
// CRDs is a list of CRDs to install
@@ -46,11 +46,11 @@ type CRDInstallOptions struct {
46
46
// ErrorIfPathMissing will cause an error if a Path does not exist
47
47
ErrorIfPathMissing bool
48
48
49
- // maxTime is the max time to wait
50
- maxTime time.Duration
49
+ // MaxTime is the max time to wait
50
+ MaxTime time.Duration
51
51
52
- // pollInterval is the interval to check
53
- pollInterval time.Duration
52
+ // PollInterval is the interval to check
53
+ PollInterval time.Duration
54
54
}
55
55
56
56
const defaultPollInterval = 100 * time .Millisecond
@@ -97,11 +97,11 @@ func readCRDFiles(options *CRDInstallOptions) error {
97
97
98
98
// defaultCRDOptions sets the default values for CRDs
99
99
func defaultCRDOptions (o * CRDInstallOptions ) {
100
- if o .maxTime == 0 {
101
- o .maxTime = defaultMaxWait
100
+ if o .MaxTime == 0 {
101
+ o .MaxTime = defaultMaxWait
102
102
}
103
- if o .pollInterval == 0 {
104
- o .pollInterval = defaultPollInterval
103
+ if o .PollInterval == 0 {
104
+ o .PollInterval = defaultPollInterval
105
105
}
106
106
}
107
107
@@ -132,7 +132,7 @@ func WaitForCRDs(config *rest.Config, crds []*apiextensionsv1beta1.CustomResourc
132
132
133
133
// Poll until all resources are found in discovery
134
134
p := & poller {config : config , waitingFor : waitingFor }
135
- return wait .PollImmediate (options .pollInterval , options .maxTime , p .poll )
135
+ return wait .PollImmediate (options .PollInterval , options .MaxTime , p .poll )
136
136
}
137
137
138
138
// poller checks if all the resources have been found in discovery, and returns false if not
0 commit comments