Skip to content

Commit 390b445

Browse files
committed
Pass lint checks
1 parent 98599de commit 390b445

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/verify.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ import (
3939
"k8s.io/client-go/tools/pager"
4040
)
4141

42+
// VerifyGCOptions contains options controlling how the verify task is run
4243
type VerifyGCOptions struct {
4344
DiscoveryClient discovery.DiscoveryInterface
4445
MetadataClient metadata.Interface
@@ -47,13 +48,15 @@ type VerifyGCOptions struct {
4748
Stdout io.Writer
4849
}
4950

51+
// Validate ensures the specified options are valid
5052
func (v *VerifyGCOptions) Validate() error {
5153
if v.Output != "" && v.Output != "json" {
5254
return fmt.Errorf("invalid output format, only '' and 'json' are supported: %v", v.Output)
5355
}
5456
return nil
5557
}
5658

59+
// Run executes the verify operation
5760
func (v *VerifyGCOptions) Run() error {
5861
errorCount := 0
5962
warningCount := 0

0 commit comments

Comments
 (0)