#@ 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 |