Support for labels at pvc level (#254)
This commit is contained in:
@@ -207,6 +207,9 @@ func (m *Zone) UnmarshalBinary(b []byte) error {
|
|||||||
// swagger:model ZoneVolumeConfiguration
|
// swagger:model ZoneVolumeConfiguration
|
||||||
type ZoneVolumeConfiguration struct {
|
type ZoneVolumeConfiguration struct {
|
||||||
|
|
||||||
|
// labels
|
||||||
|
Labels map[string]string `json:"labels,omitempty"`
|
||||||
|
|
||||||
// size
|
// size
|
||||||
// Required: true
|
// Required: true
|
||||||
Size *int64 `json:"size"`
|
Size *int64 `json:"size"`
|
||||||
|
|||||||
@@ -1141,7 +1141,8 @@ func parseTenantZoneRequest(zoneParams *models.Zone, annotations map[string]stri
|
|||||||
// Pass annotations to the volume
|
// Pass annotations to the volume
|
||||||
vct := &corev1.PersistentVolumeClaim{
|
vct := &corev1.PersistentVolumeClaim{
|
||||||
ObjectMeta: metav1.ObjectMeta{
|
ObjectMeta: metav1.ObjectMeta{
|
||||||
Name: "data",
|
Name: "data",
|
||||||
|
Labels: zoneParams.VolumeConfiguration.Labels,
|
||||||
},
|
},
|
||||||
Spec: volTemp,
|
Spec: volTemp,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3250,6 +3250,12 @@ func init() {
|
|||||||
"size"
|
"size"
|
||||||
],
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
|
"labels": {
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
"size": {
|
"size": {
|
||||||
"type": "integer"
|
"type": "integer"
|
||||||
},
|
},
|
||||||
@@ -5721,6 +5727,12 @@ func init() {
|
|||||||
"size"
|
"size"
|
||||||
],
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
|
"labels": {
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
"size": {
|
"size": {
|
||||||
"type": "integer"
|
"type": "integer"
|
||||||
},
|
},
|
||||||
@@ -7126,6 +7138,12 @@ func init() {
|
|||||||
"size"
|
"size"
|
||||||
],
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
|
"labels": {
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
"size": {
|
"size": {
|
||||||
"type": "integer"
|
"type": "integer"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -2088,6 +2088,10 @@ definitions:
|
|||||||
type: integer
|
type: integer
|
||||||
storage_class_name:
|
storage_class_name:
|
||||||
type: string
|
type: string
|
||||||
|
labels:
|
||||||
|
type: object
|
||||||
|
additionalProperties:
|
||||||
|
type: string
|
||||||
resources:
|
resources:
|
||||||
$ref: "#/definitions/zoneResources"
|
$ref: "#/definitions/zoneResources"
|
||||||
node_selector:
|
node_selector:
|
||||||
|
|||||||
Reference in New Issue
Block a user