Skip to content

Commit

Permalink
Merge pull request #13 from storageos/feature/node_selector
Browse files Browse the repository at this point in the history
adding node selector to vlume
  • Loading branch information
rusenask authored Aug 2, 2017
2 parents c7d11f8 + 28ff7e3 commit 13c329e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions types/volume.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ type Volume struct {
// Namespace is the object name and authentication scope, such as for teams and projects.
Namespace string `json:"namespace"`

// node selector (where volumes should land)
NodeSelector string `json:"nodeSelector"`

// Volume deployment information for the master volume.
// Read Only: true
Master *Deployment `json:"master,omitempty"`
Expand Down
3 changes: 3 additions & 0 deletions types/volume_create_options.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ type VolumeCreateOptions struct {
// Namespace is the object scope, such as for teams and projects.
Namespace string `json:"namespace"`

// node selector (where volumes should land)
NodeSelector string `json:"nodeSelector"`

// Labels are user-defined key/value metadata.
Labels map[string]string `json:"labels"`

Expand Down
3 changes: 3 additions & 0 deletions types/volume_update_options.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ type VolumeUpdateOptions struct {
// Namespace is the object scope, such as for teams and projects.
Namespace string `json:"namespace"`

// node selector (where volumes should land)
NodeSelector string `json:"nodeSelector"`

// Labels are user-defined key/value metadata.
Labels map[string]string `json:"labels"`

Expand Down

0 comments on commit 13c329e

Please sign in to comment.