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

⚠ WARNING: Since August 28th, 2025, only a limited subset of images/charts are available for free.
    Subscribe to Bitnami Secure Images to receive continued support and security updates.
    More info at https://bitnami.com and https://github.com/bitnami/containers/issues/83267

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

Check the status of the pods by running this command:

  kubectl get pods --namespace {{ include "common.names.namespace" . | quote }} -l app.kubernetes.io/instance={{ .Release.Name }}

Check the Grafana k6 Operator documentation for instructions on how to deploy TestRun objects:

  https://grafana.com/docs/k6/latest/set-up/set-up-distributed-k6/usage/executing-k6-scripts-with-testrun-crd

{{- if .Values.rbac.create }}
{{- if .Values.watchAllNamespaces }}
WARNING: Grafana k6 Operator can access all secrets in the cluster. This could pose a security risk if the application gets compromised.

You can limit accessed namespaces by setting watchAllNamespaces = false
{{- else }}

Grafana k6 Operator will ONLY access resources in the {{ include "common.names.namespace" . }} namespace. It won't access resources in other namespaces. You can configure this behavior by setting watchAllNamespaces=true.

{{- end }}
{{- end }}

{{- include "common.warnings.rollingTag" .Values.image }}
{{- include "common.warnings.rollingTag" .Values.runnerImage }}
{{- include "common.warnings.rollingTag" .Values.starterImage }}
{{- $checkImages := list .Values.runnerImage .Values.starterImage .Values.image }}
{{- $resourcesSections := list "" }}
{{- include "common.warnings.resources" (dict "sections" $resourcesSections "context" .) }}
{{- include "grafana-k6-operator.validateValues" . }}
{{- include "common.warnings.modifiedImages" (dict "images" (list .Values.image .Values.runnerImage .Values.starterImage) "context" $) }}
{{- include "common.errors.insecureImages" (dict "images" $checkImages "context" $) }}
