Skip to content

Commit

Permalink
[k8s] fix another security lint warning
Browse files Browse the repository at this point in the history
  • Loading branch information
yashgorana committed Feb 2, 2024
1 parent 892dd4c commit 9efdec9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/syft/src/syft/custom_worker/k8s.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ class KubeUtils:
This is to avoid calling these functions on resources across namespaces!
"""

OPAQUE_SECRET = "Opaque"
OPAQUE_SECRET_TYPE = "Opaque"

@staticmethod
def resolve_pod(client: kr8s.Api, pod: Union[str, Pod]) -> Optional[Pod]:
Expand Down
2 changes: 1 addition & 1 deletion packages/syft/src/syft/service/worker/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ def prepare_worker_pool_env(runner: KubernetesRunner, env_vars: dict):
# create a secret for the node credentials owned by the backend, not the pool.
node_secret = KubeUtils.create_secret(
secret_name=K8S_NODE_CREDS_NAME,
type=KubeUtils.OPAQUE_SECRET,
type=KubeUtils.OPAQUE_SECRET_TYPE,
component=backend_pod_name,
data={creds_path.name: creds_path.read_text()},
encoded=False,
Expand Down

0 comments on commit 9efdec9

Please sign in to comment.