diff --git a/cluster-agent/templates/secret-cluster-agent.yaml b/cluster-agent/templates/secret-cluster-agent.yaml index 9087c2f..d85d7c9 100644 --- a/cluster-agent/templates/secret-cluster-agent.yaml +++ b/cluster-agent/templates/secret-cluster-agent.yaml @@ -1,3 +1,4 @@ +{{- if not .Values.controllerInfo.existingSecret }} {{ $secret := (lookup "v1" "Secret" .Release.Namespace "cluster-agent-secret") }} {{ $annotations := dict "temp" "temp" }} {{ if $secret }} @@ -25,4 +26,5 @@ data: {{- end -}} {{- end -}} {{ end -}} -{{ end -}} \ No newline at end of file +{{ end -}} +{{- end }} \ No newline at end of file diff --git a/cluster-agent/values.yaml b/cluster-agent/values.yaml index 565936a..082f3ce 100644 --- a/cluster-agent/values.yaml +++ b/cluster-agent/values.yaml @@ -20,6 +20,7 @@ imageInfo: # AppDynamics controller info (VALUES TO BE PROVIDED BY THE USER) controllerInfo: + existingSecret: false url: null account: null username: null