Skip to content

Commit

Permalink
Remove snapshot controller for azure file
Browse files Browse the repository at this point in the history
  • Loading branch information
gnufied committed Feb 22, 2024
1 parent 4f1a833 commit 59e2de9
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 128 deletions.
57 changes: 2 additions & 55 deletions assets/overlays/azure-file/generated/hypershift/controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,9 @@
# 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=240s -handle-volume-inuse-error=false]
# resizer.yaml: Added arguments [--timeout=120s -handle-volume-inuse-error=false]
# 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=600s]
# 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
# livenessprobe.yaml: Added arguments [--probe-timeout=3s]
# Applied strategic merge patch livenessprobe.yaml
Expand Down Expand Up @@ -266,7 +262,7 @@ spec:
- --leader-election-retry-period=${LEADER_ELECTION_RETRY_PERIOD}
- --leader-election-namespace=openshift-cluster-csi-drivers
- --v=${LOG_LEVEL}
- --timeout=240s
- --timeout=120s
- -handle-volume-inuse-error=false
- --kubeconfig=$(KUBECONFIG)
env:
Expand Down Expand Up @@ -307,55 +303,6 @@ spec:
volumeMounts:
- mountPath: /etc/tls/private
name: metrics-serving-cert
- args:
- --csi-address=/var/lib/csi/sockets/pluginproxy/csi.sock
- --metrics-address=localhost:8216
- --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}
- --timeout=600s
- --kubeconfig=$(KUBECONFIG)
env:
- name: KUBECONFIG
value: /etc/hosted-kubernetes/kubeconfig
image: ${SNAPSHOTTER_IMAGE}
imagePullPolicy: IfNotPresent
name: csi-snapshotter
resources:
requests:
cpu: 10m
memory: 50Mi
volumeMounts:
- mountPath: /var/lib/csi/sockets/pluginproxy/
name: socket-dir
- mountPath: /etc/hosted-kubernetes
name: hosted-kubeconfig
readOnly: true
- args:
- --secure-listen-address=0.0.0.0:9216
- --upstream=http://127.0.0.1:8216/
- --tls-cert-file=/etc/tls/private/tls.crt
- --tls-private-key-file=/etc/tls/private/tls.key
- --tls-cipher-suites=${TLS_CIPHER_SUITES}
- --tls-min-version=${TLS_MIN_VERSION}
- --logtostderr=true
image: ${KUBE_RBAC_PROXY_IMAGE}
imagePullPolicy: IfNotPresent
name: snapshotter-kube-rbac-proxy
ports:
- containerPort: 9216
name: snapshotter-m
protocol: TCP
resources:
requests:
cpu: 10m
memory: 20Mi
volumeMounts:
- mountPath: /etc/tls/private
name: metrics-serving-cert
- args:
- --csi-address=/csi/csi.sock
- --health-port=10303
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ guestStaticAssetNames:
- main_attacher_binding.yaml
- main_provisioner_binding.yaml
- main_resizer_binding.yaml
- main_snapshotter_binding.yaml
- node.yaml
- node_privileged_binding.yaml
- node_sa.yaml
Expand Down
5 changes: 0 additions & 5 deletions assets/overlays/azure-file/generated/hypershift/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
# Applied strategic merge patch common/metrics/service_add_port.yaml
# Applied strategic merge patch common/metrics/service_add_port.yaml
# Applied strategic merge patch common/metrics/service_add_port.yaml
# Applied strategic merge patch common/metrics/service_add_port.yaml
#
#

Expand All @@ -32,10 +31,6 @@ spec:
port: 9214
protocol: TCP
targetPort: resizer-m
- name: snapshotter-m
port: 9215
protocol: TCP
targetPort: snapshotter-m
- name: driver-m
port: 9211
protocol: TCP
Expand Down
50 changes: 2 additions & 48 deletions assets/overlays/azure-file/generated/standalone/controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,8 @@
# attacher.yaml: Added arguments [--timeout=120s]
# Applied strategic merge patch attacher.yaml
# resizer.yaml: Loaded from common/sidecars/resizer.yaml
# resizer.yaml: Added arguments [--timeout=240s -handle-volume-inuse-error=false]
# resizer.yaml: Added arguments [--timeout=120s -handle-volume-inuse-error=false]
# Applied strategic merge patch resizer.yaml
# snapshotter.yaml: Loaded from common/sidecars/snapshotter.yaml
# snapshotter.yaml: Added arguments [--timeout=600s]
# Applied strategic merge patch snapshotter.yaml
# livenessprobe.yaml: Loaded from common/sidecars/livenessprobe.yaml
# livenessprobe.yaml: Added arguments [--probe-timeout=3s]
# Applied strategic merge patch livenessprobe.yaml
Expand Down Expand Up @@ -218,7 +215,7 @@ spec:
- --leader-election-retry-period=${LEADER_ELECTION_RETRY_PERIOD}
- --leader-election-namespace=openshift-cluster-csi-drivers
- --v=${LOG_LEVEL}
- --timeout=240s
- --timeout=120s
- -handle-volume-inuse-error=false
env: []
image: ${RESIZER_IMAGE}
Expand Down Expand Up @@ -253,49 +250,6 @@ spec:
volumeMounts:
- mountPath: /etc/tls/private
name: metrics-serving-cert
- args:
- --csi-address=/var/lib/csi/sockets/pluginproxy/csi.sock
- --metrics-address=localhost:8216
- --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}
- --timeout=600s
env: []
image: ${SNAPSHOTTER_IMAGE}
imagePullPolicy: IfNotPresent
name: csi-snapshotter
resources:
requests:
cpu: 10m
memory: 50Mi
volumeMounts:
- mountPath: /var/lib/csi/sockets/pluginproxy/
name: socket-dir
- args:
- --secure-listen-address=0.0.0.0:9216
- --upstream=http://127.0.0.1:8216/
- --tls-cert-file=/etc/tls/private/tls.crt
- --tls-private-key-file=/etc/tls/private/tls.key
- --tls-cipher-suites=${TLS_CIPHER_SUITES}
- --tls-min-version=${TLS_MIN_VERSION}
- --logtostderr=true
image: ${KUBE_RBAC_PROXY_IMAGE}
imagePullPolicy: IfNotPresent
name: snapshotter-kube-rbac-proxy
ports:
- containerPort: 9216
name: snapshotter-m
protocol: TCP
resources:
requests:
cpu: 10m
memory: 20Mi
volumeMounts:
- mountPath: /etc/tls/private
name: metrics-serving-cert
- args:
- --csi-address=/csi/csi.sock
- --health-port=10303
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ guestStaticAssetNames:
- main_attacher_binding.yaml
- main_provisioner_binding.yaml
- main_resizer_binding.yaml
- main_snapshotter_binding.yaml
- node.yaml
- node_privileged_binding.yaml
- node_sa.yaml
Expand Down
5 changes: 0 additions & 5 deletions assets/overlays/azure-file/generated/standalone/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
# Applied strategic merge patch common/metrics/service_add_port.yaml
# Applied strategic merge patch common/metrics/service_add_port.yaml
# Applied strategic merge patch common/metrics/service_add_port.yaml
# Applied strategic merge patch common/metrics/service_add_port.yaml
#
#

Expand All @@ -32,10 +31,6 @@ spec:
port: 9214
protocol: TCP
targetPort: resizer-m
- name: snapshotter-m
port: 9215
protocol: TCP
targetPort: snapshotter-m
- name: driver-m
port: 9211
protocol: TCP
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
# Applied JSON patch common/metrics/service_monitor_add_port.yaml.patch
# Applied JSON patch common/metrics/service_monitor_add_port.yaml.patch
# Applied JSON patch common/metrics/service_monitor_add_port.yaml.patch
# Applied JSON patch common/metrics/service_monitor_add_port.yaml.patch
#
#

Expand Down Expand Up @@ -40,14 +39,6 @@ spec:
tlsConfig:
caFile: /etc/prometheus/configmaps/serving-certs-ca-bundle/service-ca.crt
serverName: azure-file-csi-driver-controller-metrics.${NAMESPACE}.svc
- bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
interval: 30s
path: /metrics
port: snapshotter-m
scheme: https
tlsConfig:
caFile: /etc/prometheus/configmaps/serving-certs-ca-bundle/service-ca.crt
serverName: azure-file-csi-driver-controller-metrics.${NAMESPACE}.svc
- bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
interval: 30s
path: /metrics
Expand Down
5 changes: 1 addition & 4 deletions pkg/driver/azure-file/azure_file.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,9 @@ func GetAzureFileGeneratorConfig() *generator.CSIDriverGeneratorConfig {
"--timeout=120s",
),
commongenerator.DefaultResizer.WithExtraArguments(
"--timeout=240s",
"--timeout=120s",
"-handle-volume-inuse-error=false",
),
commongenerator.DefaultSnapshotter.WithExtraArguments(
"--timeout=600s",
),
commongenerator.DefaultLivenessProbe.WithExtraArguments(
"--probe-timeout=3s",
),
Expand Down

0 comments on commit 59e2de9

Please sign in to comment.