Merge pull request #76765 from SataQiu/fix-golint-apis-20190418
Fix golint failures of pkg/apis/authorization
This commit is contained in:
		| @@ -14,7 +14,6 @@ pkg/apis/apps/v1beta2 | |||||||
| pkg/apis/apps/validation | pkg/apis/apps/validation | ||||||
| pkg/apis/auditregistration/v1alpha1 | pkg/apis/auditregistration/v1alpha1 | ||||||
| pkg/apis/authentication/v1 | pkg/apis/authentication/v1 | ||||||
| pkg/apis/authorization |  | ||||||
| pkg/apis/authorization/v1 | pkg/apis/authorization/v1 | ||||||
| pkg/apis/authorization/validation | pkg/apis/authorization/validation | ||||||
| pkg/apis/autoscaling | pkg/apis/autoscaling | ||||||
|   | |||||||
| @@ -38,7 +38,9 @@ func Resource(resource string) schema.GroupResource { | |||||||
| } | } | ||||||
|  |  | ||||||
| var ( | var ( | ||||||
|  | 	// SchemeBuilder points to a list of functions added to Scheme. | ||||||
| 	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) | 	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) | ||||||
|  | 	// AddToScheme applies all the stored functions to the scheme. | ||||||
| 	AddToScheme = SchemeBuilder.AddToScheme | 	AddToScheme = SchemeBuilder.AddToScheme | ||||||
| ) | ) | ||||||
|  |  | ||||||
|   | |||||||
| @@ -138,7 +138,7 @@ type SelfSubjectAccessReviewSpec struct { | |||||||
| 	NonResourceAttributes *NonResourceAttributes | 	NonResourceAttributes *NonResourceAttributes | ||||||
| } | } | ||||||
|  |  | ||||||
| // SubjectAccessReviewStatus | // SubjectAccessReviewStatus represents the current state of a SubjectAccessReview. | ||||||
| type SubjectAccessReviewStatus struct { | type SubjectAccessReviewStatus struct { | ||||||
| 	// Allowed is required. True if the action would be allowed, false otherwise. | 	// Allowed is required. True if the action would be allowed, false otherwise. | ||||||
| 	Allowed bool | 	Allowed bool | ||||||
| @@ -177,6 +177,7 @@ type SelfSubjectRulesReview struct { | |||||||
| 	Status SubjectRulesReviewStatus | 	Status SubjectRulesReviewStatus | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // SelfSubjectRulesReviewSpec defines the specification for SelfSubjectRulesReview. | ||||||
| type SelfSubjectRulesReviewSpec struct { | type SelfSubjectRulesReviewSpec struct { | ||||||
| 	// Namespace to evaluate rules for. Required. | 	// Namespace to evaluate rules for. Required. | ||||||
| 	Namespace string | 	Namespace string | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Kubernetes Prow Robot
					Kubernetes Prow Robot