Skip to content

Commit 797d172

Browse files
🐛 Clarify deprecate documentation for API methods which are served to work with CRD/WebHook API versions v1beta1 (#3261)
1 parent 26f605e commit 797d172

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

pkg/plugin/util/helpers.go

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,22 @@ import (
2020
"sigs.k8s.io/kubebuilder/v3/pkg/config"
2121
)
2222

23-
// Deprecated: go/v4 no longer supports v1beta1 option
2423
// 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.
2526
func HasDifferentCRDVersion(config config.Config, crdVersion string) bool {
2627
return hasDifferentAPIVersion(config.ListCRDVersions(), crdVersion)
2728
}
2829

29-
// Deprecated: go/v4 no longer supports v1beta1 option
3030
// 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.
3133
func HasDifferentWebhookVersion(config config.Config, webhookVersion string) bool {
3234
return hasDifferentAPIVersion(config.ListWebhookVersions(), webhookVersion)
3335
}
3436

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.
3639
func hasDifferentAPIVersion(versions []string, version string) bool {
3740
return !(len(versions) == 0 || (len(versions) == 1 && versions[0] == version))
3841
}

0 commit comments

Comments
 (0)