Update plugin.py

This commit is contained in:
Curtis 2018-12-21 12:33:47 -08:00 committed by GitHub
parent b5d6abb01f
commit 6a31856d0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -73,6 +73,7 @@ def _resolve_uri(k8s_base_uri, namespace, kind, name=None, api_ver=DEFAULT_API_V
def base64encode(string): def base64encode(string):
return base64.b64encode(string.encode()).decode() return base64.b64encode(string.encode()).decode()
def build_secret(secret_format, secret_name, body, private_key, cert_chain): def build_secret(secret_format, secret_name, body, private_key, cert_chain):
secret = { secret = {
'apiVersion': 'v1', 'apiVersion': 'v1',
@ -101,6 +102,7 @@ def build_secret(secret_format, secret_name, body, private_key, cert_chain):
} }
return secret return secret
class KubernetesDestinationPlugin(DestinationPlugin): class KubernetesDestinationPlugin(DestinationPlugin):
title = 'Kubernetes' title = 'Kubernetes'
slug = 'kubernetes-destination' slug = 'kubernetes-destination'