Browse Source

For failing tests

Burak Yuksel 4 years ago
parent
commit
2f1a5b8ee7

+ 0 - 1
pkg/provider/kubernetes/kubernetes.go

@@ -240,7 +240,6 @@ func (k *BaseClient) fetchSecretKey(ctx context.Context, key esmeta.SecretKeySel
 }
 
 func (k *ProviderKubernetes) Validate() error {
-
 	ctx := context.Background()
 
 	authReview, err := k.ReviewClient.Create(ctx, &authv1.SelfSubjectAccessReview{

+ 1 - 1
pkg/provider/kubernetes/kubernetes_test.go

@@ -52,7 +52,7 @@ type fakeReviewClient struct {
 	authReview *authv1.SelfSubjectAccessReview
 }
 
-func (fk fakeReviewClient) Create(ctx context.Context, SelfSubjectAccessReview *authv1.SelfSubjectAccessReview, opts metav1.CreateOptions) (*authv1.SelfSubjectAccessReview, error) {
+func (fk fakeReviewClient) Create(ctx context.Context, selfSubjectAccessReview *authv1.SelfSubjectAccessReview, opts metav1.CreateOptions) (*authv1.SelfSubjectAccessReview, error) {
 	if fk.authReview == nil {
 		return nil, errors.New("Something went wrong")
 	}