Skip to content

Commit

Permalink
Merge pull request opendatahub-io#328 from openshift-cherrypick-robot…
Browse files Browse the repository at this point in the history
…/cherry-pick-327-to-stable

[stable] fix: add GIT_SSL_CAINFO env variable in odh-notebook-controller
  • Loading branch information
harshad16 authored May 16, 2024
2 parents a5c807f + 68b0a3e commit c1da987
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ func (r *OpenshiftNotebookReconciler) UnsetNotebookCertConfig(notebook *nbv1.Not
log := r.Log.WithValues("notebook", notebook.Name, "namespace", notebook.Namespace)

// Get the notebook object
envVars := []string{"PIP_CERT", "REQUESTS_CA_BUNDLE", "SSL_CERT_FILE", "PIPELINES_SSL_SA_CERTS"}
envVars := []string{"PIP_CERT", "REQUESTS_CA_BUNDLE", "SSL_CERT_FILE", "PIPELINES_SSL_SA_CERTS", "GIT_SSL_CAINFO"}
notebookSpecChanged := false
patch := client.MergeFrom(notebook.DeepCopy())
copyNotebook := notebook.DeepCopy()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,7 @@ func InjectCertConfig(notebook *nbv1.Notebook, configMapName string) error {
"REQUESTS_CA_BUNDLE": configMapMountPath,
"SSL_CERT_FILE": configMapMountPath,
"PIPELINES_SSL_SA_CERTS": configMapMountPath,
"GIT_SSL_CAINFO": configMapMountPath,
}

notebookContainers := &notebook.Spec.Template.Spec.Containers
Expand Down

0 comments on commit c1da987

Please sign in to comment.