Skip to content

Commit

Permalink
fix: add GIT_SSL_CAINFO env variable in odh-notebook-controller
Browse files Browse the repository at this point in the history
  • Loading branch information
rkpattnaik780 committed May 14, 2024
1 parent ee20d44 commit b3be81d
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 @@ -375,7 +375,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 @@ -335,6 +335,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 b3be81d

Please sign in to comment.