Skip to content

Commit

Permalink
Removed the k8s dependency from required dependencies
Browse files Browse the repository at this point in the history
Signed-off-by: Abdul Hameed <[email protected]>
  • Loading branch information
redhatHameed committed Sep 16, 2024
1 parent ddecae8 commit 4840219
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 4 additions & 1 deletion sdk/python/feast/permissions/server/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
AuthManager,
set_auth_manager,
)
from feast.permissions.auth.kubernetes_token_parser import KubernetesTokenParser
from feast.permissions.auth.oidc_token_parser import OidcTokenParser
from feast.permissions.auth.token_extractor import TokenExtractor
from feast.permissions.auth.token_parser import TokenParser
Expand Down Expand Up @@ -116,6 +115,10 @@ def init_auth_manager(
raise ValueError(f"Unmanaged server type {server_type}")

if auth_type == AuthManagerType.KUBERNETES:
from feast.permissions.auth.kubernetes_token_parser import (
KubernetesTokenParser,
)

token_parser = KubernetesTokenParser()
elif auth_type == AuthManagerType.OIDC:
assert isinstance(auth_config, OidcAuthConfig)
Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@
"psutil",
"bigtree>=0.19.2",
"pyjwt",
"kubernetes<=20.13.0",
]

GCP_REQUIRED = [
Expand Down

0 comments on commit 4840219

Please sign in to comment.