string to bytes like and back
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Tobias Trabelsi 2022-09-10 15:30:14 +02:00
parent 4f3fc82e48
commit 600de43344
Signed by: lerentis
GPG Key ID: FF0C2839718CAF2E

View File

@ -23,8 +23,8 @@ def create_fn(spec, name, namespace, logger, **kwargs):
original_crd=name,
secret_name=secret_name,
namespace=secret_namespace,
username=base64.b64encode("test"),
password=base64.b64encode("test")
username=str(base64.b64encode("test".encode("utf-8")), "utf-8"),
password=str(base64.b64encode("test".encode("utf-8")), "utf-8")
)
obj = api.create_namespaced_secret(