Skip to content

Commit

Permalink
refact hostpath driver
Browse files Browse the repository at this point in the history
  • Loading branch information
fengzixu committed Apr 19, 2021
1 parent e5b3bca commit e0b0fd9
Show file tree
Hide file tree
Showing 11 changed files with 960 additions and 639 deletions.
1 change: 1 addition & 0 deletions cmd/hostpathplugin/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ func main() {
flag.Var(&cfg.Capacity, "capacity", "Simulate storage capacity. The parameter is <kind>=<quantity> where <kind> is the value of a 'kind' storage class parameter and <quantity> is the total amount of bytes for that kind. The flag may be used multiple times to configure different kinds.")
flag.BoolVar(&cfg.EnableAttach, "enable-attach", false, "Enables RPC_PUBLISH_UNPUBLISH_VOLUME capability.")
flag.Int64Var(&cfg.MaxVolumeSize, "max-volume-size", 1024*1024*1024*1024, "maximum size of volumes in bytes (inclusive)")
flag.StringVar(&cfg.DataRoot, "dataRoot", "/csi-data-dir", "the directory where persist volume and snapshot data are stored here")

showVersion := flag.Bool("version", false, "Show version.")
// The proxy-endpoint option is intended to used by the Kubernetes E2E test suite
Expand Down
71 changes: 0 additions & 71 deletions pkg/hostpath/capacity.go

This file was deleted.

Loading

0 comments on commit e0b0fd9

Please sign in to comment.