Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the cassandraoperator v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=cassandraoperator.instaclustr.com
Package v1alpha1 contains API Schema definitions for the cassandraoperator v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=cassandraoperator.instaclustr.com
Index ¶
- Variables
- func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
- type CassandraAuth
- type CassandraBackup
- func (in *CassandraBackup) DeepCopy() *CassandraBackup
- func (in *CassandraBackup) DeepCopyInto(out *CassandraBackup)
- func (in *CassandraBackup) DeepCopyObject() runtime.Object
- func (backupSpec *CassandraBackup) IsAzureBackup() bool
- func (backupSpec *CassandraBackup) IsGcpBackup() bool
- func (backupSpec *CassandraBackup) IsS3Backup() bool
- type CassandraBackupList
- type CassandraBackupSpec
- type CassandraBackupStatus
- type CassandraCluster
- type CassandraClusterList
- type CassandraClusterSpec
- type CassandraClusterStatus
- type CassandraDataCenter
- type CassandraDataCenterList
- type CassandraDataCenterSpec
- type CassandraDataCenterStatus
- type OperatorAnnotations
- type OperatorLabels
- type Rack
- type Restore
Constants ¶
This section is empty.
Variables ¶
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: "cassandraoperator.instaclustr.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
Types ¶
type CassandraAuth ¶
type CassandraAuth struct { Authenticator string `json:"authenticator"` Authorizer string `json:"authorizer"` RoleManager string `json:"roleManager"` }
func (*CassandraAuth) DeepCopy ¶
func (in *CassandraAuth) DeepCopy() *CassandraAuth
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CassandraAuth.
func (*CassandraAuth) DeepCopyInto ¶
func (in *CassandraAuth) DeepCopyInto(out *CassandraAuth)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CassandraBackup ¶
type CassandraBackup struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec CassandraBackupSpec `json:"spec"` // +listType Status []*CassandraBackupStatus `json:"status,omitempty"` GlobalStatus operations.OperationState `json:"globalStatus,omitempty"` GlobalProgress string `json:"globalProgress,omitempty"` JustCreate bool `json:"justCreate,omitempty"` }
CassandraBackup is the Schema for the cassandrabackups API +k8s:openapi-gen=true +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".globalStatus",description="Restore operation status" +kubebuilder:printcolumn:name="Progress",type="string",JSONPath=".globalProgress",description="Restore operation progress"
func (*CassandraBackup) DeepCopy ¶
func (in *CassandraBackup) DeepCopy() *CassandraBackup
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CassandraBackup.
func (*CassandraBackup) DeepCopyInto ¶
func (in *CassandraBackup) DeepCopyInto(out *CassandraBackup)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CassandraBackup) DeepCopyObject ¶
func (in *CassandraBackup) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*CassandraBackup) IsAzureBackup ¶
func (backupSpec *CassandraBackup) IsAzureBackup() bool
IsAzureBackup returns true if the backup type is Azure, otherwise returns false
func (*CassandraBackup) IsGcpBackup ¶
func (backupSpec *CassandraBackup) IsGcpBackup() bool
IsGcpBackup returns true if the backup type is GCP, otherwise returns false
func (*CassandraBackup) IsS3Backup ¶
func (backupSpec *CassandraBackup) IsS3Backup() bool
IsS3Backup returns true if the backup type is Amazon S3, otherwise returns false
type CassandraBackupList ¶
type CassandraBackupList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []CassandraBackup `json:"items"` }
CassandraBackupList contains a list of CassandraBackup
func (*CassandraBackupList) DeepCopy ¶
func (in *CassandraBackupList) DeepCopy() *CassandraBackupList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CassandraBackupList.
func (*CassandraBackupList) DeepCopyInto ¶
func (in *CassandraBackupList) DeepCopyInto(out *CassandraBackupList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CassandraBackupList) DeepCopyObject ¶
func (in *CassandraBackupList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CassandraBackupSpec ¶
type CassandraBackupSpec struct { CDC string `json:"cdc"` Cluster string `json:"cluster"` // Cassandra DC name to back up. Used to find the pods in the CDC Datacenter string `json:"datacenter"` // The uri for the backup target location e.g. s3 bucket, filepath StorageLocation string `json:"storageLocation"` // The snapshot tag for the backup SnapshotTag string `json:"snapshotTag"` ConcurrentConnections int `json:"concurrentConnections,omitempty"` Entities string `json:"entities,omitempty"` GlobalRequest bool `json:"globalRequest,omitempty"` Secret string `json:"secret,omitempty"` CreateMissingBucket bool `json:"createMissingBucket,omitempty"` SkipBucketVerification bool `json:"skipBucketVerification,omitempty"` Insecure bool `json:"insecure,omitempty"` MetadataDirective string `json:"metadataDirective,omitempty"` }
CassandraBackupSpec defines the desired state of CassandraBackup +k8s:openapi-gen=true
func (*CassandraBackupSpec) DeepCopy ¶
func (in *CassandraBackupSpec) DeepCopy() *CassandraBackupSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CassandraBackupSpec.
func (*CassandraBackupSpec) DeepCopyInto ¶
func (in *CassandraBackupSpec) DeepCopyInto(out *CassandraBackupSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CassandraBackupStatus ¶
type CassandraBackupStatus struct { // name of pod / node Node string `json:"node"` // State shows the status of the operation State operations.OperationState `json:"state"` // Progress shows the percentage of the operation done Progress string `json:"progress"` }
CassandraBackupStatus defines the observed state of CassandraBackup +k8s:openapi-gen=true
func (*CassandraBackupStatus) DeepCopy ¶
func (in *CassandraBackupStatus) DeepCopy() *CassandraBackupStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CassandraBackupStatus.
func (*CassandraBackupStatus) DeepCopyInto ¶
func (in *CassandraBackupStatus) DeepCopyInto(out *CassandraBackupStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CassandraCluster ¶
type CassandraCluster struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec CassandraClusterSpec `json:"spec,omitempty"` Status CassandraClusterStatus `json:"status,omitempty"` }
CassandraCluster is the Schema for the cassandraclusters API +k8s:openapi-gen=true +kubebuilder:subresource:status
func (*CassandraCluster) DeepCopy ¶
func (in *CassandraCluster) DeepCopy() *CassandraCluster
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CassandraCluster.
func (*CassandraCluster) DeepCopyInto ¶
func (in *CassandraCluster) DeepCopyInto(out *CassandraCluster)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CassandraCluster) DeepCopyObject ¶
func (in *CassandraCluster) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CassandraClusterList ¶
type CassandraClusterList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []CassandraCluster `json:"items"` }
CassandraClusterList contains a list of CassandraCluster
func (*CassandraClusterList) DeepCopy ¶
func (in *CassandraClusterList) DeepCopy() *CassandraClusterList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CassandraClusterList.
func (*CassandraClusterList) DeepCopyInto ¶
func (in *CassandraClusterList) DeepCopyInto(out *CassandraClusterList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CassandraClusterList) DeepCopyObject ¶
func (in *CassandraClusterList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CassandraClusterSpec ¶
type CassandraClusterSpec struct { }
CassandraClusterSpec defines the desired state of CassandraCluster +k8s:openapi-gen=true
func (*CassandraClusterSpec) DeepCopy ¶
func (in *CassandraClusterSpec) DeepCopy() *CassandraClusterSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CassandraClusterSpec.
func (*CassandraClusterSpec) DeepCopyInto ¶
func (in *CassandraClusterSpec) DeepCopyInto(out *CassandraClusterSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CassandraClusterStatus ¶
type CassandraClusterStatus struct { }
CassandraClusterStatus defines the observed state of CassandraCluster +k8s:openapi-gen=true
func (*CassandraClusterStatus) DeepCopy ¶
func (in *CassandraClusterStatus) DeepCopy() *CassandraClusterStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CassandraClusterStatus.
func (*CassandraClusterStatus) DeepCopyInto ¶
func (in *CassandraClusterStatus) DeepCopyInto(out *CassandraClusterStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CassandraDataCenter ¶
type CassandraDataCenter struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Cluster string `json:"cluster"` DataCenter string `json:"datacenter"` Spec CassandraDataCenterSpec `json:"spec,omitempty"` Status CassandraDataCenterStatus `json:"status,omitempty"` }
CassandraDataCenter is the Schema for the cassandradatacenters API +k8s:openapi-gen=true +kubebuilder:subresource:status
func (*CassandraDataCenter) DeepCopy ¶
func (in *CassandraDataCenter) DeepCopy() *CassandraDataCenter
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CassandraDataCenter.
func (*CassandraDataCenter) DeepCopyInto ¶
func (in *CassandraDataCenter) DeepCopyInto(out *CassandraDataCenter)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CassandraDataCenter) DeepCopyObject ¶
func (in *CassandraDataCenter) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CassandraDataCenterList ¶
type CassandraDataCenterList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []CassandraDataCenter `json:"items"` }
CassandraDataCenterList contains a list of CassandraDataCenter
func (*CassandraDataCenterList) DeepCopy ¶
func (in *CassandraDataCenterList) DeepCopy() *CassandraDataCenterList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CassandraDataCenterList.
func (*CassandraDataCenterList) DeepCopyInto ¶
func (in *CassandraDataCenterList) DeepCopyInto(out *CassandraDataCenterList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CassandraDataCenterList) DeepCopyObject ¶
func (in *CassandraDataCenterList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CassandraDataCenterSpec ¶
type CassandraDataCenterSpec struct { Nodes int32 `json:"nodes,omitempty"` CassandraImage string `json:"cassandraImage,omitempty"` SidecarImage string `json:"sidecarImage,omitempty"` InitImage string `json:"initImage,omitempty"` // +listType Racks []Rack `json:"racks,omitempty"` ImagePullPolicy v1.PullPolicy `json:"imagePullPolicy,omitempty"` // +listType ImagePullSecrets []v1.LocalObjectReference `json:"imagePullSecrets,omitempty"` UserSecretVolumeSource []*v1.SecretVolumeSource `json:"userSecretVolumeSource,omitempty"` UserConfigMapVolumeSource *v1.ConfigMapVolumeSource `json:"userConfigMapVolumeSource,omitempty"` SidecarSecretVolumeSource *v1.SecretVolumeSource `json:"sidecarSecretVolumeSource,omitempty"` Resources *v1.ResourceRequirements `json:"resources,omitempty"` SidecarResources *v1.ResourceRequirements `json:"sidecarResources,omitempty"` DummyVolume *v1.EmptyDirVolumeSource `json:"dummyVolume,omitempty"` DeletePVCs bool `json:"deletePVCs,omitempty"` DataVolumeClaimSpec *v1.PersistentVolumeClaimSpec `json:"dataVolumeClaimSpec,omitempty"` OptimizeKernelParams bool `json:"optimizeKernelParams,omitempty"` PrometheusSupport bool `json:"prometheusSupport,omitempty"` OperatorLabels *OperatorLabels `json:"operatorLabels,omitempty"` OperatorAnnotations *OperatorAnnotations `json:"operatorAnnotations,omitempty"` // +listType SidecarEnv []v1.EnvVar `json:"sidecarEnv,omitempty"` CassandraAuth *CassandraAuth `json:"cassandraAuth,omitempty"` // +listType CassandraEnv []v1.EnvVar `json:"cassandraEnv,omitempty"` ServiceAccountName string `json:"serviceAccountName,omitempty"` FSGroup int64 `json:"fsGroup,omitempty"` Restore *Restore `json:"restore,omitempty"` }
CassandraDataCenterSpec defines the desired state of CassandraDataCenter +k8s:openapi-gen=true
func (*CassandraDataCenterSpec) DeepCopy ¶
func (in *CassandraDataCenterSpec) DeepCopy() *CassandraDataCenterSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CassandraDataCenterSpec.
func (*CassandraDataCenterSpec) DeepCopyInto ¶
func (in *CassandraDataCenterSpec) DeepCopyInto(out *CassandraDataCenterSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CassandraDataCenterStatus ¶
type CassandraDataCenterStatus struct { }
CassandraDataCenterStatus defines the observed state of CassandraDataCenter +k8s:openapi-gen=true
func (*CassandraDataCenterStatus) DeepCopy ¶
func (in *CassandraDataCenterStatus) DeepCopy() *CassandraDataCenterStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CassandraDataCenterStatus.
func (*CassandraDataCenterStatus) DeepCopyInto ¶
func (in *CassandraDataCenterStatus) DeepCopyInto(out *CassandraDataCenterStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type OperatorAnnotations ¶
type OperatorAnnotations struct { PrometheusService map[string]string `json:"prometheusService,omitempty"` NodesService map[string]string `json:"nodesService,omitempty"` SeedNodesService map[string]string `json:"seedNodesService,omitempty"` StatefulSet map[string]string `json:"statefulSet,omitempty"` PodTemplate map[string]string `json:"podTemplate,omitempty"` }
func (*OperatorAnnotations) DeepCopy ¶
func (in *OperatorAnnotations) DeepCopy() *OperatorAnnotations
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OperatorAnnotations.
func (*OperatorAnnotations) DeepCopyInto ¶
func (in *OperatorAnnotations) DeepCopyInto(out *OperatorAnnotations)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type OperatorLabels ¶
type OperatorLabels struct { PrometheusService map[string]string `json:"prometheusService,omitempty"` NodesService map[string]string `json:"nodesService,omitempty"` SeedNodesService map[string]string `json:"seedNodesService,omitempty"` StatefulSet map[string]string `json:"statefulSet,omitempty"` PodTemplate map[string]string `json:"podTemplate,omitempty"` }
func (*OperatorLabels) DeepCopy ¶
func (in *OperatorLabels) DeepCopy() *OperatorLabels
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OperatorLabels.
func (*OperatorLabels) DeepCopyInto ¶
func (in *OperatorLabels) DeepCopyInto(out *OperatorLabels)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Rack ¶
type Rack struct { Name string `json:"name"` Labels map[string]string `json:"labels"` Tolerations []v1.Toleration `json:"tolerations,omitempty"` Affinity *v1.Affinity `json:"affinity,omitempty"` }
func (*Rack) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Rack.
func (*Rack) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Restore ¶
type Restore struct {
BackupName string `json:"backupName"`
}
func (*Restore) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Restore.
func (*Restore) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.