== Why is this an issue?

include::../description.adoc[]


Use `.Capabilities.KubeVersion.Version` instead of the deprecated call to `.Capabilities.KubeVersion.GitVersion`

[source,text]
----
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ .Release.Name }}-configmap
data:
  myvalue: "Hello World"
  kubeVersionDeprecated: {{ .Capabilities.KubeVersion.GitVersion }} # Noncompliant
  kubeVersion: {{ .Capabilities.KubeVersion.Version }}
----

include::../see.adoc[]

* Go Documentation - https://pkg.go.dev/helm.sh/helm/v3/pkg/chartutil#KubeVersion.GitVersion[Deprecated KubeVersion.GitVersion]

* Helm Documentation - https://helm.sh/docs/intro/using_helm/#helpful-options-for-installupgraderollback/[Helm Charts]

ifdef::env-github,rspecator-view[]

'''
== Implementation Specification
(visible only on this page)

=== Message

Remove this deprecated use of XXX, use YYY instead.

=== Highlighting

* Highlight the code that is deprecated
endif::env-github,rspecator-view[]