v1alpha1

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2019 License: Apache-2.0 Imports: 8 Imported by: 6

Documentation

Overview

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

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

Index

Constants

This section is empty.

Variables

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

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

Functions

func RegisterDefaults

func RegisterDefaults(scheme *runtime.Scheme) error

RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.

Types

type MongoDBAtlasAuth

type MongoDBAtlasAuth struct {
	PublicKey  string     `json:"publicKey"`
	PrivateKey PrivateKey `json:"privateKey"`
}

MongoDBAtlasAuth defines the authentication struct for MongoDB Atlas API

func (*MongoDBAtlasAuth) DeepCopy

func (in *MongoDBAtlasAuth) DeepCopy() *MongoDBAtlasAuth

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

func (*MongoDBAtlasAuth) DeepCopyInto

func (in *MongoDBAtlasAuth) DeepCopyInto(out *MongoDBAtlasAuth)

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

type MongoDBAtlasCluster

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

	Spec   MongoDBAtlasClusterSpec   `json:"spec,omitempty"`
	Status MongoDBAtlasClusterStatus `json:"status,omitempty"`
}

MongoDBAtlasCluster is the Schema for the mongodbatlasclusters API +k8s:openapi-gen=true

func (*MongoDBAtlasCluster) DeepCopy

func (in *MongoDBAtlasCluster) DeepCopy() *MongoDBAtlasCluster

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

func (*MongoDBAtlasCluster) DeepCopyInto

func (in *MongoDBAtlasCluster) DeepCopyInto(out *MongoDBAtlasCluster)

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

func (*MongoDBAtlasCluster) DeepCopyObject

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

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

type MongoDBAtlasClusterList

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

MongoDBAtlasClusterList contains a list of MongoDBAtlasCluster

func (*MongoDBAtlasClusterList) DeepCopy

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

func (*MongoDBAtlasClusterList) DeepCopyInto

func (in *MongoDBAtlasClusterList) DeepCopyInto(out *MongoDBAtlasClusterList)

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

func (*MongoDBAtlasClusterList) DeepCopyObject

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

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

type MongoDBAtlasClusterSpec

type MongoDBAtlasClusterSpec struct {
	// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
	// Important: Run "operator-sdk generate k8s" to regenerate code after modifying this file
	// Add custom validation using kubebuilder tags: https://book.kubebuilder.io/beyond_basics/generating_crd.html
	MongoDBAtlasAuth      `json:",inline"`
	ProjectName           string                        `json:"projectName,project"`
	MongoDBVersion        string                        `json:"mongoDBVersion,omitempty"`
	MongoDBMajorVersion   string                        `json:"mongoDBMajorVersion,omitempty"`
	DiskSizeGB            float64                       `json:"diskSizeGB,omitempty"`
	BackupEnabled         bool                          `json:"backupEnabled"`
	ProviderBackupEnabled bool                          `json:"providerBackupEnabled"`
	ReplicationFactor     int                           `json:"replicationFactor,omitempty"`
	ReplicationSpec       map[string]ma.ReplicationSpec `json:"replicationSpec,omitempty"`
	NumShards             int                           `json:"numShards,omitempty"`
	AutoScaling           ma.AutoScaling                `json:"autoScaling,omitempty"`
	ProviderSettings      ma.ProviderSettings           `json:"providerSettings,omitempty"`
}

MongoDBAtlasClusterSpec defines the desired state of MongoDBAtlasCluster +k8s:openapi-gen=true

func (*MongoDBAtlasClusterSpec) DeepCopy

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

func (*MongoDBAtlasClusterSpec) DeepCopyInto

func (in *MongoDBAtlasClusterSpec) DeepCopyInto(out *MongoDBAtlasClusterSpec)

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

type MongoDBAtlasClusterStatus

type MongoDBAtlasClusterStatus struct {
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "operator-sdk generate k8s" to regenerate code after modifying this file
	// Add custom validation using kubebuilder tags: https://book.kubebuilder.io/beyond_basics/generating_crd.html
	// ID                    string                        `json:"id"`
	// GroupID               string                        `json:"groupId"`
	// Name                  string                        `json:"name"`
	// MongoDBVersion        string                        `json:"mongoDBVersion"`
	// MongoDBMajorVersion   string                        `json:"mongoDBMajorVersion"`
	// MongoURI              string                        `json:"mongoURI"`
	// MongoURIUpdated       string                        `json:"mongoURIUpdated"`
	// MongoURIWithOptions   string                        `json:"mongoURIWithOptions"`
	// SrvAddress            string                        `json:"srvAddress,omitempty"`
	// DiskSizeGB            float64                       `json:"diskSizeGB"`
	// BackupEnabled         bool                          `json:"backupEnabled"`
	// ProviderBackupEnabled bool                          `json:"providerBackupEnabled"`
	// StateName             string                        `json:"stateName"`
	// ReplicationFactor     int                           `json:"replicationFactor"`
	// ReplicationSpec       map[string]ma.ReplicationSpec `json:"replicationSpec"`
	// NumShards             int                           `json:"numShards"`
	// Paused                bool                          `json:"paused"`
	// AutoScaling           ma.AutoScaling                `json:"autoScaling"`
	// ProviderSettings      ma.ProviderSettings           `json:"providerSettings"`
	ID                    string                        `json:"id,omitempty"`
	GroupID               string                        `json:"groupId,omitempty"`
	Name                  string                        `json:"name,omitempty"`
	MongoDBVersion        string                        `json:"mongoDBVersion,omitempty"`
	MongoDBMajorVersion   string                        `json:"mongoDBMajorVersion,omitempty"`
	MongoURI              string                        `json:"mongoURI,omitempty"`
	MongoURIUpdated       string                        `json:"mongoURIUpdated,omitempty"`
	MongoURIWithOptions   string                        `json:"mongoURIWithOptions,omitempty"`
	SrvAddress            string                        `json:"srvAddress,omitempty"`
	DiskSizeGB            float64                       `json:"diskSizeGB,omitempty"`
	BackupEnabled         bool                          `json:"backupEnabled"`
	ProviderBackupEnabled bool                          `json:"providerBackupEnabled"`
	StateName             string                        `json:"stateName,omitempty"`
	ReplicationFactor     int                           `json:"replicationFactor,omitempty"`
	ReplicationSpec       map[string]ma.ReplicationSpec `json:"replicationSpec,omitempty"`
	NumShards             int                           `json:"numShards,omitempty"`
	Paused                bool                          `json:"paused"`
	AutoScaling           ma.AutoScaling                `json:"autoScaling,omitempty"`
	ProviderSettings      ma.ProviderSettings           `json:"providerSettings,omitempty"`
}

MongoDBAtlasClusterStatus defines the observed state of MongoDBAtlasCluster +k8s:openapi-gen=true

func (*MongoDBAtlasClusterStatus) DeepCopy

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

func (*MongoDBAtlasClusterStatus) DeepCopyInto

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

type MongoDBAtlasProject

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

	Spec   MongoDBAtlasProjectSpec   `json:"spec,omitempty"`
	Status MongoDBAtlasProjectStatus `json:"status,omitempty"`
}

MongoDBAtlasProject is the Schema for the mongodbatlasprojects API +k8s:openapi-gen=true

func (*MongoDBAtlasProject) DeepCopy

func (in *MongoDBAtlasProject) DeepCopy() *MongoDBAtlasProject

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

func (*MongoDBAtlasProject) DeepCopyInto

func (in *MongoDBAtlasProject) DeepCopyInto(out *MongoDBAtlasProject)

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

func (*MongoDBAtlasProject) DeepCopyObject

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

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

type MongoDBAtlasProjectList

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

MongoDBAtlasProjectList contains a list of MongoDBAtlasProject

func (*MongoDBAtlasProjectList) DeepCopy

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

func (*MongoDBAtlasProjectList) DeepCopyInto

func (in *MongoDBAtlasProjectList) DeepCopyInto(out *MongoDBAtlasProjectList)

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

func (*MongoDBAtlasProjectList) DeepCopyObject

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

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

type MongoDBAtlasProjectSpec

type MongoDBAtlasProjectSpec struct {
	// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
	// Important: Run "operator-sdk generate k8s" to regenerate code after modifying this file
	// Add custom validation using kubebuilder tags: https://book.kubebuilder.io/beyond_basics/generating_crd.html
	MongoDBAtlasAuth `json:",inline"`
	OrgID            string `json:"orgId,omitempty"`
}

MongoDBAtlasProjectSpec defines the desired state of MongoDBAtlasProject +k8s:openapi-gen=true

func (*MongoDBAtlasProjectSpec) DeepCopy

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

func (*MongoDBAtlasProjectSpec) DeepCopyInto

func (in *MongoDBAtlasProjectSpec) DeepCopyInto(out *MongoDBAtlasProjectSpec)

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

type MongoDBAtlasProjectStatus

type MongoDBAtlasProjectStatus struct {
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "operator-sdk generate k8s" to regenerate code after modifying this file
	// Add custom validation using kubebuilder tags: https://book.kubebuilder.io/beyond_basics/generating_crd.html
	ID           string `json:"id"`
	Name         string `json:"name"`
	OrgID        string `json:"orgId"`
	Created      string `json:"created"`
	ClusterCount int    `json:"clusterCount"`
}

MongoDBAtlasProjectStatus defines the observed state of MongoDBAtlasProject +k8s:openapi-gen=true

func (*MongoDBAtlasProjectStatus) DeepCopy

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

func (*MongoDBAtlasProjectStatus) DeepCopyInto

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

type PrivateKey

type PrivateKey struct {
	ValueFrom *PrivateKeySource `json:"valueFrom"`
}

PrivateKey defines the MongoDBAtlas Programmatic API Key reference

func (*PrivateKey) DeepCopy

func (in *PrivateKey) DeepCopy() *PrivateKey

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

func (*PrivateKey) DeepCopyInto

func (in *PrivateKey) DeepCopyInto(out *PrivateKey)

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

type PrivateKeySource

type PrivateKeySource struct {
	// Selects a key of a secret in the CR's namespace
	SecretKeyRef *corev1.SecretKeySelector `json:"secretKeyRef"`
}

PrivateKeySource defines the MongoDBAtlas Programmatic API Key reference Kubernetes source

func (*PrivateKeySource) DeepCopy

func (in *PrivateKeySource) DeepCopy() *PrivateKeySource

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

func (*PrivateKeySource) DeepCopyInto

func (in *PrivateKeySource) DeepCopyInto(out *PrivateKeySource)

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