Add/update deprecation notices

Signed-off-by: Simon Croome <simon.croome@storageos.com>
(cherry picked from commit c50372a8c1)
release-3.5 v3.5.4
Simon Croome 5 years ago committed by Matt Farina
parent 29fc835541
commit 1b5edb69df
No known key found for this signature in database
GPG Key ID: 92C44A3D421FF7F9

@ -65,7 +65,7 @@ var (
// ValidName is a regular expression for resource names.
//
// DEPRECATED: This will be removed in Helm 4, and is no longer used here. See
// pkg/chartutil.ValidateName for the replacement.
// pkg/lint/rules.validateMetadataNameFunc for the replacement.
//
// According to the Kubernetes help text, the regular expression it uses is:
//

@ -96,6 +96,9 @@ func ValidateReleaseName(name string) error {
//
// The Kubernetes documentation is here, though it is not entirely correct:
// https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
//
// Deprecated: remove in Helm 4. Name validation now uses rules defined in
// pkg/lint/rules.validateMetadataNameFunc()
func ValidateMetadataName(name string) error {
if name == "" || len(name) > maxMetadataNameLen || !validName.MatchString(name) {
return errInvalidKubernetesName

Loading…
Cancel
Save