Skip to content
This repository has been archived by the owner on Aug 29, 2022. It is now read-only.

Commit

Permalink
Reorder flags
Browse files Browse the repository at this point in the history
  • Loading branch information
johngmyers committed Dec 15, 2017
1 parent cd7af31 commit 961d73f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@ var (
func main() {
flag.StringVar(&namespace, "namespace", "", "namespace as defined by pod.metadata.namespace")
flag.StringVar(&podName, "pod-name", "", "name as defined by pod.metadata.name")
flag.BoolVar(&queryK8s, "query-k8s", false, "query Kubernetes for names appropriate to this Pod")
flag.StringVar(&additionalDNSNames, "additional-dnsnames", "", "additional dns names; comma separated")
flag.StringVar(&certDir, "cert-dir", "/etc/tls", "The directory where the TLS certs should be written")
flag.StringVar(&clusterDomain, "cluster-domain", "cluster.local", "Kubernetes cluster domain")
flag.IntVar(&keysize, "keysize", 3072, "bit size of private key")
flag.StringVar(&labels, "labels", "", "labels to include in CertificateSigningRequest object; comma separated list of key=value")
flag.BoolVar(&queryK8s, "query-k8s", false, "query Kubernetes for names appropriate to this Pod")
flag.StringVar(&additionalDNSNames, "additional-dnsnames", "", "additional dns names; comma separated")
flag.StringVar(&serviceNames, "service-names", "", "service names that resolve to this Pod; comma separated")
flag.StringVar(&serviceIPs, "service-ips", "", "service IP addresses that resolve to this Pod; comma separated")
flag.StringVar(&labels, "labels", "", "labels to include in CertificateSigningRequest object; comma seprated list of key=value")
flag.IntVar(&keysize, "keysize", 3072, "bit size of private key")
flag.Parse()

if namespace == "" {
Expand Down

0 comments on commit 961d73f

Please sign in to comment.