blob: 01de10469c2ffa504658154cc49d724055931bb7 [file] [log] [blame]
#@ load("@ytt:data", "data")
#@ load("@ytt:base64", "base64")
apiVersion: v1
kind: Secret
metadata:
name: prometheus-secrets
namespace: #@ data.values.namespace
data:
#@yaml/text-templated-strings
#@ for gerrit in data.values.gerritServers:
.pwd_(@= gerrit.host @): #@ base64.encode(gerrit.password)
#@ end
#@ if not data.values.tls.skipVerify:
server.ca.crt: #@ base64.encode(data.values.tls.caCert)
server.crt: #@ base64.encode(data.values.prometheus.server.tls.cert)
server.key: #@ base64.encode(data.values.prometheus.server.tls.key)
#@ end
type: Opaque