Skip to content

Commit

Permalink
add oauth-proxy to rawdeployments if odh auth label is present
Browse files Browse the repository at this point in the history
  • Loading branch information
VedantMahabaleshwarkar committed Oct 9, 2024
1 parent f69de18 commit 360560d
Show file tree
Hide file tree
Showing 7 changed files with 749 additions and 14 deletions.
1 change: 0 additions & 1 deletion config/overlays/odh/inferenceservice-config-patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ data:
"localGateway" : "istio-system/kserve-local-gateway",
"localGatewayService" : "kserve-local-gateway.istio-system.svc.cluster.local",
"ingressDomain" : "example.com",
"ingressClassName" : "istio",
"domainTemplate": "{{ .Name }}-{{ .Namespace }}.{{ .IngressDomain }}",
"urlScheme": "https",
"disableIstioVirtualHost": false,
Expand Down
12 changes: 12 additions & 0 deletions pkg/constants/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ var (
KnativeServingAPIGroupName = KnativeServingAPIGroupNamePrefix + ".dev"
KServeNamespace = getEnvOrDefault("POD_NAMESPACE", "kserve")
KServeDefaultVersion = "v0.5.0"
KserveServiceAccountName = "kserve-sa"
)

// InferenceService Constants
Expand Down Expand Up @@ -122,6 +123,7 @@ const (
NetworkVisibility = "networking.kserve.io/visibility"
ClusterLocalVisibility = "cluster-local"
ClusterLocalDomain = "svc.cluster.local"
ODHKserveRawAuth = "networking.kserve.io/odh-auth"
)

// StorageSpec Constants
Expand Down Expand Up @@ -414,6 +416,16 @@ const (
SupportedModelMLFlow = "mlflow"
)

// opendatahub rawDeployment Auth
const (
OauthProxyImage = "registry.redhat.io/openshift4/ose-oauth-proxy@sha256:4bef31eb993feb6f1096b51b4876c65a6fb1f4401fee97fa4f4542b6b7c9bc46"
OauthProxyPort = 8443
OauthProxyResourceMemoryLimit = "256Mi"
OauthProxyResourceCPULimit = "100m"
OauthProxyResourceMemoryRequest = "256Mi"
OauthProxyResourceCPURequest = "100m"
)

type ProtocolVersion int

const (
Expand Down
Loading

0 comments on commit 360560d

Please sign in to comment.