The generated _helpers.tpl builds helm.sh/chart with
`replace "+" "_" | trunc 63 | trimSuffix "-"`. Kubernetes label values
must also not end in "." or "_", so a version whose 63-character cut
lands on either produces a value the API server rejects. The
app.kubernetes.io/version label emits .Chart.AppVersion unmodified and
is invalid for any appVersion over 63 characters or containing "+".
Use `trimAll "-_."` after truncation for helm.sh/chart, and apply the
same replace/trunc/trim chain to app.kubernetes.io/version, in both the
v2 and the internal v3 scaffold. Add a test that renders the generated
chart with such versions and validates the labels with
k8s.io/apimachinery's IsValidLabelValue.
Signed-off-by: KR Ravindra <42912207+KR-Ravindra@users.noreply.github.com>