<!-- Thanks for sending a pull request! Here are some tips for you:
1. Make sure to read the Contributing Guide before submitting your PR: https://github.com/helm/helm/blob/master/CONTRIBUTING.md
2. If this PR closes another issue, add 'closes #<issuenumber>' somewhere in the PR summary. GitHub will automatically close that issue when this PR gets merged. Alternatively, adding 'refs #<issuenumber>' will not close the issue, but help provide the reviewer more context.-->
**What this PR does / why we need it**:
**Special notes for your reviewer**:
**If applicable**:
- [ ] this PR contains documentation
- [ ] this PR contains unit tests
- [ ] this PR has been tested for backwards compatibility
// This will return an error if the characters do not abide by the standard OR if the
// name is left empty.
ifvalidName.MatchString(obj.Metadata.Name){
returnnil
}
returnfmt.Errorf("object name does not conform to Kubernetes naming requirements: %q",obj.Metadata.Name)
}
funcvalidateNoCRDHooks(manifest[]byte)error{
funcvalidateNoCRDHooks(manifest[]byte)error{
ifcrdHookSearch.Match(manifest){
ifcrdHookSearch.Match(manifest){
returnerrors.New("manifest is a crd-install hook. This hook is no longer supported in v3 and all CRDs should also exist the crds/ directory at the top level of the chart")
returnerrors.New("manifest is a crd-install hook. This hook is no longer supported in v3 and all CRDs should also exist the crds/ directory at the top level of the chart")