Skip to content

Commit

Permalink
feat: add SSO impersonate feature
Browse files Browse the repository at this point in the history
Signed-off-by: Mathew Wicks <[email protected]>
  • Loading branch information
thesuperzapper committed Nov 18, 2021
1 parent 91e72f3 commit 1795a1f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions test/e2e/metrics_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ func (s *MetricsSuite) TestMetricsEndpoint() {
Body().
Contains(`HELP argo_workflows_count`).
Contains(`HELP argo_workflows_k8s_request_total`).
Contains(`argo_workflows_k8s_request_total{kind="leases",status_code="200",verb="Get"}`).
Contains(`argo_workflows_k8s_request_total{kind="workflowtemplates",status_code="200",verb="List"}`).
Contains(`argo_workflows_k8s_request_total{kind="workflowtemplates",status_code="200",verb="Watch"}`).
Contains(`argo_workflows_k8s_request_total{kind="leases",status_code="200",verb="get"}`).
Contains(`argo_workflows_k8s_request_total{kind="workflowtemplates",status_code="200",verb="list"}`).
Contains(`argo_workflows_k8s_request_total{kind="workflowtemplates",status_code="200",verb="watch"}`).
Contains(`HELP argo_workflows_pods_count`).
Contains(`HELP argo_workflows_workers_busy`).
Contains(`HELP argo_workflows_workflow_condition`).
Expand Down
5 changes: 3 additions & 2 deletions util/k8s/parse.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package k8s

import (
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
"net/http"
"regexp"

"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)

type kubeRequest struct {
Expand Down

0 comments on commit 1795a1f

Please sign in to comment.