Skip to content

Commit

Permalink
fix: Decode base64 back to ascii
Browse files Browse the repository at this point in the history
  • Loading branch information
Nightknight3000 committed Aug 7, 2024
1 parent 435c6d2 commit a98e853
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/k8s/kubernetes.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def create_harbor_secret(user: str,
{server_address:
{"username": user,
"password": password,
"auth": base64.b64encode(f'{user}:{password}'.encode("ascii"))}}})}
"auth": base64.b64encode(f'{user}:{password}'.encode("ascii")).decode("ascii")}}})}
)
try:
core_client.create_namespaced_secret(namespace=namespace, body=secret)
Expand Down

0 comments on commit a98e853

Please sign in to comment.