Merge pull request #3285 from sirferl/kubernetes-plugin

Corrected delivery of TLS format
This commit is contained in:
Hossein Shafagh 2020-12-04 09:58:57 -08:00 committed by GitHub
commit 9836d723d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ def build_secret(secret_format, secret_name, body, private_key, cert_chain):
if secret_format == "TLS": if secret_format == "TLS":
secret["type"] = "kubernetes.io/tls" secret["type"] = "kubernetes.io/tls"
secret["data"] = { secret["data"] = {
"tls.crt": base64encode(body), "tls.crt": base64encode("%s\n%s" % (body, cert_chain)),
"tls.key": base64encode(private_key), "tls.key": base64encode(private_key),
} }
if secret_format == "Certificate": if secret_format == "Certificate":