mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-21 18:11:22 +00:00
fix some golint failures in pkg/registry/...
This commit is contained in:
@@ -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) {
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user