Fix validation in agent chart
{{if ne .Release.Namespace .Values.internal.systemNamespace }}
-{{ fail "This chart must be installed in the namespace fleet-system as the release name fleet-agent" }}
+{{ fail (printf "This chart must be installed in the namespace %s as the release name fleet-agent" .Values.internal.systemNamespace) }}
{{end}}
{{if ne .Release.Name .Values.internal.managedReleaseName }}
-{{ fail "This chart must be installed in the namespace fleet-system as the release name fleet-agent" }}
+{{ fail (printf "This chart must be installed in the namespace %s as the release name fleet-agent" .Values.internal.managedReleaseName) }}
{{end}}
-{{if not .apiServerURL }}
+{{if not .Values.apiServerURL }}
{{ fail "apiServerURL is required to be set, and most likely also apiServerCA" }}
{{end}}
