fix some golint failures in pkg/registry/...

This commit is contained in:
SataQiu
2019-02-26 22:36:52 +08:00
parent 4e8e3c2f02
commit 9e4c8950be
8 changed files with 7 additions and 7 deletions

View File

@@ -166,6 +166,7 @@ type daemonSetStatusStrategy struct {
daemonSetStrategy
}
// StatusStrategy is the default logic invoked when updating object status.
var StatusStrategy = daemonSetStatusStrategy{Strategy}
func (daemonSetStatusStrategy) PrepareForUpdate(ctx context.Context, obj, old runtime.Object) {

View File

@@ -145,6 +145,7 @@ type deploymentStatusStrategy struct {
deploymentStrategy
}
// StatusStrategy is the default logic invoked when updating object status.
var StatusStrategy = deploymentStatusStrategy{Strategy}
// PrepareForUpdate clears fields that are not allowed to be set by end users on update of status

View File

@@ -130,6 +130,7 @@ type statefulSetStatusStrategy struct {
statefulSetStrategy
}
// StatusStrategy is the default logic invoked when updating object status.
var StatusStrategy = statefulSetStatusStrategy{Strategy}
// PrepareForUpdate clears fields that are not allowed to be set by end users on update of status