File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff 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
4243type 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
5052func (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
5760func (v * VerifyGCOptions ) Run () error {
5861 errorCount := 0
5962 warningCount := 0
You can’t perform that action at this time.
0 commit comments