CHART NAME: {{ .Chart.Name }}
CHART VERSION: {{ .Chart.Version }}
APP VERSION: {{ .Chart.AppVersion }}

** Please be patient while the chart is being deployed **

The metric server has been deployed.
{{ if or .Values.apiService.create (.Capabilities.APIVersions.Has "metrics.k8s.io/v1beta1") }}
In a few minutes you should be able to list metrics using the following
command:

  kubectl get --raw "/apis/metrics.k8s.io/v1beta1/nodes"
{{ else }}
###################################################################################
### ERROR: The metrics.k8s.io/v1beta1 API service is not enabled in the cluster ###
###################################################################################
You have disabled the API service creation for this release. As the Kubernetes version in the cluster
does not have metrics.k8s.io/v1beta1, the metrics API will not work with this release unless:

Option A:

  You complete your metrics-server release by running:

  helm upgrade --namespace {{ .Release.Namespace }} {{ .Release.Name }} bitnami/metrics-server \
    --set apiService.create=true

Option B:

   You configure the metrics API service outside of this Helm chart
{{- end -}}

{{- include "metrics-server.validateValues" . }}
{{- include "metrics-server.checkRollingTags" . }}

