Skip to content

Commit

Permalink
Merge pull request #4210 from caogj/fix-usage
Browse files Browse the repository at this point in the history
fixed flag usages
  • Loading branch information
k8s-ci-robot authored Aug 16, 2021
2 parents 62e79c3 + 1b707e9 commit 5766bb7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions vertical-pod-autoscaler/pkg/recommender/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ var (
queryTimeout = flag.String("prometheus-query-timeout", "5m", `How long to wait before killing long queries`)
podLabelPrefix = flag.String("pod-label-prefix", "pod_label_", `Which prefix to look for pod labels in metrics`)
podLabelsMetricName = flag.String("metric-for-pod-labels", "up{job=\"kubernetes-pods\"}", `Which metric to look for pod labels in metrics`)
podNamespaceLabel = flag.String("pod-namespace-label", "kubernetes_namespace", `Label name to look for container names`)
podNameLabel = flag.String("pod-name-label", "kubernetes_pod_name", `Label name to look for container names`)
ctrNamespaceLabel = flag.String("container-namespace-label", "namespace", `Label name to look for container names`)
ctrPodNameLabel = flag.String("container-pod-name-label", "pod_name", `Label name to look for container names`)
podNamespaceLabel = flag.String("pod-namespace-label", "kubernetes_namespace", `Label name to look for pod namespaces`)
podNameLabel = flag.String("pod-name-label", "kubernetes_pod_name", `Label name to look for pod names`)
ctrNamespaceLabel = flag.String("container-namespace-label", "namespace", `Label name to look for container namespaces`)
ctrPodNameLabel = flag.String("container-pod-name-label", "pod_name", `Label name to look for container pod names`)
ctrNameLabel = flag.String("container-name-label", "name", `Label name to look for container names`)
vpaObjectNamespace = flag.String("vpa-object-namespace", apiv1.NamespaceAll, "Namespace to search for VPA objects and pod stats. Empty means all namespaces will be used.")
)
Expand Down

0 comments on commit 5766bb7

Please sign in to comment.