File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -20,19 +20,22 @@ import (
20
20
"sigs.k8s.io/kubebuilder/v3/pkg/config"
21
21
)
22
22
23
- // Deprecated: go/v4 no longer supports v1beta1 option
24
23
// HasDifferentCRDVersion returns true if any other CRD version is tracked in the project configuration.
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
26
func HasDifferentCRDVersion (config config.Config , crdVersion string ) bool {
26
27
return hasDifferentAPIVersion (config .ListCRDVersions (), crdVersion )
27
28
}
28
29
29
- // Deprecated: go/v4 no longer supports v1beta1 option
30
30
// HasDifferentWebhookVersion returns true if any other webhook version is tracked in the project configuration.
31
+ // 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.
31
33
func HasDifferentWebhookVersion (config config.Config , webhookVersion string ) bool {
32
34
return hasDifferentAPIVersion (config .ListWebhookVersions (), webhookVersion )
33
35
}
34
36
35
- // Deprecated: go/v4 no longer supports v1beta1 option
37
+ // 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.
36
39
func hasDifferentAPIVersion (versions []string , version string ) bool {
37
40
return ! (len (versions ) == 0 || (len (versions ) == 1 && versions [0 ] == version ))
38
41
}
You can’t perform that action at this time.
0 commit comments