-
Notifications
You must be signed in to change notification settings - Fork 21
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
add oauth-proxy to rawdeployments if odh auth label is present #419
base: master
Are you sure you want to change the base?
Changes from all commits
da8dc3a
ae2a13a
a89f2bd
05ef572
a94bdb6
25fd6aa
363289e
693027b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ kserve-controller=quay.io/opendatahub/kserve-controller:latest | |
kserve-agent=quay.io/opendatahub/kserve-agent:latest | ||
kserve-router=quay.io/opendatahub/kserve-router:latest | ||
kserve-storage-initializer=quay.io/opendatahub/kserve-storage-initializer:latest | ||
oauth-proxy=registry.redhat.io/openshift4/ose-oauth-proxy@sha256:4bef31eb993feb6f1096b51b4876c65a6fb1f4401fee97fa4f4542b6b7c9bc46 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This image is extremely old, and with Please, use a newer one. |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -38,6 +38,7 @@ var ( | |||||
KnativeServingAPIGroupName = KnativeServingAPIGroupNamePrefix + ".dev" | ||||||
KServeNamespace = getEnvOrDefault("POD_NAMESPACE", "kserve") | ||||||
KServeDefaultVersion = "v0.5.0" | ||||||
KserveServiceAccountName = "kserve-sa" | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Take into consideration my comment from the other PR: opendatahub-io/odh-model-controller#274 (comment) |
||||||
) | ||||||
|
||||||
// InferenceService Constants | ||||||
|
@@ -122,6 +123,8 @@ const ( | |||||
NetworkVisibility = "networking.kserve.io/visibility" | ||||||
ClusterLocalVisibility = "cluster-local" | ||||||
ClusterLocalDomain = "svc.cluster.local" | ||||||
ODHKserveRawAuth = "security.opendatahub.io/enable-auth" | ||||||
ODHRouteEnabled = "enable-route" | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe change to
Suggested change
The label would then read as |
||||||
) | ||||||
|
||||||
// StorageSpec Constants | ||||||
|
@@ -414,6 +417,16 @@ const ( | |||||
SupportedModelMLFlow = "mlflow" | ||||||
) | ||||||
|
||||||
// opendatahub rawDeployment Auth | ||||||
const ( | ||||||
OauthProxyImage = "registry.redhat.io/openshift4/ose-oauth-proxy@sha256:4bef31eb993feb6f1096b51b4876c65a6fb1f4401fee97fa4f4542b6b7c9bc46" | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we need to expose this config? e.g. any updates in the image would require code change in KServe There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we don't update this oauth proxy image very frequently at all, but do you think I should add it to the configmap and try to consume it from there? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It is better exposing the config, as it allow users quickly moving to another image in case this one becomes vulnerable. Also, all the other Oauth related constants should be exposed. These should be defaults and users should be capable of customizing, since we don't know how much load there will be which would determine the amount of memory and CPU to be assigned. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done, kept these constants as fallback values but PR includes changes to the kserve manifests where the oauth proxy params are defined There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks! LGTM There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. See my other comment: https://github.com/opendatahub-io/kserve/pull/419/files#r1805239200 |
||||||
OauthProxyPort = 8443 | ||||||
OauthProxyResourceMemoryLimit = "256Mi" | ||||||
OauthProxyResourceCPULimit = "100m" | ||||||
OauthProxyResourceMemoryRequest = "256Mi" | ||||||
OauthProxyResourceCPURequest = "100m" | ||||||
) | ||||||
|
||||||
type ProtocolVersion int | ||||||
|
||||||
const ( | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is commenting these out intentional?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed in update
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are still commented out?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I'm still seeing comments here...