Skip to content

Commit

Permalink
add default value to EtcdQuotaBackendSize
Browse files Browse the repository at this point in the history
  • Loading branch information
logica0419 committed Sep 14, 2024
1 parent b3c1d2b commit 8876240
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 1 deletion.
1 change: 1 addition & 0 deletions pkg/apis/config/v1alpha1/kwokctl_configuration_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,7 @@ type KwokctlConfigurationOptions struct {
DisableQPSLimits *bool `json:"disableQPSLimits,omitempty"`

// EtcdQuotaBackendSize is the backend quota for etcd.
// +default="8Gi"
EtcdQuotaBackendSize string `json:"etcdQuotaBackendSize,omitempty"`
}

Expand Down
3 changes: 3 additions & 0 deletions pkg/apis/config/v1alpha1/zz_generated.defaults.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion site/content/en/docs/generated/kwokctl_create_cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ kwokctl create cluster [flags]
(default "registry.k8s.io/etcd:3.5.15-0")
--etcd-port uint32 Port of etcd given to the host. The behavior is unstable for kind/kind-podman runtime and may be modified in the future
--etcd-prefix string prefix of the key (default "/registry")
--etcd-quota-backend-size string Quota backend size for etcd
--etcd-quota-backend-size string Quota backend size for etcd (default "8Gi")
--extra-args component=key=value Pass a single extra arg key-value pair to the component in the format component=key=value
--heartbeat-factor float Scale factor for all about heartbeat (default 5)
-h, --help help for cluster
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ kubeadmConfigPatches:
etcd:
local:
dataDir: /var/lib/etcd
extraArgs:
quota-backend-bytes: "8589934592"
kind: ClusterConfiguration
networking: {}
scheduler:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ kubeadmConfigPatches:
dataDir: /var/lib/etcd
extraArgs:
log-level: debug
quota-backend-bytes: "8589934592"
kind: ClusterConfiguration
networking: {}
scheduler:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ kubeadmConfigPatches:
etcd:
local:
dataDir: /var/lib/etcd
extraArgs:
quota-backend-bytes: "8589934592"
kind: ClusterConfiguration
networking: {}
scheduler:
Expand Down
2 changes: 2 additions & 0 deletions test/e2e/kwokctl/dryrun/testdata/kind/create_cluster.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ kubeadmConfigPatches:
etcd:
local:
dataDir: /var/lib/etcd
extraArgs:
quota-backend-bytes: "8589934592"
kind: ClusterConfiguration
networking: {}
scheduler:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ kubeadmConfigPatches:
dataDir: /var/lib/etcd
extraArgs:
log-level: debug
quota-backend-bytes: "8589934592"
kind: ClusterConfiguration
networking: {}
scheduler:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ kubeadmConfigPatches:
etcd:
local:
dataDir: /var/lib/etcd
extraArgs:
quota-backend-bytes: "8589934592"
kind: ClusterConfiguration
networking: {}
scheduler:
Expand Down

0 comments on commit 8876240

Please sign in to comment.