thoth-station / user-api

Web Service exposing Thoth functions to the RESTful worlds
https://thoth-station.github.io/
GNU General Public License v3.0
8 stars 18 forks source link

Failing user-api due to kubernetes issue #1809

Closed harshad16 closed 1 year ago

harshad16 commented 1 year ago

Describe the bug

User-api is failing with kube-config configuration issue. Due to https://github.com/thoth-station/user-api/blob/a4334c9c38ab9b1a5038a1514c64d549f74371e3/thoth/user_api/api_v1.py#L111

  File \"/opt/app-root/src/thoth/user_api/api_v1.py\", line 111, in <module>
    k8.config.load_kube_config()
  File \"/opt/app-root/lib64/python3.8/site-packages/kubernetes/config/kube_config.py\", line 737, in load_kube_config
    loader = _get_kube_config_loader_for_yaml_file(
  File \"/opt/app-root/lib64/python3.8/site-packages/kubernetes/config/kube_config.py\", line 700, in _get_kube_config_loader_for_yaml_file
    raise ConfigException(
kubernetes.config.config_exception.ConfigException: Invalid kube-config file. No configuration found.
goern commented 1 year ago

/sig devsecops /priority critical-urgent /triage accepted

goern commented 1 year ago

/lifecycle active