v1alpha1

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

+groupName=cluster.mongodbatlas.kubeform.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api.
	// localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes.
	SchemeBuilder runtime.SchemeBuilder

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

Functions

func GetDecoder

func GetDecoder() map[string]jsoniter.ValDecoder

func GetEncoder

func GetEncoder() map[string]jsoniter.ValEncoder

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type Cluster

type Cluster struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              ClusterSpec   `json:"spec,omitempty"`
	Status            ClusterStatus `json:"status,omitempty"`
}

func (*Cluster) DeepCopy

func (in *Cluster) DeepCopy() *Cluster

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

func (*Cluster) DeepCopyInto

func (in *Cluster) DeepCopyInto(out *Cluster)

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

func (*Cluster) DeepCopyObject

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

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

func (*Cluster) SetupWebhookWithManager

func (r *Cluster) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*Cluster) ValidateCreate

func (r *Cluster) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*Cluster) ValidateDelete

func (r *Cluster) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*Cluster) ValidateUpdate

func (r *Cluster) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type ClusterList

type ClusterList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	// Items is a list of Cluster CRD objects
	Items []Cluster `json:"items,omitempty"`
}

ClusterList is a list of Clusters

func (*ClusterList) DeepCopy

func (in *ClusterList) DeepCopy() *ClusterList

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

func (*ClusterList) DeepCopyInto

func (in *ClusterList) DeepCopyInto(out *ClusterList)

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

func (*ClusterList) DeepCopyObject

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

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

type ClusterSpec

type ClusterSpec struct {
	State *ClusterSpecResource `json:"state,omitempty" tf:"-"`

	Resource ClusterSpecResource `json:"resource" tf:"resource"`

	UpdatePolicy base.UpdatePolicy `json:"updatePolicy,omitempty" tf:"-"`

	TerminationPolicy base.TerminationPolicy `json:"terminationPolicy,omitempty" tf:"-"`

	ProviderRef core.LocalObjectReference `json:"providerRef" tf:"-"`

	BackendRef *core.LocalObjectReference `json:"backendRef,omitempty" tf:"-"`
}

func (*ClusterSpec) DeepCopy

func (in *ClusterSpec) DeepCopy() *ClusterSpec

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

func (*ClusterSpec) DeepCopyInto

func (in *ClusterSpec) DeepCopyInto(out *ClusterSpec)

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

type ClusterSpecAdvancedConfiguration

type ClusterSpecAdvancedConfiguration struct {
	// +optional
	DefaultReadConcern *string `json:"defaultReadConcern,omitempty" tf:"default_read_concern"`
	// +optional
	DefaultWriteConcern *string `json:"defaultWriteConcern,omitempty" tf:"default_write_concern"`
	// +optional
	FailIndexKeyTooLong *bool `json:"failIndexKeyTooLong,omitempty" tf:"fail_index_key_too_long"`
	// +optional
	JavascriptEnabled *bool `json:"javascriptEnabled,omitempty" tf:"javascript_enabled"`
	// +optional
	MinimumEnabledTlsProtocol *string `json:"minimumEnabledTlsProtocol,omitempty" tf:"minimum_enabled_tls_protocol"`
	// +optional
	NoTableScan *bool `json:"noTableScan,omitempty" tf:"no_table_scan"`
	// +optional
	OplogSizeMb *int64 `json:"oplogSizeMb,omitempty" tf:"oplog_size_mb"`
	// +optional
	SampleRefreshIntervalBiConnector *int64 `json:"sampleRefreshIntervalBiConnector,omitempty" tf:"sample_refresh_interval_bi_connector"`
	// +optional
	SampleSizeBiConnector *int64 `json:"sampleSizeBiConnector,omitempty" tf:"sample_size_bi_connector"`
}

func (*ClusterSpecAdvancedConfiguration) DeepCopy

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

func (*ClusterSpecAdvancedConfiguration) DeepCopyInto

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

type ClusterSpecAdvancedConfigurationCodec

type ClusterSpecAdvancedConfigurationCodec struct {
}

+k8s:deepcopy-gen=false

func (ClusterSpecAdvancedConfigurationCodec) Decode

func (ClusterSpecAdvancedConfigurationCodec) Encode

func (ClusterSpecAdvancedConfigurationCodec) IsEmpty

type ClusterSpecBiConnectorConfig

type ClusterSpecBiConnectorConfig struct {
	// +optional
	Enabled *bool `json:"enabled,omitempty" tf:"enabled"`
	// +optional
	ReadPreference *string `json:"readPreference,omitempty" tf:"read_preference"`
}

func (*ClusterSpecBiConnectorConfig) DeepCopy

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

func (*ClusterSpecBiConnectorConfig) DeepCopyInto

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

type ClusterSpecBiConnectorConfigCodec

type ClusterSpecBiConnectorConfigCodec struct {
}

+k8s:deepcopy-gen=false

func (ClusterSpecBiConnectorConfigCodec) Decode

func (ClusterSpecBiConnectorConfigCodec) Encode

func (ClusterSpecBiConnectorConfigCodec) IsEmpty

type ClusterSpecConnectionStrings

type ClusterSpecConnectionStrings struct {
	// +optional
	// Deprecated
	AwsPrivateLink map[string]string `json:"awsPrivateLink,omitempty" tf:"aws_private_link"`
	// +optional
	// Deprecated
	AwsPrivateLinkSrv map[string]string `json:"awsPrivateLinkSrv,omitempty" tf:"aws_private_link_srv"`
	// +optional
	Private *string `json:"private,omitempty" tf:"private"`
	// +optional
	PrivateEndpoint []ClusterSpecConnectionStringsPrivateEndpoint `json:"privateEndpoint,omitempty" tf:"private_endpoint"`
	// +optional
	PrivateSrv *string `json:"privateSrv,omitempty" tf:"private_srv"`
	// +optional
	Standard *string `json:"standard,omitempty" tf:"standard"`
	// +optional
	StandardSrv *string `json:"standardSrv,omitempty" tf:"standard_srv"`
}

func (*ClusterSpecConnectionStrings) DeepCopy

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

func (*ClusterSpecConnectionStrings) DeepCopyInto

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

type ClusterSpecConnectionStringsPrivateEndpoint

type ClusterSpecConnectionStringsPrivateEndpoint struct {
	// +optional
	ConnectionString *string `json:"connectionString,omitempty" tf:"connection_string"`
	// +optional
	Endpoints []ClusterSpecConnectionStringsPrivateEndpointEndpoints `json:"endpoints,omitempty" tf:"endpoints"`
	// +optional
	SrvConnectionString *string `json:"srvConnectionString,omitempty" tf:"srv_connection_string"`
	// +optional
	Type *string `json:"type,omitempty" tf:"type"`
}

func (*ClusterSpecConnectionStringsPrivateEndpoint) DeepCopy

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

func (*ClusterSpecConnectionStringsPrivateEndpoint) DeepCopyInto

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

type ClusterSpecConnectionStringsPrivateEndpointEndpoints

type ClusterSpecConnectionStringsPrivateEndpointEndpoints struct {
	// +optional
	EndpointID *string `json:"endpointID,omitempty" tf:"endpoint_id"`
	// +optional
	ProviderName *string `json:"providerName,omitempty" tf:"provider_name"`
	// +optional
	Region *string `json:"region,omitempty" tf:"region"`
}

func (*ClusterSpecConnectionStringsPrivateEndpointEndpoints) DeepCopy

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

func (*ClusterSpecConnectionStringsPrivateEndpointEndpoints) DeepCopyInto

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

type ClusterSpecLabels

type ClusterSpecLabels struct {
	// +optional
	Key *string `json:"key,omitempty" tf:"key"`
	// +optional
	Value *string `json:"value,omitempty" tf:"value"`
}

func (*ClusterSpecLabels) DeepCopy

func (in *ClusterSpecLabels) DeepCopy() *ClusterSpecLabels

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

func (*ClusterSpecLabels) DeepCopyInto

func (in *ClusterSpecLabels) DeepCopyInto(out *ClusterSpecLabels)

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

type ClusterSpecReplicationSpecs

type ClusterSpecReplicationSpecs struct {
	// +optional
	ID        *string `json:"ID,omitempty" tf:"id"`
	NumShards *int64  `json:"numShards" tf:"num_shards"`
	// +optional
	RegionsConfig []ClusterSpecReplicationSpecsRegionsConfig `json:"regionsConfig,omitempty" tf:"regions_config"`
	// +optional
	ZoneName *string `json:"zoneName,omitempty" tf:"zone_name"`
}

func (*ClusterSpecReplicationSpecs) DeepCopy

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

func (*ClusterSpecReplicationSpecs) DeepCopyInto

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

type ClusterSpecReplicationSpecsRegionsConfig

type ClusterSpecReplicationSpecsRegionsConfig struct {
	// +optional
	AnalyticsNodes *int64 `json:"analyticsNodes,omitempty" tf:"analytics_nodes"`
	// +optional
	ElectableNodes *int64 `json:"electableNodes,omitempty" tf:"electable_nodes"`
	// +optional
	Priority *int64 `json:"priority,omitempty" tf:"priority"`
	// +optional
	ReadOnlyNodes *int64  `json:"readOnlyNodes,omitempty" tf:"read_only_nodes"`
	RegionName    *string `json:"regionName" tf:"region_name"`
}

func (*ClusterSpecReplicationSpecsRegionsConfig) DeepCopy

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

func (*ClusterSpecReplicationSpecsRegionsConfig) DeepCopyInto

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

type ClusterSpecResource

type ClusterSpecResource struct {
	ID string `json:"id,omitempty" tf:"id,omitempty"`

	// +optional
	AdvancedConfiguration *ClusterSpecAdvancedConfiguration `json:"advancedConfiguration,omitempty" tf:"advanced_configuration"`
	// +optional
	AutoScalingComputeEnabled *bool `json:"autoScalingComputeEnabled,omitempty" tf:"auto_scaling_compute_enabled"`
	// +optional
	AutoScalingComputeScaleDownEnabled *bool `json:"autoScalingComputeScaleDownEnabled,omitempty" tf:"auto_scaling_compute_scale_down_enabled"`
	// +optional
	AutoScalingDiskGbEnabled *bool `json:"autoScalingDiskGbEnabled,omitempty" tf:"auto_scaling_disk_gb_enabled"`
	// +optional
	BackingProviderName *string `json:"backingProviderName,omitempty" tf:"backing_provider_name"`
	// Clusters running MongoDB FCV 4.2 or later and any new Atlas clusters of any type do not support this parameter
	// +optional
	BackupEnabled *bool `json:"backupEnabled,omitempty" tf:"backup_enabled"`
	// +optional
	// Deprecated
	BiConnector *map[string]string `json:"biConnector,omitempty" tf:"bi_connector"`
	// +optional
	BiConnectorConfig *ClusterSpecBiConnectorConfig `json:"biConnectorConfig,omitempty" tf:"bi_connector_config"`
	// +optional
	CloudBackup *bool `json:"cloudBackup,omitempty" tf:"cloud_backup"`
	// +optional
	ClusterID *string `json:"clusterID,omitempty" tf:"cluster_id"`
	// +optional
	ClusterType *string `json:"clusterType,omitempty" tf:"cluster_type"`
	// +optional
	ConnectionStrings []ClusterSpecConnectionStrings `json:"connectionStrings,omitempty" tf:"connection_strings"`
	// +optional
	ContainerID *string `json:"containerID,omitempty" tf:"container_id"`
	// +optional
	DiskSizeGb *float64 `json:"diskSizeGb,omitempty" tf:"disk_size_gb"`
	// +optional
	EncryptionAtRestProvider *string `json:"encryptionAtRestProvider,omitempty" tf:"encryption_at_rest_provider"`
	// +optional
	Labels []ClusterSpecLabels `json:"labels,omitempty" tf:"labels"`
	// +optional
	MongoDbMajorVersion *string `json:"mongoDbMajorVersion,omitempty" tf:"mongo_db_major_version"`
	// +optional
	MongoDbVersion *string `json:"mongoDbVersion,omitempty" tf:"mongo_db_version"`
	// +optional
	MongoURI *string `json:"mongoURI,omitempty" tf:"mongo_uri"`
	// +optional
	MongoURIUpdated *string `json:"mongoURIUpdated,omitempty" tf:"mongo_uri_updated"`
	// +optional
	MongoURIWithOptions *string `json:"mongoURIWithOptions,omitempty" tf:"mongo_uri_with_options"`
	Name                *string `json:"name" tf:"name"`
	// +optional
	NumShards *int64 `json:"numShards,omitempty" tf:"num_shards"`
	// +optional
	Paused *bool `json:"paused,omitempty" tf:"paused"`
	// +optional
	PitEnabled *bool   `json:"pitEnabled,omitempty" tf:"pit_enabled"`
	ProjectID  *string `json:"projectID" tf:"project_id"`
	// +optional
	ProviderAutoScalingComputeMaxInstanceSize *string `json:"providerAutoScalingComputeMaxInstanceSize,omitempty" tf:"provider_auto_scaling_compute_max_instance_size"`
	// +optional
	ProviderAutoScalingComputeMinInstanceSize *string `json:"providerAutoScalingComputeMinInstanceSize,omitempty" tf:"provider_auto_scaling_compute_min_instance_size"`
	// +optional
	// Deprecated
	ProviderBackupEnabled *bool `json:"providerBackupEnabled,omitempty" tf:"provider_backup_enabled"`
	// +optional
	ProviderDiskIops *int64 `json:"providerDiskIops,omitempty" tf:"provider_disk_iops"`
	// +optional
	ProviderDiskTypeName *string `json:"providerDiskTypeName,omitempty" tf:"provider_disk_type_name"`
	// +optional
	// Deprecated
	ProviderEncryptEbsVolume *bool `json:"providerEncryptEbsVolume,omitempty" tf:"provider_encrypt_ebs_volume"`
	// +optional
	ProviderEncryptEbsVolumeFlag *bool   `json:"providerEncryptEbsVolumeFlag,omitempty" tf:"provider_encrypt_ebs_volume_flag"`
	ProviderInstanceSizeName     *string `json:"providerInstanceSizeName" tf:"provider_instance_size_name"`
	ProviderName                 *string `json:"providerName" tf:"provider_name"`
	// +optional
	ProviderRegionName *string `json:"providerRegionName,omitempty" tf:"provider_region_name"`
	// +optional
	ProviderVolumeType *string `json:"providerVolumeType,omitempty" tf:"provider_volume_type"`
	// +optional
	ReplicationFactor *int64 `json:"replicationFactor,omitempty" tf:"replication_factor"`
	// +optional
	ReplicationSpecs []ClusterSpecReplicationSpecs `json:"replicationSpecs,omitempty" tf:"replication_specs"`
	// +optional
	SnapshotBackupPolicy []ClusterSpecSnapshotBackupPolicy `json:"snapshotBackupPolicy,omitempty" tf:"snapshot_backup_policy"`
	// +optional
	SrvAddress *string `json:"srvAddress,omitempty" tf:"srv_address"`
	// +optional
	StateName *string `json:"stateName,omitempty" tf:"state_name"`
	// +optional
	VersionReleaseSystem *string `json:"versionReleaseSystem,omitempty" tf:"version_release_system"`
}

func (*ClusterSpecResource) DeepCopy

func (in *ClusterSpecResource) DeepCopy() *ClusterSpecResource

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

func (*ClusterSpecResource) DeepCopyInto

func (in *ClusterSpecResource) DeepCopyInto(out *ClusterSpecResource)

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

type ClusterSpecSnapshotBackupPolicy

type ClusterSpecSnapshotBackupPolicy struct {
	// +optional
	ClusterID *string `json:"clusterID,omitempty" tf:"cluster_id"`
	// +optional
	ClusterName *string `json:"clusterName,omitempty" tf:"cluster_name"`
	// +optional
	NextSnapshot *string `json:"nextSnapshot,omitempty" tf:"next_snapshot"`
	// +optional
	Policies []ClusterSpecSnapshotBackupPolicyPolicies `json:"policies,omitempty" tf:"policies"`
	// +optional
	ReferenceHourOfDay *int64 `json:"referenceHourOfDay,omitempty" tf:"reference_hour_of_day"`
	// +optional
	ReferenceMinuteOfHour *int64 `json:"referenceMinuteOfHour,omitempty" tf:"reference_minute_of_hour"`
	// +optional
	RestoreWindowDays *int64 `json:"restoreWindowDays,omitempty" tf:"restore_window_days"`
	// +optional
	UpdateSnapshots *bool `json:"updateSnapshots,omitempty" tf:"update_snapshots"`
}

func (*ClusterSpecSnapshotBackupPolicy) DeepCopy

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

func (*ClusterSpecSnapshotBackupPolicy) DeepCopyInto

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

type ClusterSpecSnapshotBackupPolicyPolicies

type ClusterSpecSnapshotBackupPolicyPolicies struct {
	// +optional
	ID *string `json:"ID,omitempty" tf:"id"`
	// +optional
	PolicyItem []ClusterSpecSnapshotBackupPolicyPoliciesPolicyItem `json:"policyItem,omitempty" tf:"policy_item"`
}

func (*ClusterSpecSnapshotBackupPolicyPolicies) DeepCopy

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

func (*ClusterSpecSnapshotBackupPolicyPolicies) DeepCopyInto

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

type ClusterSpecSnapshotBackupPolicyPoliciesPolicyItem

type ClusterSpecSnapshotBackupPolicyPoliciesPolicyItem struct {
	// +optional
	FrequencyInterval *int64 `json:"frequencyInterval,omitempty" tf:"frequency_interval"`
	// +optional
	FrequencyType *string `json:"frequencyType,omitempty" tf:"frequency_type"`
	// +optional
	ID *string `json:"ID,omitempty" tf:"id"`
	// +optional
	RetentionUnit *string `json:"retentionUnit,omitempty" tf:"retention_unit"`
	// +optional
	RetentionValue *int64 `json:"retentionValue,omitempty" tf:"retention_value"`
}

func (*ClusterSpecSnapshotBackupPolicyPoliciesPolicyItem) DeepCopy

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

func (*ClusterSpecSnapshotBackupPolicyPoliciesPolicyItem) DeepCopyInto

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

type ClusterStatus

type ClusterStatus struct {
	// Resource generation, which is updated on mutation by the API Server.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
	// +optional
	Phase status.Status `json:"phase,omitempty"`
	// +optional
	Conditions []kmapi.Condition `json:"conditions,omitempty"`
}

func (*ClusterStatus) DeepCopy

func (in *ClusterStatus) DeepCopy() *ClusterStatus

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

func (*ClusterStatus) DeepCopyInto

func (in *ClusterStatus) DeepCopyInto(out *ClusterStatus)

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