Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sacle UP / Scale Down functionality #265

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ RUN go mod download
# Copy the go source
COPY cmd/ ./cmd/
COPY api/ ./api/
COPY pkg/ ./pkg/
COPY internal/ ./internal/

# Build
Expand Down
3 changes: 3 additions & 0 deletions cmd/app/commandline.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import (

type Flags struct {
Kubeconfig string
ClusterDomain string
MetricsAddress string
ProbeAddress string
LeaderElection bool
Expand All @@ -47,6 +48,7 @@ func ParseCmdLine() Flags {
pflag.CommandLine = pflag.NewFlagSet(os.Args[0], pflag.ContinueOnError)

pflag.String("kubeconfig", "", "Path to a kubeconfig. Only required if out-of-cluster.")
pflag.String("cluster-domain", "cluster.local", "The cluster domain configured in kube-dns")
pflag.String("metrics-bind-address", ":8080", "The address the metric endpoint binds to.")
pflag.String("health-probe-bind-address", ":8081", "The address the probe endpoint binds to.")
pflag.Bool("leader-elect", false, "Enable leader election for controller manager. "+
Expand Down Expand Up @@ -78,6 +80,7 @@ func ParseCmdLine() Flags {

return Flags{
Kubeconfig: viper.GetString("kubeconfig"),
ClusterDomain: viper.GetString("cluster-domain"),
MetricsAddress: viper.GetString("metrics-bind-address"),
ProbeAddress: viper.GetString("health-probe-bind-address"),
LeaderElection: viper.GetBool("leader-elect"),
Expand Down
Loading
Loading