Skip to content

Commit

Permalink
do not use shorthand identifier flag
Browse files Browse the repository at this point in the history
  • Loading branch information
balpert89 committed Nov 25, 2024
1 parent 2923132 commit c85ebab
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion broker/bucketbroker/cmd/bucketbroker/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func (o *Options) AddFlags(fs *pflag.FlagSet) {
fs.StringVar(&o.Kubeconfig, "kubeconfig", o.Kubeconfig, "Path pointing to a kubeconfig file to use.")
fs.StringVar(&o.Address, "address", "/var/run/iri-bucketbroker.sock", "Address to listen on.")

fs.Float32VarP(&o.QPS, "qps", "", defaults.QPS, "Kubernetes client qps.")
fs.Float32Var(&o.QPS, "qps", defaults.QPS, "Kubernetes client qps.")
fs.IntVar(&o.Burst, "burst", defaults.Burst, "Kubernetes client burst.")

fs.StringVar(&o.Namespace, "namespace", o.Namespace, "Target Kubernetes namespace to use.")
Expand Down
2 changes: 1 addition & 1 deletion broker/machinebroker/cmd/machinebroker/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func (o *Options) AddFlags(fs *pflag.FlagSet) {
fs.StringToStringVar(&o.BrokerDownwardAPILabels, "broker-downward-api-label", nil, "The labels to broker via downward API. "+
"Example is for instance to broker \"root-machine-uid\" initially obtained via \"machinepoollet.ironcore.dev/machine-uid\".")

fs.Float32VarP(&o.QPS, "qps", "", defaults.QPS, "Kubernetes client qps.")
fs.Float32Var(&o.QPS, "qps", defaults.QPS, "Kubernetes client qps.")
fs.IntVar(&o.Burst, "burst", defaults.Burst, "Kubernetes client burst.")

fs.StringVar(&o.Namespace, "namespace", o.Namespace, "Target Kubernetes namespace to use.")
Expand Down
2 changes: 1 addition & 1 deletion broker/volumebroker/cmd/volumebroker/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func (o *Options) AddFlags(fs *pflag.FlagSet) {
fs.StringVar(&o.Kubeconfig, "kubeconfig", o.Kubeconfig, "Path pointing to a kubeconfig file to use.")
fs.StringVar(&o.Address, "address", "/var/run/iri-volumebroker.sock", "Address to listen on.")

fs.Float32VarP(&o.QPS, "qps", "", defaults.QPS, "Kubernetes client qps.")
fs.Float32Var(&o.QPS, "qps", defaults.QPS, "Kubernetes client qps.")
fs.IntVar(&o.Burst, "burst", defaults.Burst, "Kubernetes client burst.")

fs.StringVar(&o.Namespace, "namespace", o.Namespace, "Target Kubernetes namespace to use.")
Expand Down
4 changes: 2 additions & 2 deletions poollet/bucketpoollet/cmd/bucketpoollet/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ import (
ipamv1alpha1 "github.com/ironcore-dev/ironcore/api/ipam/v1alpha1"
networkingv1alpha1 "github.com/ironcore-dev/ironcore/api/networking/v1alpha1"
storagev1alpha1 "github.com/ironcore-dev/ironcore/api/storage/v1alpha1"
"github.com/ironcore-dev/ironcore/poollet/common/defaults"
iri "github.com/ironcore-dev/ironcore/iri/apis/bucket/v1alpha1"
iriremotebucket "github.com/ironcore-dev/ironcore/iri/remote/bucket"
"github.com/ironcore-dev/ironcore/poollet/bucketpoollet/bcm"
"github.com/ironcore-dev/ironcore/poollet/bucketpoollet/bem"
bucketpoolletconfig "github.com/ironcore-dev/ironcore/poollet/bucketpoollet/client/config"
"github.com/ironcore-dev/ironcore/poollet/bucketpoollet/controllers"
"github.com/ironcore-dev/ironcore/poollet/common/defaults"
"github.com/ironcore-dev/ironcore/poollet/irievent"
"github.com/ironcore-dev/ironcore/utils/client/config"

Expand Down Expand Up @@ -95,7 +95,7 @@ func (o *Options) AddFlags(fs *pflag.FlagSet) {

fs.StringVar(&o.WatchFilterValue, "watch-filter", "", "Value to filter for while watching.")

fs.Float32VarP(&o.QPS, "qps", "", defaults.QPS, "Kubernetes client qps.")
fs.Float32Var(&o.QPS, "qps", defaults.QPS, "Kubernetes client qps.")
fs.IntVar(&o.Burst, "burst", defaults.Burst, "Kubernetes client burst.")
fs.IntVar(&o.MaxConcurrentReconciles, "max-concurrent-reconciles", 1, "Maximum number of concurrent reconciles.")
}
Expand Down
4 changes: 2 additions & 2 deletions poollet/machinepoollet/cmd/machinepoollet/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ import (
ipamv1alpha1 "github.com/ironcore-dev/ironcore/api/ipam/v1alpha1"
networkingv1alpha1 "github.com/ironcore-dev/ironcore/api/networking/v1alpha1"
storagev1alpha1 "github.com/ironcore-dev/ironcore/api/storage/v1alpha1"
"github.com/ironcore-dev/ironcore/poollet/common/defaults"
computeclient "github.com/ironcore-dev/ironcore/internal/client/compute"
iri "github.com/ironcore-dev/ironcore/iri/apis/machine/v1alpha1"
iriremotemachine "github.com/ironcore-dev/ironcore/iri/remote/machine"
"github.com/ironcore-dev/ironcore/poollet/common/defaults"
"github.com/ironcore-dev/ironcore/poollet/irievent"
"github.com/ironcore-dev/ironcore/poollet/machinepoollet/addresses"
machinepoolletclient "github.com/ironcore-dev/ironcore/poollet/machinepoollet/client"
Expand Down Expand Up @@ -117,7 +117,7 @@ func (o *Options) AddFlags(fs *pflag.FlagSet) {

fs.StringVar(&o.WatchFilterValue, "watch-filter", "", "Value to filter for while watching.")

fs.Float32VarP(&o.QPS, "qps", "", defaults.QPS, "Kubernetes client qps.")
fs.Float32Var(&o.QPS, "qps", defaults.QPS, "Kubernetes client qps.")
fs.IntVar(&o.Burst, "burst", defaults.Burst, "Kubernetes client burst.")
fs.IntVar(&o.MaxConcurrentReconciles, "max-concurrent-reconciles", 1, "Maximum number of concurrent reconciles.")
}
Expand Down
2 changes: 1 addition & 1 deletion poollet/volumepoollet/cmd/volumepoollet/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func (o *Options) AddFlags(fs *pflag.FlagSet) {

fs.StringVar(&o.WatchFilterValue, "watch-filter", "", "Value to filter for while watching.")

fs.Float32VarP(&o.QPS, "qps", "", defaults.QPS, "Kubernetes client qps.")
fs.Float32Var(&o.QPS, "qps", defaults.QPS, "Kubernetes client qps.")
fs.IntVar(&o.Burst, "burst", defaults.Burst, "Kubernetes client burst.")
fs.IntVar(&o.MaxConcurrentReconciles, "max-concurrent-reconciles", 1, "Maximum number of concurrent reconciles.")
}
Expand Down

0 comments on commit c85ebab

Please sign in to comment.