File tree Expand file tree Collapse file tree 2 files changed +0
-11
lines changed Expand file tree Collapse file tree 2 files changed +0
-11
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ go_library(
8
8
deps = [
9
9
"//staging/src/k8s.io/api/authorization/v1beta1:go_default_library" ,
10
10
"//staging/src/k8s.io/api/rbac/v1beta1:go_default_library" ,
11
- "//staging/src/k8s.io/apimachinery/pkg/api/errors:go_default_library" ,
12
11
"//staging/src/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library" ,
13
12
"//staging/src/k8s.io/apimachinery/pkg/runtime/schema:go_default_library" ,
14
13
"//staging/src/k8s.io/apimachinery/pkg/util/wait:go_default_library" ,
Original file line number Diff line number Diff line change @@ -25,7 +25,6 @@ import (
25
25
"github.com/pkg/errors"
26
26
authorizationv1beta1 "k8s.io/api/authorization/v1beta1"
27
27
rbacv1beta1 "k8s.io/api/rbac/v1beta1"
28
- apierrors "k8s.io/apimachinery/pkg/api/errors"
29
28
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
30
29
"k8s.io/apimachinery/pkg/runtime/schema"
31
30
"k8s.io/apimachinery/pkg/util/wait"
@@ -68,15 +67,6 @@ func WaitForNamedAuthorizationUpdate(c v1beta1authorization.SubjectAccessReviews
68
67
69
68
err := wait .Poll (policyCachePollInterval , policyCachePollTimeout , func () (bool , error ) {
70
69
response , err := c .SubjectAccessReviews ().Create (review )
71
- // GKE doesn't enable the SAR endpoint. Without this endpoint, we cannot determine if the policy engine
72
- // has adjusted as expected. In this case, simply wait one second and hope it's up to date
73
- // TODO: Should have a check for the provider here but that introduces too tight of
74
- // coupling with the `framework` package. See: https://github.com/kubernetes/kubernetes/issues/76726
75
- if apierrors .IsNotFound (err ) {
76
- logf ("SubjectAccessReview endpoint is missing" )
77
- time .Sleep (1 * time .Second )
78
- return true , nil
79
- }
80
70
if err != nil {
81
71
return false , err
82
72
}
You can’t perform that action at this time.
0 commit comments