Skip to content

Kubernetes authz throws an error when using "feastdev/feature-server:0.42.0" image #4829

@tchughesiv

Description

@tchughesiv

Expected Behavior

Feast services should run without issue.

Current Behavior

throws an error at startup

Traceback (most recent call last):
  File "/usr/local/bin/feast", line 8, in <module>
    sys.exit(cli())
             ^^^^^
  File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/click/decorators.py", line 33, in new_func
    return f(get_current_context(), *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/feast/cli.py", line 1098, in serve_registry_command
    store.serve_registry(port, tls_key_path, tls_cert_path)
  File "/usr/local/lib/python3.11/site-packages/feast/feature_store.py", line 1957, in serve_registry
    registry_server.start_server(
  File "/usr/local/lib/python3.11/site-packages/feast/registry_server.py", line 769, in start_server
    init_auth_manager(
  File "/usr/local/lib/python3.11/site-packages/feast/permissions/server/utils.py", line 117, in init_auth_manager
    from feast.permissions.auth.kubernetes_token_parser import (
  File "/usr/local/lib/python3.11/site-packages/feast/permissions/auth/kubernetes_token_parser.py", line 5, in <module>
    from kubernetes import client, config
ModuleNotFoundError: No module named 'kubernetes'

Steps to reproduce

enable kubernetes auth in feature_store.yaml -

auth:
    type: kubernetes

Specifications

  • Version: - 0.42.0
  • Platform: container

Possible Solution

Add kubernetes to pip install in Dockerfile

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions