Skip to content

Commit

Permalink
Merge pull request #171 from harshad16/revert-skip-provide-button-fla…
Browse files Browse the repository at this point in the history
…g-v1.7

Revert "Remove skip-provider-button flag from oauth configs"
  • Loading branch information
harshad16 authored Sep 11, 2023
2 parents c752fd9 + ac738de commit de72e7f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,7 @@ var _ = Describe("The Openshift Notebook controller", func() {
"--upstream=http://localhost:8888",
"--upstream-ca=/var/run/secrets/kubernetes.io/serviceaccount/ca.crt",
"--email-domain=*",
"--skip-provider-button",
`--openshift-sar={"verb":"get","resource":"notebooks","resourceAPIGroup":"kubeflow.org",` +
`"resourceName":"` + Name + `","namespace":"$(NAMESPACE)"}`,
"--logout-url=https://example.notebook-url/notebook/" + Namespace + "/" + Name,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ import (
"context"
"encoding/json"
"fmt"
"net/http"

configv1 "github.com/openshift/api/config/v1"
"net/http"

nbv1 "github.com/kubeflow/kubeflow/components/notebook-controller/api/v1"
"github.com/kubeflow/kubeflow/components/notebook-controller/pkg/culler"
Expand Down Expand Up @@ -92,6 +91,7 @@ func InjectOAuthProxy(notebook *nbv1.Notebook, oauth OAuthConfig) error {
"--upstream=http://localhost:8888",
"--upstream-ca=/var/run/secrets/kubernetes.io/serviceaccount/ca.crt",
"--email-domain=*",
"--skip-provider-button",
`--openshift-sar={"verb":"get","resource":"notebooks","resourceAPIGroup":"kubeflow.org",` +
`"resourceName":"` + notebook.Name + `","namespace":"$(NAMESPACE)"}`,
},
Expand Down

0 comments on commit de72e7f

Please sign in to comment.