From 28ff7e3a09b00b685755b448046e6d7870df753a Mon Sep 17 00:00:00 2001 From: Karolis Rusenas Date: Wed, 2 Aug 2017 16:16:28 +0100 Subject: [PATCH] adding node selector to vlume --- types/volume.go | 3 +++ types/volume_create_options.go | 3 +++ types/volume_update_options.go | 3 +++ 3 files changed, 9 insertions(+) diff --git a/types/volume.go b/types/volume.go index 62665c2..e7252fd 100644 --- a/types/volume.go +++ b/types/volume.go @@ -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"` diff --git a/types/volume_create_options.go b/types/volume_create_options.go index f767b1d..d7096e1 100644 --- a/types/volume_create_options.go +++ b/types/volume_create_options.go @@ -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"` diff --git a/types/volume_update_options.go b/types/volume_update_options.go index d0c8d6b..3c73c6b 100644 --- a/types/volume_update_options.go +++ b/types/volume_update_options.go @@ -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"`