10000 Add default/allowed ImageVersion to ConfigMap by yuzisun · Pull Request #422 · kserve/kserve · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add default/allowed ImageVersion to ConfigMap #422

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

Merged
merged 10 commits into from
Oct 9, 2019
Merged

Add default/allowed ImageVersion to ConfigMap #422

merged 10 commits into from
Oct 9, 2019

Conversation

yuzisun
Copy link
Member
@yuzisun yuzisun commented Oct 8, 2019

What this PR does / why we need it:

  • Add defaultImageVersion and allowedImageVersions to configmap
  • Regenerate API Docs
  • ConfigMap structs should not be generated and surfaced on API Docs

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #416, #334

Update ConfigMap in 0.2.0 release manifests with default/allowed image versions. 

This change is Reviewable

@yuzisun yuzisun changed the title Image config Add default/allowed ImageVersion to ConfigMap Oct 8, 2019
Copy link
Contributor
@ellistarn ellistarn left a comment

Choose a reason for hiding this comment

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

Cool! Let's
/hold
off on this until we get the name change in.

A couple comments. WDYT?

@@ -0,0 +1,53 @@
package v1alpha2
Copy link
Contributor

Choose a reason for hiding this comment

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

Not that we have to follow it, but I quite like knative's pattern here: https://github.com/knative/serving/blob/master/pkg/apis/config/defaults.go

I see types as decoupled from the configmap. The controller may serve multiple APIs, but can only read one configmap.

Copy link
Member Author

Choose a reason for hiding this comment

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

I looked through, they actually use context to pass along the default values from configmaps.
https://github.com/knative/serving/blob/master/pkg/apis/serving/v1/service_defaults.go#L31

"0.2.3",
}
InvalidAlibiRuntimeVersionError = "RuntimeVersion must be one of " + strings.Join(AllowedAlibiRuntimeVersions, ", ")
AlibiImageName = "docker.io/seldonio/alibiexplainer"
Copy link
Contributor
8000

Choose a reason for hiding this comment

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

If the configmap defines this, why bother even hardcoding it here?

Copy link
Contributor

Choose a reason for hiding this comment

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

We can validate that the configmap and all these keys exist when starting up the controller, and crash it otherwise.

@ellistarn
Copy link
Contributor

/lgtm
/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ellis-bigelow

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot removed the lgtm label Oct 9, 2019
@yuzisun
Copy link
Member Author
yuzisun commented Oct 9, 2019

/unhold

@yuzisun
Copy link
Member Author
yuzisun commented Oct 9, 2019

/hold cancel

@yuzisun
Copy link
Member Author
yuzisun commented Oct 9, 2019

/retest

@ellistarn
Copy link
Contributor

/lgtm

@k8s-ci-robot k8s-ci-robot merged commit 282def3 into kserve:master Oct 9, 2019
@yuzisun yuzisun deleted the image_config branch November 29, 2019 19:53
ellistarn pushed a commit to ellistarn/kfserving that referenced this pull request Jul 28, 2020
* Make defaultImageVersion and allowedImageVersions configurable

* Update API docs

* Regenerate apidocs

* Update apidocs

* rebase inference service rename

* Fix with InferenceService

* Use inference endpoints configmap on the interface

* Add framework tests

* Move configmap constants

* Remove hardcoded image names and default version
Jooho referenced this pull request in Jooho/kserve Jul 19, 2024
…tudio-kserve-storage-initializer-hermetic-poc

Red Hat Konflux update kserve-storage-initializer-hermetic-poc
hdefazio pushed a commit to hdefazio/kserve that referenced this pull request Nov 20, 2024
Revert 'Increase memory limit of kserve-controller pod'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Predictor images should default to a pinned tag instead of latest
3 participants
0