Skip to content

Commit

Permalink
Merge pull request #53 from opendatahub-io/stable
Browse files Browse the repository at this point in the history
[master] sync the master branch with upstream stable
  • Loading branch information
harshad16 authored May 16, 2024
2 parents 3ff21ab + c1da987 commit 18986a7
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 5 deletions.
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 @@ -22,15 +22,13 @@ import (
"time"

"github.com/go-logr/logr"
"github.com/onsi/gomega/format"
netv1 "k8s.io/api/networking/v1"
"k8s.io/apimachinery/pkg/api/resource"

. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
routev1 "github.com/openshift/api/route/v1"
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/resource"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/types"
"k8s.io/apimachinery/pkg/util/intstr"
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
2 changes: 0 additions & 2 deletions components/odh-notebook-controller/controllers/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ import (
"testing"
"time"

v1 "k8s.io/api/core/v1"
netv1 "k8s.io/api/networking/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

"go.uber.org/zap/zapcore"
"k8s.io/apimachinery/pkg/runtime"
Expand Down

0 comments on commit 18986a7

Please sign in to comment.