File tree Expand file tree Collapse file tree 4 files changed +8
-6
lines changed
src/llama_stack_provider_ragas Expand file tree Collapse file tree 4 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ providers:
2121 namespace : ${env.KUBEFLOW_NAMESPACE}
2222 llama_stack_url : ${env.KUBEFLOW_LLAMA_STACK_URL}
2323 base_image : ${env.KUBEFLOW_BASE_IMAGE}
24- pipelines_token : ${env.KUBEFLOW_PIPELINES_TOKEN:=}
24+ pipelines_api_token : ${env.KUBEFLOW_PIPELINES_TOKEN:=}
2525 datasetio :
2626 - provider_id : localfs
2727 provider_type : inline::localfs
Original file line number Diff line number Diff line change @@ -213,7 +213,7 @@ eval:
213213 namespace: ${env.KUBEFLOW_NAMESPACE}
214214 llama_stack_url: ${env.KUBEFLOW_LLAMA_STACK_URL}
215215 base_image: ${env.KUBEFLOW_BASE_IMAGE}
216- pipelines_token : ${env.KUBEFLOW_PIPELINES_TOKEN:=}
216+ pipelines_api_token : ${env.KUBEFLOW_PIPELINES_TOKEN:=}
217217----
218218
219219To run with the sample distribution:
Original file line number Diff line number Diff line change 11from llama_stack .schema_utils import json_schema_type
2- from pydantic import BaseModel , Field
2+ from pydantic import BaseModel , Field , SecretStr
33
44
55class RagasConfig (BaseModel ):
@@ -112,7 +112,7 @@ class KubeflowConfig(BaseModel):
112112 default = None ,
113113 )
114114
115- pipelines_token : str | None = Field (
115+ pipelines_api_token : SecretStr | None = Field (
116116 description = (
117117 "Kubeflow Pipelines token with access to submit pipelines. "
118118 "If not provided via env var, the token will be read from the local kubeconfig file."
Original file line number Diff line number Diff line change @@ -109,9 +109,11 @@ def kfp_client(self):
109109 return self ._kfp_client
110110
111111 def _get_kfp_token (self ) -> str :
112- if self .config .kubeflow_config .pipelines_token :
112+ if self .config .kubeflow_config .pipelines_api_token :
113113 logger .info ("Using KUBEFLOW_PIPELINES_TOKEN from config" )
114- return self .config .kubeflow_config .pipelines_token
114+ return str (
115+ self .config .kubeflow_config .pipelines_api_token .get_secret_value ()
116+ )
115117
116118 try :
117119 from .kubeflow .utils import _load_kube_config
You can’t perform that action at this time.
0 commit comments