2017-09-14 09:40:34 -07:00
|
|
|
|
/*
|
2017-12-04 09:03:06 -08:00
|
|
|
|
Copyright 2017 The Rook Authors. All rights reserved.
|
2017-09-14 09:40:34 -07:00
|
|
|
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
2017-12-04 09:03:06 -08:00
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
2017-09-14 09:40:34 -07:00
|
|
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
|
|
limitations under the License.
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
2017-12-04 09:03:06 -08:00
|
|
|
|
// Package attachment to manage Kubernetes storage attach events.
|
2017-12-04 08:33:19 -08:00
|
|
|
|
package attachment
|
2017-09-14 09:40:34 -07:00
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
|
"reflect"
|
|
|
|
|
|
|
2017-10-27 13:16:06 -07:00
|
|
|
|
opkit "github.com/rook/operator-kit"
|
2017-12-04 08:33:19 -08:00
|
|
|
|
rookalpha "github.com/rook/rook/pkg/apis/rook.io/v1alpha1"
|
2017-09-14 09:40:34 -07:00
|
|
|
|
apiextensionsv1beta1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1"
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
const (
|
|
|
|
|
|
CustomResourceName = "volumeattachment"
|
|
|
|
|
|
CustomResourceNamePlural = "volumeattachments"
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
// VolumeAttachmentResource represents the VolumeAttachment custom resource object
|
2017-10-27 13:16:06 -07:00
|
|
|
|
var VolumeAttachmentResource = opkit.CustomResource{
|
2017-09-14 09:40:34 -07:00
|
|
|
|
Name: CustomResourceName,
|
|
|
|
|
|
Plural: CustomResourceNamePlural,
|
2017-12-04 08:33:19 -08:00
|
|
|
|
Group: rookalpha.CustomResourceGroup,
|
|
|
|
|
|
Version: rookalpha.Version,
|
2017-09-14 09:40:34 -07:00
|
|
|
|
Scope: apiextensionsv1beta1.NamespaceScoped,
|
2017-12-04 08:33:19 -08:00
|
|
|
|
Kind: reflect.TypeOf(rookalpha.VolumeAttachment{}).Name(),
|
2017-09-14 09:40:34 -07:00
|
|
|
|
}
|