v1

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package v1 contains API Schema definitions for the mongodb v1 API group +k8s:deepcopy-gen=package,register +groupName=mongodb.com

Package v1 contains API Schema definitions for the mongodb v1 API group +k8s:deepcopy-gen=package,register +groupName=mongodb.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// SchemeGroupVersion is group version used to register these objects
	SchemeGroupVersion = schema.GroupVersion{Group: "mongodb.com", Version: "v1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion}
)

Functions

This section is empty.

Types

type Kind

type Kind string
var (
	ReplicaSet Kind = "ReplicaSet"
)

type MongoDB

type MongoDB struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   MongoDBSpec   `json:"spec,omitempty"`
	Status MongoDBStatus `json:"status,omitempty"`
}

MongoDB is the Schema for the mongodbs API +kubebuilder:subresource:status +kubebuilder:resource:path=mongodbs,scope=Namespaced

func (MongoDB) BuildStatefulSet

func (m MongoDB) BuildStatefulSet() appsv1.StatefulSet

TODO: build the correct statefulset - this is a dummy implementation BuildStatefulSet constructs an instance of appsv1.StatefulSet which should be created during reconciliation

func (*MongoDB) ServiceName

func (m *MongoDB) ServiceName() string

ServiceName returns the name of the Service that should be created for this resource

type MongoDBList

type MongoDBList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []MongoDB `json:"items"`
}

MongoDBList contains a list of MongoDB

type MongoDBSpec

type MongoDBSpec struct {
	// Members is the number of members in the replica set
	// +optional
	Members int32 `json:"members"`
	// Kind defines which kind of MongoDB deployment the resource should create
	Kind Kind `json:"kind"`
	// Version defines which version of MongoDB will be used
	Version string `json:"version"`
}

MongoDBSpec defines the desired state of MongoDB

type MongoDBStatus

type MongoDBStatus struct {
}

MongoDBStatus defines the observed state of MongoDB

Jump to

Keyboard shortcuts

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