blob: 1a26f70ce2f343ff0087cbbfb5bbe37343bcd108 [file] [log] [blame]
#@ load("@ytt:data", "data")
#@ load("@ytt:base64", "base64")
#@ if not data.values.istio.enabled:
apiVersion: v1
kind: Secret
metadata:
name: prometheus-basic-auth
namespace: #@ data.values.namespace
data:
auth: #@ base64.encode(data.values.monitoring.prometheus.server.htpasswd)
type: Opaque
#@ end