Skip to content

Commit

Permalink
Sync sidecar arguments with upstream
Browse files Browse the repository at this point in the history
Update the operator to use the same sidecar arguments (timeouts, QPS,
worker threads) as upstream.

See kubernetes-sigs/aws-ebs-csi-driver#1824 and
kubernetes-sigs/aws-ebs-csi-driver#1824.
  • Loading branch information
jsafrane committed Nov 21, 2023
1 parent a8ee7ff commit 765b084
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 16 deletions.
23 changes: 17 additions & 6 deletions assets/overlays/aws-ebs/generated/hypershift/controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@
# Applied strategic merge patch overlays/aws-ebs/patches/controller_add_driver.yaml
# Applied strategic merge patch common/sidecars/driver_kube_rbac_proxy.yaml
# provisioner.yaml: Loaded from common/sidecars/provisioner.yaml
# provisioner.yaml: Added arguments [--default-fstype=ext4 --feature-gates=Topology=true --extra-create-metadata=true --timeout=60s]
# provisioner.yaml: Added arguments [--default-fstype=ext4 --feature-gates=Topology=true --extra-create-metadata=true --timeout=60s --kube-api-qps=20 --kube-api-burst=100 --worker-threads=100]
# provisioner.yaml: Applied JSON patch common/hypershift/sidecar_add_kubeconfig.yaml.patch
# Applied strategic merge patch provisioner.yaml
# attacher.yaml: Loaded from common/sidecars/attacher.yaml
# attacher.yaml: Added arguments [--timeout=60s]
# attacher.yaml: Added arguments [--timeout=60s --kube-api-qps=20 --kube-api-burst=100 --worker-threads=100]
# attacher.yaml: Applied JSON patch common/hypershift/sidecar_add_kubeconfig.yaml.patch
# Applied strategic merge patch attacher.yaml
# resizer.yaml: Loaded from common/sidecars/resizer.yaml
# resizer.yaml: Added arguments [--timeout=300s]
# resizer.yaml: Added arguments [--timeout=60s --kube-api-qps=20 --kube-api-burst=100 --worker-threads=100]
# resizer.yaml: Applied JSON patch common/hypershift/sidecar_add_kubeconfig.yaml.patch
# Applied strategic merge patch resizer.yaml
# snapshotter.yaml: Loaded from common/sidecars/snapshotter.yaml
# snapshotter.yaml: Added arguments [--timeout=300s --extra-create-metadata]
# snapshotter.yaml: Added arguments [--extra-create-metadata --kube-api-qps=20 --kube-api-burst=100 --worker-threads=100]
# snapshotter.yaml: Applied JSON patch common/hypershift/sidecar_add_kubeconfig.yaml.patch
# Applied strategic merge patch snapshotter.yaml
# livenessprobe.yaml: Loaded from common/sidecars/livenessprobe.yaml
Expand Down Expand Up @@ -175,6 +175,9 @@ spec:
- --feature-gates=Topology=true
- --extra-create-metadata=true
- --timeout=60s
- --kube-api-qps=20
- --kube-api-burst=100
- --worker-threads=100
- --kubeconfig=$(KUBECONFIG)
env:
- name: KUBECONFIG
Expand Down Expand Up @@ -223,6 +226,9 @@ spec:
- --leader-election-namespace=openshift-cluster-csi-drivers
- --v=${LOG_LEVEL}
- --timeout=60s
- --kube-api-qps=20
- --kube-api-burst=100
- --worker-threads=100
- --kubeconfig=$(KUBECONFIG)
env:
- name: KUBECONFIG
Expand Down Expand Up @@ -270,7 +276,10 @@ spec:
- --leader-election-retry-period=${LEADER_ELECTION_RETRY_PERIOD}
- --leader-election-namespace=openshift-cluster-csi-drivers
- --v=${LOG_LEVEL}
- --timeout=300s
- --timeout=60s
- --kube-api-qps=20
- --kube-api-burst=100
- --worker-threads=100
- --kubeconfig=$(KUBECONFIG)
env:
- name: KUBECONFIG
Expand Down Expand Up @@ -318,8 +327,10 @@ spec:
- --leader-election-retry-period=${LEADER_ELECTION_RETRY_PERIOD}
- --leader-election-namespace=openshift-cluster-csi-drivers
- --v=${LOG_LEVEL}
- --timeout=300s
- --extra-create-metadata
- --kube-api-qps=20
- --kube-api-burst=100
- --worker-threads=100
- --kubeconfig=$(KUBECONFIG)
env:
- name: KUBECONFIG
Expand Down
23 changes: 17 additions & 6 deletions assets/overlays/aws-ebs/generated/standalone/controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@
# Applied strategic merge patch overlays/aws-ebs/patches/controller_add_driver.yaml
# Applied strategic merge patch common/sidecars/driver_kube_rbac_proxy.yaml
# provisioner.yaml: Loaded from common/sidecars/provisioner.yaml
# provisioner.yaml: Added arguments [--default-fstype=ext4 --feature-gates=Topology=true --extra-create-metadata=true --timeout=60s]
# provisioner.yaml: Added arguments [--default-fstype=ext4 --feature-gates=Topology=true --extra-create-metadata=true --timeout=60s --kube-api-qps=20 --kube-api-burst=100 --worker-threads=100]
# Applied strategic merge patch provisioner.yaml
# attacher.yaml: Loaded from common/sidecars/attacher.yaml
# attacher.yaml: Added arguments [--timeout=60s]
# attacher.yaml: Added arguments [--timeout=60s --kube-api-qps=20 --kube-api-burst=100 --worker-threads=100]
# Applied strategic merge patch attacher.yaml
# resizer.yaml: Loaded from common/sidecars/resizer.yaml
# resizer.yaml: Added arguments [--timeout=300s]
# resizer.yaml: Added arguments [--timeout=60s --kube-api-qps=20 --kube-api-burst=100 --worker-threads=100]
# Applied strategic merge patch resizer.yaml
# snapshotter.yaml: Loaded from common/sidecars/snapshotter.yaml
# snapshotter.yaml: Added arguments [--timeout=300s --extra-create-metadata]
# snapshotter.yaml: Added arguments [--extra-create-metadata --kube-api-qps=20 --kube-api-burst=100 --worker-threads=100]
# Applied strategic merge patch snapshotter.yaml
# livenessprobe.yaml: Loaded from common/sidecars/livenessprobe.yaml
# livenessprobe.yaml: Added arguments [--probe-timeout=3s]
Expand Down Expand Up @@ -145,6 +145,9 @@ spec:
- --feature-gates=Topology=true
- --extra-create-metadata=true
- --timeout=60s
- --kube-api-qps=20
- --kube-api-burst=100
- --worker-threads=100
env: []
image: ${PROVISIONER_IMAGE}
imagePullPolicy: IfNotPresent
Expand Down Expand Up @@ -187,6 +190,9 @@ spec:
- --leader-election-namespace=openshift-cluster-csi-drivers
- --v=${LOG_LEVEL}
- --timeout=60s
- --kube-api-qps=20
- --kube-api-burst=100
- --worker-threads=100
env: []
image: ${ATTACHER_IMAGE}
imagePullPolicy: IfNotPresent
Expand Down Expand Up @@ -228,7 +234,10 @@ spec:
- --leader-election-retry-period=${LEADER_ELECTION_RETRY_PERIOD}
- --leader-election-namespace=openshift-cluster-csi-drivers
- --v=${LOG_LEVEL}
- --timeout=300s
- --timeout=60s
- --kube-api-qps=20
- --kube-api-burst=100
- --worker-threads=100
env: []
image: ${RESIZER_IMAGE}
imagePullPolicy: IfNotPresent
Expand Down Expand Up @@ -270,8 +279,10 @@ spec:
- --leader-election-retry-period=${LEADER_ELECTION_RETRY_PERIOD}
- --leader-election-namespace=openshift-cluster-csi-drivers
- --v=${LOG_LEVEL}
- --timeout=300s
- --extra-create-metadata
- --kube-api-qps=20
- --kube-api-burst=100
- --worker-threads=100
env: []
image: ${SNAPSHOTTER_IMAGE}
imagePullPolicy: IfNotPresent
Expand Down
15 changes: 13 additions & 2 deletions legacy/aws-ebs-csi-driver-operator/assets/controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,9 @@ spec:
- --leader-election-retry-period=${LEADER_ELECTION_RETRY_PERIOD}
- --leader-election-namespace=openshift-cluster-csi-drivers
- --v=${LOG_LEVEL}
- --kube-api-qps=20
- --kube-api-burst=100
- --worker-threads=100
env:
- name: ADDRESS
value: /var/lib/csi/sockets/pluginproxy/csi.sock
Expand Down Expand Up @@ -192,6 +195,9 @@ spec:
- --leader-election-retry-period=${LEADER_ELECTION_RETRY_PERIOD}
- --leader-election-namespace=openshift-cluster-csi-drivers
- --v=${LOG_LEVEL}
- --kube-api-qps=20
- --kube-api-burst=100
- --worker-threads=100
env:
- name: ADDRESS
value: /var/lib/csi/sockets/pluginproxy/csi.sock
Expand Down Expand Up @@ -229,14 +235,16 @@ spec:
imagePullPolicy: IfNotPresent
args:
- --csi-address=$(ADDRESS)
- --timeout=300s
- --http-endpoint=localhost:8204
- --leader-election
- --leader-election-lease-duration=${LEADER_ELECTION_LEASE_DURATION}
- --leader-election-renew-deadline=${LEADER_ELECTION_RENEW_DEADLINE}
- --leader-election-retry-period=${LEADER_ELECTION_RETRY_PERIOD}
- --leader-election-namespace=openshift-cluster-csi-drivers
- --v=${LOG_LEVEL}
- --kube-api-qps=20
- --kube-api-burst=100
- --worker-threads=100
env:
- name: ADDRESS
value: /var/lib/csi/sockets/pluginproxy/csi.sock
Expand Down Expand Up @@ -275,14 +283,17 @@ spec:
args:
- --csi-address=$(ADDRESS)
- --metrics-address=localhost:8205
- --timeout=300s
- --timeout=60s
- --leader-election
- --leader-election-lease-duration=${LEADER_ELECTION_LEASE_DURATION}
- --leader-election-renew-deadline=${LEADER_ELECTION_RENEW_DEADLINE}
- --leader-election-retry-period=${LEADER_ELECTION_RETRY_PERIOD}
- --leader-election-namespace=openshift-cluster-csi-drivers
- --v=${LOG_LEVEL}
- --extra-create-metadata
- --kube-api-qps=20
- --kube-api-burst=100
- --worker-threads=100
env:
- name: ADDRESS
value: /var/lib/csi/sockets/pluginproxy/csi.sock
Expand Down
15 changes: 13 additions & 2 deletions pkg/driver/aws-ebs/aws_ebs.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,16 +65,27 @@ func GetAWSEBSGeneratorConfig() *generator.CSIDriverGeneratorConfig {
"--feature-gates=Topology=true",
"--extra-create-metadata=true",
"--timeout=60s",
"--kube-api-qps=20",
"--kube-api-burst=100",
"--worker-threads=100",
),
commongenerator.DefaultAttacher.WithExtraArguments(
"--timeout=60s",
"--kube-api-qps=20",
"--kube-api-burst=100",
"--worker-threads=100",
),
commongenerator.DefaultResizer.WithExtraArguments(
"--timeout=300s",
"--timeout=60s",
"--kube-api-qps=20",
"--kube-api-burst=100",
"--worker-threads=100",
),
commongenerator.DefaultSnapshotter.WithExtraArguments(
"--timeout=300s",
"--extra-create-metadata",
"--kube-api-qps=20",
"--kube-api-burst=100",
"--worker-threads=100",
),
commongenerator.DefaultLivenessProbe.WithExtraArguments(
"--probe-timeout=3s",
Expand Down

0 comments on commit 765b084

Please sign in to comment.