Skip to content

Commit

Permalink
Merge branch '43-update-chart-components-to-v1.8.0' into 'helmcharts'
Browse files Browse the repository at this point in the history
Resolve "Update chart components to v1.8.0"

Closes kubeflow#43

See merge request mlops/innersource-kubeflow/manifests!20
  • Loading branch information
kromanow94 committed Jul 12, 2024
2 parents ff5cc3b + 915ec55 commit 5ecab5d
Show file tree
Hide file tree
Showing 7 changed files with 72 additions and 34 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,31 +23,31 @@ Environment names for database config.
# This env name is currently hardcoded:
# https://github.com/kubeflow/pipelines/blob/63ca91850a9f42a357f3417110a3011ddbf43290/backend/src/apiserver/client_manager.go#L46
{{- define "kubeflow.pipelines.mlPipeline.config.db.user.env.name" -}}
{{- "DBCONFIG_USER" }}
{{- "DBCONFIG_MYSQLCONFIG_USER" }}
{{- end }}

# This env name is currently hardcoded:
# https://github.com/kubeflow/pipelines/blob/63ca91850a9f42a357f3417110a3011ddbf43290/backend/src/apiserver/client_manager.go#L47
{{- define "kubeflow.pipelines.mlPipeline.config.db.password.env.name" -}}
{{- "DBCONFIG_PASSWORD" }}
{{- "DBCONFIG_MYSQLCONFIG_PASSWORD" }}
{{- end }}

# This env name is currently hardcoded:
# https://github.com/kubeflow/pipelines/blob/63ca91850a9f42a357f3417110a3011ddbf43290/backend/src/apiserver/client_manager.go#L44
{{- define "kubeflow.pipelines.mlPipeline.config.db.host.env.name" -}}
{{- "DBCONFIG_HOST" }}
{{- "DBCONFIG_MYSQLCONFIG_HOST" }}
{{- end }}

# This env name is currently hardcoded:
# https://github.com/kubeflow/pipelines/blob/63ca91850a9f42a357f3417110a3011ddbf43290/backend/src/apiserver/client_manager.go#L45
{{- define "kubeflow.pipelines.mlPipeline.config.db.port.env.name" -}}
{{- "DBCONFIG_PORT" }}
{{- "DBCONFIG_MYSQLCONFIG_PORT" }}
{{- end }}

# This env name is currently hardcoded:
# https://github.com/kubeflow/pipelines/blob/63ca91850a9f42a357f3417110a3011ddbf43290/backend/src/apiserver/client_manager.go#L48
{{- define "kubeflow.pipelines.mlPipeline.config.db.pipelineDatabaseName.env.name" -}}
{{- "DBCONFIG_DBNAME" }}
{{- "DBCONFIG_MYSQLCONFIG_DBNAME" }}
{{- end }}

# This env name is currently hardcoded:
Expand All @@ -56,6 +56,10 @@ Environment names for database config.
{{- "DBCONFIG_CONMAXLIFETIME" }}
{{- end }}

{{- define "kubeflow.pipelines.mlPipeline.config.db.driver.env.name" -}}
{{- "DB_DRIVER_NAME" }}
{{- end }}

{{/*
Environment names for object store config.
*/}}
Expand Down Expand Up @@ -161,6 +165,15 @@ value or through Secrets.
) }}
{{- end }}

{{- define "kubeflow.pipelines.mlPipeline.config.db.driver.env.spec" -}}
{{- include "kubeflow.component.env.spec" (
list
(include "kubeflow.pipelines.mlPipeline.config.db.driver.env.name" . )
.Values.pipelines.config.db.existingSecretName
.Values.pipelines.config.db.driver
) }}
{{- end }}

{{/*
Environment Entries parametrization for object store config with plaintext value
or through Secrets.
Expand Down
4 changes: 4 additions & 0 deletions charts/kubeflow/templates/_helpers/validation.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ Dex validations.
{{- fail "Currently only 'dexIntegration.integrationMode: istio' is supported." -}}
{{- end }}

{{- if (ne .Values.pipelines.config.db.driver.value "mysql" ) -}}
{{- fail "Currently only 'pipelines.config.db.driver: mysql' is supported." -}}
{{- end }}

{{/*
Kubeflow Pipelines validations.
*/}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ spec:
{{- include "kubeflow.pipelines.mlPipeline.config.db.port.env.spec" . | nindent 8 }}
{{- include "kubeflow.pipelines.mlPipeline.config.db.pipelineDatabaseName.env.spec" . | nindent 8 }}
{{- include "kubeflow.pipelines.mlPipeline.config.db.conMaxLifetime.env.spec" . | nindent 8 }}
{{- include "kubeflow.pipelines.mlPipeline.config.db.driver.env.spec" . | nindent 8 }}

{{- include "kubeflow.pipelines.mlPipeline.config.objectStore.accessKey.env.spec" . | nindent 8 }}
{{- include "kubeflow.pipelines.mlPipeline.config.objectStore.secretAccessKey.env.spec" . | nindent 8 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,6 @@ spec:
value: {{ .Values.pipelines.persistenceAgent.config.ttlSecondsAfterWorkflowFinish | quote }}
- name: NUM_WORKERS
value: {{ .Values.pipelines.persistenceAgent.config.numWorkers | quote }}
- name: KUBEFLOW_USERID_HEADER
value: {{ .Values.auth.userHeaderName | quote }}
- name: KUBEFLOW_USERID_PREFIX
value: {{ .Values.auth.userIdPrefix | quote }}
- name: MULTIUSER
value: {{ (include "kubeflow.isMultiuser" .) | quote }}
- name: NAMESPACE
{{- if (include "kubeflow.deploymentMode.namespace" .) }}
valueFrom:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,11 @@ rules:
verbs:
- report
- apiGroups:
- ''
- pipelines.kubeflow.org
resources:
- namespaces
- runs
verbs:
- get
- reportMetrics
- readArtifact

{{- end }}
28 changes: 28 additions & 0 deletions charts/kubeflow/templates/profiles-controller/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@ spec:
- {{ default "" .Values.profilesController.config.workloadIdentity | quote }}

env:
- name: ADMIN
value: {{ default "" .Values.profilesController.config.admin | quote }}
- name: WORKLOAD_IDENTITY
value: {{ default "" .Values.profilesController.config.workloadIdentity | quote }}
- name: USERID_HEADER
value: {{ .Values.auth.userHeaderName | quote }}
- name: USERID_PREFIX
value: {{ default "" .Values.auth.userIdPrefix | quote }}
- name: NOTEBOOK_CONTROLLER_PRINCIPAL
value: {{ include "kubeflow.notebooks.controller.serviceAccountPrincipal" . }}
- name: KFP_UI_PRINCIPAL
Expand Down Expand Up @@ -72,6 +80,7 @@ spec:
- name: kfam
image: {{ include "kubeflow.profilesController.kfam.image" . }}
imagePullPolicy: {{ include "kubeflow.profilesController.kfam.imagePullPolicy" . }}

command:
- /access-management
- "-cluster-admin"
Expand All @@ -80,6 +89,25 @@ spec:
- {{ .Values.auth.userHeaderName | quote }}
- "-userid-prefix"
- {{ default "" .Values.auth.userIdPrefix | quote }}

env:
- name: ADMIN
value: {{ default "" .Values.profilesController.config.admin | quote }}
- name: WORKLOAD_IDENTITY
value: {{ default "" .Values.profilesController.config.workloadIdentity | quote }}
- name: USERID_HEADER
value: {{ .Values.auth.userHeaderName | quote }}
- name: USERID_PREFIX
value: {{ default "" .Values.auth.userIdPrefix | quote }}
- name: NOTEBOOK_CONTROLLER_PRINCIPAL
value: {{ include "kubeflow.notebooks.controller.serviceAccountPrincipal" . }}
- name: KFP_UI_PRINCIPAL
value: {{ include "kubeflow.pipelines.ui.serviceAccountPrincipal" . }}
{{- if (include "kubeflow.istioIntegration.enabled" . ) }}
- name: ISTIO_INGRESS_GATEWAY_PRINCIPAL
value: {{ include "kubeflow.istioIntegration.istioIngressGateway.serviceAccountPrincipal" . }}
{{- end }}

livenessProbe:
httpGet:
path: /metrics
Expand Down
37 changes: 17 additions & 20 deletions charts/kubeflow/values.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# NOTE: the manifests were taken from kubeflow/manifests with tag v1.8.0-rc.1 (or v1.8.0-rc.0)

# NOTE: try disabling cache in the ml-pipeline
# or, try using newer version

Expand Down Expand Up @@ -300,15 +298,15 @@ notebooks:
################################################################
image:
# the default container image
value: kubeflownotebookswg/jupyter-scipy:v1.8.0-rc.0
value: kubeflownotebookswg/jupyter-scipy:v1.8.0

# the list of available container images in the dropdown
options:
- kubeflownotebookswg/jupyter-scipy:v1.8.0-rc.0
- kubeflownotebookswg/jupyter-pytorch-full:v1.8.0-rc.0
- kubeflownotebookswg/jupyter-pytorch-cuda-full:v1.8.0-rc.0
- kubeflownotebookswg/jupyter-tensorflow-full:v1.8.0-rc.0
- kubeflownotebookswg/jupyter-tensorflow-cuda-full:v1.8.0-rc.0
- kubeflownotebookswg/jupyter-scipy:v1.8.0
- kubeflownotebookswg/jupyter-pytorch-full:v1.8.0
- kubeflownotebookswg/jupyter-pytorch-cuda-full:v1.8.0
- kubeflownotebookswg/jupyter-tensorflow-full:v1.8.0
- kubeflownotebookswg/jupyter-tensorflow-cuda-full:v1.8.0

################################################################
# VSCode-like Container Images (Group 1)
Expand All @@ -323,11 +321,11 @@ notebooks:
################################################################
imageGroupOne:
# the default container image
value: kubeflownotebookswg/codeserver-python:v1.8.0-rc.0
value: kubeflownotebookswg/codeserver-python:v1.8.0

# the list of available container images in the dropdown
options:
- kubeflownotebookswg/codeserver-python:v1.8.0-rc.0
- kubeflownotebookswg/codeserver-python:v1.8.0

################################################################
# RStudio-like Container Images (Group 2)
Expand All @@ -344,11 +342,11 @@ notebooks:
################################################################
imageGroupTwo:
# the default container image
value: kubeflownotebookswg/rstudio-tidyverse:v1.8.0-rc.0
value: kubeflownotebookswg/rstudio-tidyverse:v1.8.0

# the list of available container images in the dropdown
options:
- kubeflownotebookswg/rstudio-tidyverse:v1.8.0-rc.0
- kubeflownotebookswg/rstudio-tidyverse:v1.8.0

################################################################
# CPU Resources
Expand Down Expand Up @@ -392,12 +390,11 @@ notebooks:
# the list of available vendors in the dropdown
# `limitsKey` - what will be set as the actual limit
# `uiName` - what will be displayed in the dropdown UI
vendors: []
#vendors:
# - limitsKey: "nvidia.com/gpu"
# uiName: "NVIDIA"
# - limitsKey: "amd.com/gpu"
# uiName: "AMD"
vendors:
- limitsKey: "nvidia.com/gpu"
uiName: "NVIDIA"
- limitsKey: "amd.com/gpu"
uiName: "AMD"

# the default value of the limit
# (possible values: "none", "1", "2", "4", "8")
Expand Down Expand Up @@ -823,7 +820,7 @@ pipelines:
# the container images are stored in a different registry.
image:
registry: gcr.io/ml-pipeline
tag: 2.0.1
tag: 2.0.5
pullPolicy: IfNotPresent
config:
# If this is empty, the kfp backend will automatically configure that with:
Expand Down Expand Up @@ -1322,7 +1319,7 @@ pipelines:
image:
registryOverwrite: gcr.io/tfx-oss-public
repository: ml_metadata_store_server
tagOverwrite: 1.5.0
tagOverwrite: 1.14.0
pullPolicyOverwrite:
resources:
# requests:
Expand Down

0 comments on commit 5ecab5d

Please sign in to comment.