Skip to content

Commit cbccafa

Browse files
Merge pull request #3271 from varshaprasad96/fix-lint
🌱 [fix] Linter errors for deprecation message
2 parents 349d3f4 + 997240a commit cbccafa

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
@@ -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.
2627
func 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.
3335
func 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.
3942
func hasDifferentAPIVersion(versions []string, version string) bool {
4043
return !(len(versions) == 0 || (len(versions) == 1 && versions[0] == version))
4144
}

0 commit comments

Comments
 (0)