@@ -22,20 +22,23 @@ import (
22
22
23
23
// HasDifferentCRDVersion returns true if any other CRD version is tracked in the project configuration.
24
24
// Deprecated: v1beta1 CRDs and Webhooks are not supported since k8s 1.22.
25
- // The features that allow users to scaffold projects using these API versions are deprecated and are no longer supported.
25
+ // The features that allow users to scaffold projects using these API versions are deprecated and
26
+ // are no longer supported.
26
27
func HasDifferentCRDVersion (config config.Config , crdVersion string ) bool {
27
28
return hasDifferentAPIVersion (config .ListCRDVersions (), crdVersion )
28
29
}
29
30
30
31
// HasDifferentWebhookVersion returns true if any other webhook version is tracked in the project configuration.
31
32
// Deprecated: v1beta1 CRDs and Webhooks are not supported since k8s 1.22.
32
- // The features that allow users to scaffold projects using these API versions are deprecated and are no longer supported.
33
+ // The features that allow users to scaffold projects using these API versions are deprecated and
34
+ // are no longer supported.
33
35
func HasDifferentWebhookVersion (config config.Config , webhookVersion string ) bool {
34
36
return hasDifferentAPIVersion (config .ListWebhookVersions (), webhookVersion )
35
37
}
36
38
37
39
// Deprecated: v1beta1 CRDs and Webhooks are not supported since k8s 1.22.
38
- // The features that allow users to scaffold projects using these API versions are deprecated and are no longer supported.
40
+ // The features that allow users to scaffold projects using these API versions are deprecated and
41
+ // are no longer supported.
39
42
func hasDifferentAPIVersion (versions []string , version string ) bool {
40
43
return ! (len (versions ) == 0 || (len (versions ) == 1 && versions [0 ] == version ))
41
44
}
0 commit comments