Skip to content

Commit

Permalink
Fix golint failures in pkg/registry/core/replicationcontroller
Browse files Browse the repository at this point in the history
  • Loading branch information
ProZsolt committed Oct 3, 2020
1 parent 3005b6d commit c244e17
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion hack/.golint_failures
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ pkg/registry/core/namespace/storage
pkg/registry/core/node
pkg/registry/core/persistentvolume
pkg/registry/core/persistentvolumeclaim
pkg/registry/core/replicationcontroller
pkg/registry/core/replicationcontroller/storage
pkg/registry/core/rest
pkg/registry/core/secret
Expand Down
2 changes: 1 addition & 1 deletion pkg/registry/core/replicationcontroller/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

// Package controller provides Registry interface and it's RESTStorage
// Package replicationcontroller provides Registry interface and it's RESTStorage
// implementation for storing ReplicationController api objects.
package replicationcontroller // import "k8s.io/kubernetes/pkg/registry/core/replicationcontroller"
3 changes: 2 additions & 1 deletion pkg/registry/core/replicationcontroller/strategy.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ func ControllerToSelectableFields(controller *api.ReplicationController) fields.
func GetAttrs(obj runtime.Object) (labels.Set, fields.Set, error) {
rc, ok := obj.(*api.ReplicationController)
if !ok {
return nil, nil, fmt.Errorf("given object is not a replication controller.")
return nil, nil, fmt.Errorf("given object is not a replication controller")
}
return labels.Set(rc.ObjectMeta.Labels), ControllerToSelectableFields(rc), nil
}
Expand All @@ -190,6 +190,7 @@ type rcStatusStrategy struct {
rcStrategy
}

// StatusStrategy is the default logic invoked when updating object status.
var StatusStrategy = rcStatusStrategy{Strategy}

func (rcStatusStrategy) PrepareForUpdate(ctx context.Context, obj, old runtime.Object) {
Expand Down

0 comments on commit c244e17

Please sign in to comment.