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 ¶
- Variables
- func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
- func RegisterDefaults(scheme *runtime.Scheme) error
- type MongoDBAtlasAuth
- type MongoDBAtlasCluster
- type MongoDBAtlasClusterList
- type MongoDBAtlasClusterSpec
- type MongoDBAtlasClusterStatus
- type MongoDBAtlasProject
- type MongoDBAtlasProjectList
- type MongoDBAtlasProjectSpec
- type MongoDBAtlasProjectStatus
- type PrivateKey
- type PrivateKeySource
Constants ¶
This section is empty.
Variables ¶
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 GetOpenAPIDefinitions ¶
func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
func RegisterDefaults ¶
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 ¶
func (in *MongoDBAtlasClusterList) DeepCopy() *MongoDBAtlasClusterList
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 ¶
func (in *MongoDBAtlasClusterSpec) DeepCopy() *MongoDBAtlasClusterSpec
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,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 ¶
func (in *MongoDBAtlasClusterStatus) DeepCopy() *MongoDBAtlasClusterStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MongoDBAtlasClusterStatus.
func (*MongoDBAtlasClusterStatus) DeepCopyInto ¶
func (in *MongoDBAtlasClusterStatus) DeepCopyInto(out *MongoDBAtlasClusterStatus)
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 ¶
func (in *MongoDBAtlasProjectList) DeepCopy() *MongoDBAtlasProjectList
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 ¶
func (in *MongoDBAtlasProjectSpec) DeepCopy() *MongoDBAtlasProjectSpec
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 ¶
func (in *MongoDBAtlasProjectStatus) DeepCopy() *MongoDBAtlasProjectStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MongoDBAtlasProjectStatus.
func (*MongoDBAtlasProjectStatus) DeepCopyInto ¶
func (in *MongoDBAtlasProjectStatus) DeepCopyInto(out *MongoDBAtlasProjectStatus)
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.