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

feat(Server): Add Server capabilities that will overrride ServerConfig capabilities #4975

Merged
merged 2 commits into from
Jul 5, 2023
Merged

feat(Server): Add Server capabilities that will overrride ServerConfig capabilities #4975

merged 2 commits into from
Jul 5, 2023

Conversation

ukclivecox
Copy link
Contributor

@ukclivecox ukclivecox commented Jul 4, 2023

Fixes: #4968

  • Adds a new 'capabilities` field for Servers which overrides the ServerConfig capabilities
  • Add a new notebook with examples of both
  • Add notebook to docs

@ukclivecox ukclivecox added the v2 label Jul 4, 2023
@ukclivecox ukclivecox requested a review from sakoush July 4, 2023 16:02
@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

Copy link
Member

@sakoush sakoush left a comment

Choose a reason for hiding this comment

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

LGTM

capabilitiesStr := strings.Join(extraCapabilities, ",")
val := fmt.Sprintf("%s,%s", envVar.Value, capabilitiesStr)
container.Env[idx] = v1.EnvVar{Name: EnvVarNameCapabilities, Value: val}
if len(capabilities) > 0 {
Copy link
Member

Choose a reason for hiding this comment

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

maybe add a note in code and docs that capabilities is going to take precedence?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed docs in 3ebe7f9
Also removed deprecated comment for now.

@ukclivecox ukclivecox merged commit 79a0295 into SeldonIO:v2 Jul 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants