You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Many clouds do not have a 1:1 mapping of compute and storage AZs. As we
generate topology information from the metadata service on the node
(i.e. a compute AZ), this can prevent us from being able to schedule
VMs.
Add a new boolean, '--with-topology', to allow users to disable the
topology feature where it does not make sense. An identical option
already exists for the Manila CSI driver. However, unlike that option,
this one defaults to 'true' to retain current behavior.
Signed-off-by: Stephen Finucane <[email protected]>
(cherry picked from commit ac23a1e)
Co-authored-by: Stephen Finucane <[email protected]>
Copy file name to clipboardExpand all lines: cmd/cinder-csi-plugin/main.go
+8-1Lines changed: 8 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -41,6 +41,7 @@ var (
41
41
provideControllerServicebool
42
42
provideNodeServicebool
43
43
noClientbool
44
+
withTopologybool
44
45
)
45
46
46
47
funcmain() {
@@ -68,6 +69,8 @@ func main() {
68
69
klog.Fatalf("Unable to mark flag cloud-config to be required: %v", err)
69
70
}
70
71
72
+
cmd.PersistentFlags().BoolVar(&withTopology, "with-topology", true, "cluster is topology-aware")
73
+
71
74
cmd.PersistentFlags().StringSliceVar(&cloudNames, "cloud-name", []string{""}, "Cloud name to instruct CSI driver to read additional OpenStack cloud credentials from the configuration subsections. This option can be specified multiple times to manage multiple OpenStack clouds.")
72
75
cmd.PersistentFlags().StringToStringVar(&additionalTopologies, "additional-topology", map[string]string{}, "Additional CSI driver topology keys, for example topology.kubernetes.io/region=REGION1. This option can be specified multiple times to add multiple additional topology keys.")
0 commit comments