Skip to content

Commit

Permalink
Fix decode bytes in kubernetes secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
gregorjerse committed Jun 7, 2024
1 parent e2285b3 commit 5f235ce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions resolwe/flow/managers/workload_connectors/kubernetes.py
Original file line number Diff line number Diff line change
Expand Up @@ -495,9 +495,9 @@ def _secrets(self, data: Data, secrets_name: str) -> dict[str, Any]:
"metadata": {"name": secrets_name},
"immutable": True,
"data": {
"LISTENER_PUBLIC_KEY": b64encode(LISTENER_PUBLIC_KEY),
"CURVE_PUBLIC_KEY": b64encode(data.worker.public_key),
"CURVE_PRIVATE_KEY": b64encode(data.worker.private_key),
"LISTENER_PUBLIC_KEY": b64encode(LISTENER_PUBLIC_KEY).decode(),
"CURVE_PUBLIC_KEY": b64encode(data.worker.public_key).decode(),
"CURVE_PRIVATE_KEY": b64encode(data.worker.private_key).decode(),
},
}

Expand Down

0 comments on commit 5f235ce

Please sign in to comment.