{{- if (and (not .Values.agent.key) (not .Values.zone.name)) }}
##############################################################################
####    ERROR: You did not specify your secret agent key.                 ####
####    ERROR: You also did not specify a zone name for this cluster.     ####
##############################################################################

This agent deployment will be incomplete until you set your agent key and zone name for this cluster:

    helm upgrade {{ .Release.Name }} --reuse-values \
        --set agent.key=$(YOUR_SECRET_AGENT_KEY) \
        --set zone.name=$(YOUR_CLUSTER_NAME) stable/instana-agent

- YOUR_SECRET_AGENT_KEY can be obtained from the Management Portal section of your Instana installation.
- YOUR_CLUSTER_NAME should be a name that uniquely identifies this cluster.

{{- else if not .Values.zone.name }}
##############################################################################
####    ERROR: You did not specify a zone name for this cluster.          ####
##############################################################################

This agent deployment will be incomplete until you set a zone name for this cluster:

    helm upgrade {{ .Release.Name }} --reuse-values \
        --set zone.name=$(YOUR_CLUSTER_NAME) stable/instana-agent

- YOUR_CLUSTER_NAME should be a name that uniquely identifies this cluster.

{{- else if not .Values.agent.key }}
##############################################################################
####    ERROR: You did not specify your secret agent key.                 ####
##############################################################################

This agent deployment will be incomplete until you set your agent key:

    helm upgrade {{ .Release.Name }} --reuse-values \
        --set agent.key=$(YOUR_SECRET_AGENT_KEY) stable/instana-agent

- YOUR_SECRET_AGENT_KEY can be obtained from the Management Portal section of your Instana installation.

{{- else -}}
It may take a few moments for the agents to fully deploy. You can see what agents are running by listing resources in the {{ .Release.Namespace }} namespace:

    kubectl get all -n {{ .Release.Namespace }}

You can get the logs for all of the agents with `kubectl logs`:

    kubectl logs -f $(kubectl get pods -n {{ .Release.Namespace }} -o name) -n {{ .Release.Namespace }} -c instana-agent

{{- end }}
