Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update LMEvalJob CRD to pass secrets #23

Merged
merged 1 commit into from
Jul 24, 2024
Merged

Update LMEvalJob CRD to pass secrets #23

merged 1 commit into from
Jul 24, 2024

Conversation

yhwang
Copy link
Collaborator

@yhwang yhwang commented Jul 23, 2024

Add the envSecrets field to pass the secrets.
Each of the EnvSecret could be either an API key
or a secret object reference.

fixed: #17

@yhwang yhwang requested a review from gabe-l-hart July 23, 2024 04:29
Copy link

@gabe-l-hart gabe-l-hart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great! One thought to extend this to support reading from files as well, but otherwise I think it's good to go

api/v1beta1/lmevaljob_types.go Show resolved Hide resolved
backend/controller/lmevaljob_controller.go Show resolved Hide resolved
backend/controller/lmevaljob_controller.go Show resolved Hide resolved
backend/driver/driver.go Show resolved Hide resolved
Add the `envSecrets` field to pass the secrets.
Each of the EnvSecret could be either an API key
or a secret object reference.

Signed-off-by: Yihong Wang <[email protected]>
@yhwang yhwang force-pushed the add-secret-to-crd branch from 5248cbb to 159af39 Compare July 23, 2024 23:55
@yhwang yhwang requested a review from gabe-l-hart July 24, 2024 00:03
@yhwang
Copy link
Collaborator Author

yhwang commented Jul 24, 2024

add file type secret support and update the REST APIs (both YAML and JSON files).

Copy link

@gabe-l-hart gabe-l-hart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! One outstanding question about where the TLS files are coming from for the tests, but otherwise I think it's ready to go.

@yhwang yhwang merged commit 38689a3 into main Jul 24, 2024
3 checks passed
@yhwang yhwang deleted the add-secret-to-crd branch July 24, 2024 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow users to pass their API keys
2 participants