Skip to content

Commit 7797435

Browse files
remove ref from deployclient
This exists in the record and gets set but is not used elsewhere
1 parent d3b49e8 commit 7797435

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

pkg/deployclient/config.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ type Config struct {
2828
PollInterval time.Duration
2929
PrintPayload bool
3030
Quiet bool
31-
Ref string
3231
Repository string
3332
Resource []string
3433
Retry bool
@@ -61,7 +60,6 @@ func InitConfig(cfg *Config) {
6160
flag.StringVar(&cfg.Owner, "owner", getEnv("OWNER", DefaultOwner), "Owner of GitHub repository. (env OWNER)")
6261
flag.BoolVar(&cfg.PrintPayload, "print-payload", getEnvBool("PRINT_PAYLOAD", false), "Print templated resources to standard output. (env PRINT_PAYLOAD)")
6362
flag.BoolVar(&cfg.Quiet, "quiet", getEnvBool("QUIET", false), "Suppress printing of informational messages except errors. (env QUIET)")
64-
flag.StringVar(&cfg.Ref, "ref", getEnv("REF", DefaultRef), "Git commit hash, tag, or branch of the code being deployed. (env REF)")
6563
flag.StringVar(&cfg.Repository, "repository", os.Getenv("REPOSITORY"), "Name of GitHub repository. (env REPOSITORY)")
6664
flag.StringSliceVar(&cfg.Resource, "resource", getEnvStringSlice("RESOURCE"), "File with Kubernetes resource. Can be specified multiple times. (env RESOURCE)")
6765
flag.BoolVar(&cfg.Retry, "retry", getEnvBool("RETRY", true), "Retry deploy when encountering transient errors. (env RETRY)")

0 commit comments

Comments
 (0)