2 Copyright The Kubernetes Authors.
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
8 http://www.apache.org/licenses/LICENSE-2.0
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
18 // This file was autogenerated by go-to-protobuf. Do not edit it manually!
22 package k8s.io.api.storage.v1beta1;
24 import "k8s.io/api/core/v1/generated.proto";
25 import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto";
26 import "k8s.io/apimachinery/pkg/runtime/generated.proto";
27 import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto";
29 // Package-wide variables from generator "generated".
30 option go_package = "v1beta1";
32 // StorageClass describes the parameters for a class of storage for
33 // which PersistentVolumes can be dynamically provisioned.
35 // StorageClasses are non-namespaced; the name of the storage class
36 // according to etcd is in ObjectMeta.Name.
37 message StorageClass {
38 // Standard object's metadata.
39 // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
41 optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
43 // Provisioner indicates the type of the provisioner.
44 optional string provisioner = 2;
46 // Parameters holds the parameters for the provisioner that should
47 // create volumes of this storage class.
49 map<string, string> parameters = 3;
51 // Dynamically provisioned PersistentVolumes of this storage class are
52 // created with this reclaimPolicy. Defaults to Delete.
54 optional string reclaimPolicy = 4;
56 // Dynamically provisioned PersistentVolumes of this storage class are
57 // created with these mountOptions, e.g. ["ro", "soft"]. Not validated -
58 // mount of the PVs will simply fail if one is invalid.
60 repeated string mountOptions = 5;
62 // AllowVolumeExpansion shows whether the storage class allow volume expand
64 optional bool allowVolumeExpansion = 6;
66 // VolumeBindingMode indicates how PersistentVolumeClaims should be
67 // provisioned and bound. When unset, VolumeBindingImmediate is used.
68 // This field is only honored by servers that enable the VolumeScheduling feature.
70 optional string volumeBindingMode = 7;
72 // Restrict the node topologies where volumes can be dynamically provisioned.
73 // Each volume plugin defines its own supported topology specifications.
74 // An empty TopologySelectorTerm list means there is no topology restriction.
75 // This field is only honored by servers that enable the VolumeScheduling feature.
77 repeated k8s.io.api.core.v1.TopologySelectorTerm allowedTopologies = 8;
80 // StorageClassList is a collection of storage classes.
81 message StorageClassList {
82 // Standard list metadata
83 // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
85 optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
87 // Items is the list of StorageClasses
88 repeated StorageClass items = 2;
91 // VolumeAttachment captures the intent to attach or detach the specified volume
92 // to/from the specified node.
94 // VolumeAttachment objects are non-namespaced.
95 message VolumeAttachment {
96 // Standard object metadata.
97 // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
99 optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
101 // Specification of the desired attach/detach volume behavior.
102 // Populated by the Kubernetes system.
103 optional VolumeAttachmentSpec spec = 2;
105 // Status of the VolumeAttachment request.
106 // Populated by the entity completing the attach or detach
107 // operation, i.e. the external-attacher.
109 optional VolumeAttachmentStatus status = 3;
112 // VolumeAttachmentList is a collection of VolumeAttachment objects.
113 message VolumeAttachmentList {
114 // Standard list metadata
115 // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
117 optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
119 // Items is the list of VolumeAttachments
120 repeated VolumeAttachment items = 2;
123 // VolumeAttachmentSource represents a volume that should be attached.
124 // Right now only PersistenVolumes can be attached via external attacher,
125 // in future we may allow also inline volumes in pods.
126 // Exactly one member can be set.
127 message VolumeAttachmentSource {
128 // Name of the persistent volume to attach.
130 optional string persistentVolumeName = 1;
133 // VolumeAttachmentSpec is the specification of a VolumeAttachment request.
134 message VolumeAttachmentSpec {
135 // Attacher indicates the name of the volume driver that MUST handle this
136 // request. This is the name returned by GetPluginName().
137 optional string attacher = 1;
139 // Source represents the volume that should be attached.
140 optional VolumeAttachmentSource source = 2;
142 // The node that the volume should be attached to.
143 optional string nodeName = 3;
146 // VolumeAttachmentStatus is the status of a VolumeAttachment request.
147 message VolumeAttachmentStatus {
148 // Indicates the volume is successfully attached.
149 // This field must only be set by the entity completing the attach
150 // operation, i.e. the external-attacher.
151 optional bool attached = 1;
153 // Upon successful attach, this field is populated with any
154 // information returned by the attach operation that must be passed
155 // into subsequent WaitForAttach or Mount calls.
156 // This field must only be set by the entity completing the attach
157 // operation, i.e. the external-attacher.
159 map<string, string> attachmentMetadata = 2;
161 // The last error encountered during attach operation, if any.
162 // This field must only be set by the entity completing the attach
163 // operation, i.e. the external-attacher.
165 optional VolumeError attachError = 3;
167 // The last error encountered during detach operation, if any.
168 // This field must only be set by the entity completing the detach
169 // operation, i.e. the external-attacher.
171 optional VolumeError detachError = 4;
174 // VolumeError captures an error encountered during a volume operation.
175 message VolumeError {
176 // Time the error was encountered.
178 optional k8s.io.apimachinery.pkg.apis.meta.v1.Time time = 1;
180 // String detailing the error encountered during Attach or Detach operation.
181 // This string maybe logged, so it should not contain sensitive
184 optional string message = 2;