@@ -22,20 +22,23 @@ import (
2222
2323// HasDifferentCRDVersion returns true if any other CRD version is tracked in the project configuration.
2424// 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.
2627func HasDifferentCRDVersion (config config.Config , crdVersion string ) bool {
2728 return hasDifferentAPIVersion (config .ListCRDVersions (), crdVersion )
2829}
2930
3031// HasDifferentWebhookVersion returns true if any other webhook version is tracked in the project configuration.
3132// 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.
3335func HasDifferentWebhookVersion (config config.Config , webhookVersion string ) bool {
3436 return hasDifferentAPIVersion (config .ListWebhookVersions (), webhookVersion )
3537}
3638
3739// 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.
3942func hasDifferentAPIVersion (versions []string , version string ) bool {
4043 return ! (len (versions ) == 0 || (len (versions ) == 1 && versions [0 ] == version ))
4144}
0 commit comments