Fix golint errors in pkg/controller/garbagecollector

This commit is contained in:
s-ito-ts
2020-02-12 06:11:23 +00:00
parent 96dfa3f605
commit e6b9a7a309
6 changed files with 32 additions and 23 deletions

View File

@@ -92,6 +92,7 @@ type objectForFinalizersPatch struct {
ObjectMetaForFinalizersPatch `json:"metadata"`
}
// ObjectMetaForFinalizersPatch defines object meta struct for finalizers patch operation.
type ObjectMetaForFinalizersPatch struct {
ResourceVersion string `json:"resourceVersion"`
Finalizers []string `json:"finalizers"`
@@ -101,6 +102,7 @@ type objectForPatch struct {
ObjectMetaForPatch `json:"metadata"`
}
// ObjectMetaForPatch defines object meta struct for patch operation.
type ObjectMetaForPatch struct {
ResourceVersion string `json:"resourceVersion"`
OwnerReferences []metav1.OwnerReference `json:"ownerReferences"`