Skip to content

Commit ad6449d

Browse files
Merge pull request #54463 from saad-ali/volumeAttachmentAPI
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Introduce new `VolumeAttachment` API Object **What this PR does / why we need it**: Introduce a new `VolumeAttachment` API Object. This object will be used by the CSI volume plugin to enable external attachers (see design [here](kubernetes/community#1258). In the future, existing volume plugins can be refactored to use this object as well. **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: Part of issue kubernetes/enhancements#178 **Special notes for your reviewer**: None **Release note**: ```release-note NONE ``` Kubernetes-commit: ebe8ea73fd1a961779242dfbb629befa153e96fc
2 parents a7175bb + c06289a commit ad6449d

8 files changed

+2170
-0
lines changed

storage/v1alpha1/BUILD

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
load("@io_bazel_rules_go//go:def.bzl", "go_library")
2+
3+
filegroup(
4+
name = "go_default_library_protos",
5+
srcs = ["generated.proto"],
6+
visibility = ["//visibility:public"],
7+
)
8+
9+
go_library(
10+
name = "go_default_library",
11+
srcs = [
12+
"doc.go",
13+
"generated.pb.go",
14+
"register.go",
15+
"types.go",
16+
"types_swagger_doc_generated.go",
17+
"zz_generated.deepcopy.go",
18+
],
19+
importpath = "k8s.io/api/storage/v1alpha1",
20+
visibility = ["//visibility:public"],
21+
deps = [
22+
"//vendor/github.com/gogo/protobuf/proto:go_default_library",
23+
"//vendor/github.com/gogo/protobuf/sortkeys:go_default_library",
24+
"//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
25+
"//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library",
26+
"//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library",
27+
],
28+
)
29+
30+
filegroup(
31+
name = "package-srcs",
32+
srcs = glob(["**"]),
33+
tags = ["automanaged"],
34+
visibility = ["//visibility:private"],
35+
)
36+
37+
filegroup(
38+
name = "all-srcs",
39+
srcs = [":package-srcs"],
40+
tags = ["automanaged"],
41+
visibility = ["//visibility:public"],
42+
)

storage/v1alpha1/doc.go

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/*
2+
Copyright 2017 The Kubernetes Authors.
3+
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
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
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.
15+
*/
16+
17+
// +k8s:deepcopy-gen=package,register
18+
// +groupName=storage.k8s.io
19+
// +k8s:openapi-gen=true
20+
package v1alpha1 // import "k8s.io/api/storage/v1alpha1"

0 commit comments

Comments
 (0)