v1alpha1

package
v0.0.0-...-1ea1cc7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 15, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package v1 is the v1 version of the API. +groupName=minio.rook.io

Copyright 2018 The Rook Authors. All rights reserved.

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

    http://www.apache.org/licenses/LICENSE-2.0

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.

Copyright 2018 The Rook Authors. All rights reserved.

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

    http://www.apache.org/licenses/LICENSE-2.0

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.

Index

Constants

View Source
const (
	CustomResourceGroup = "minio.rook.io"
	Version             = "v1alpha1"
)
View Source
const (
	// ClusterDomainDefault is the default local cluster domain
	ClusterDomainDefault = "cluster.local"
)

Variables

View Source
var (
	// SchemeBuilder and AddToScheme will stay in k8s.io/kubernetes.
	SchemeBuilder runtime.SchemeBuilder

	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: miniorookio.GroupName, Version: Version}

SchemeGroupVersion is group version used to register these objects.

Functions

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource.

Types

type ObjectStore

type ObjectStore struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`
	Spec              ObjectStoreSpec `json:"spec"`
}

func (*ObjectStore) DeepCopy

func (in *ObjectStore) DeepCopy() *ObjectStore

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectStore.

func (*ObjectStore) DeepCopyInto

func (in *ObjectStore) DeepCopyInto(out *ObjectStore)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ObjectStore) DeepCopyObject

func (in *ObjectStore) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ObjectStoreList

type ObjectStoreList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`
	Items           []ObjectStore `json:"items"`
}

func (*ObjectStoreList) DeepCopy

func (in *ObjectStoreList) DeepCopy() *ObjectStoreList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectStoreList.

func (*ObjectStoreList) DeepCopyInto

func (in *ObjectStoreList) DeepCopyInto(out *ObjectStoreList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ObjectStoreList) DeepCopyObject

func (in *ObjectStoreList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ObjectStoreSpec

type ObjectStoreSpec struct {
	// A spec for available storage in the cluster and how it should be used
	Storage rook.StorageScopeSpec `json:"scope,omitempty"`

	// The placement-related configuration to pass to kubernetes (affinity, node selector,
	// tolerations).
	Placement rook.PlacementSpec `json:"placement,omitempty"`

	// Minio cluster credential configuration.
	Credentials v1.SecretReference `json:"credentials"`

	// The amount of storage that will be available in the object store.
	StorageSize string `json:"storageAmount"`

	// ClusterDomain is the local cluster domain for this cluster. This should be set if an
	// alternative cluster domain is in use.  If not set, then the default of cluster.local will
	// be assumed.
	//
	// This field is needed to workaround https://github.com/minio/minio/issues/6775, and is
	// expected to be removed in the future.
	ClusterDomain string `json:"clusterDomain,omitempty"`
}

ObjectStoreSpec represent the spec of a Minio object store.

func (*ObjectStoreSpec) DeepCopy

func (in *ObjectStoreSpec) DeepCopy() *ObjectStoreSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectStoreSpec.

func (*ObjectStoreSpec) DeepCopyInto

func (in *ObjectStoreSpec) DeepCopyInto(out *ObjectStoreSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL