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=advanced.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: advanced.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 ClusterSpecBiConnector

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

func (*ClusterSpecBiConnector) DeepCopy

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

func (*ClusterSpecBiConnector) DeepCopyInto

func (in *ClusterSpecBiConnector) DeepCopyInto(out *ClusterSpecBiConnector)

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

type ClusterSpecBiConnectorCodec

type ClusterSpecBiConnectorCodec struct {
}

+k8s:deepcopy-gen=false

func (ClusterSpecBiConnectorCodec) Decode

func (ClusterSpecBiConnectorCodec) Encode

func (ClusterSpecBiConnectorCodec) 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
	ContainerID *map[string]string `json:"containerID,omitempty" tf:"container_id"`
	// +optional
	ID *string `json:"ID,omitempty" tf:"id"`
	// +optional
	NumShards     *int64                                     `json:"numShards,omitempty" tf:"num_shards"`
	RegionConfigs []ClusterSpecReplicationSpecsRegionConfigs `json:"regionConfigs" tf:"region_configs"`
	// +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 ClusterSpecReplicationSpecsRegionConfigs

type ClusterSpecReplicationSpecsRegionConfigs struct {
	// +optional
	AnalyticsSpecs *ClusterSpecReplicationSpecsRegionConfigsAnalyticsSpecs `json:"analyticsSpecs,omitempty" tf:"analytics_specs"`
	// +optional
	AutoScaling *ClusterSpecReplicationSpecsRegionConfigsAutoScaling `json:"autoScaling,omitempty" tf:"auto_scaling"`
	// +optional
	BackingProviderName *string `json:"backingProviderName,omitempty" tf:"backing_provider_name"`
	// +optional
	ElectableSpecs *ClusterSpecReplicationSpecsRegionConfigsElectableSpecs `json:"electableSpecs,omitempty" tf:"electable_specs"`
	Priority       *int64                                                  `json:"priority" tf:"priority"`
	ProviderName   *string                                                 `json:"providerName" tf:"provider_name"`
	// +optional
	ReadOnlySpecs *ClusterSpecReplicationSpecsRegionConfigsReadOnlySpecs `json:"readOnlySpecs,omitempty" tf:"read_only_specs"`
	RegionName    *string                                                `json:"regionName" tf:"region_name"`
}

func (*ClusterSpecReplicationSpecsRegionConfigs) DeepCopy

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

func (*ClusterSpecReplicationSpecsRegionConfigs) DeepCopyInto

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

type ClusterSpecReplicationSpecsRegionConfigsAnalyticsSpecs

type ClusterSpecReplicationSpecsRegionConfigsAnalyticsSpecs struct {
	// +optional
	DiskIops *int64 `json:"diskIops,omitempty" tf:"disk_iops"`
	// +optional
	EbsVolumeType *string `json:"ebsVolumeType,omitempty" tf:"ebs_volume_type"`
	InstanceSize  *string `json:"instanceSize" tf:"instance_size"`
	// +optional
	NodeCount *int64 `json:"nodeCount,omitempty" tf:"node_count"`
}

func (*ClusterSpecReplicationSpecsRegionConfigsAnalyticsSpecs) DeepCopy

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

func (*ClusterSpecReplicationSpecsRegionConfigsAnalyticsSpecs) DeepCopyInto

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

type ClusterSpecReplicationSpecsRegionConfigsAnalyticsSpecsCodec

type ClusterSpecReplicationSpecsRegionConfigsAnalyticsSpecsCodec struct {
}

+k8s:deepcopy-gen=false

func (ClusterSpecReplicationSpecsRegionConfigsAnalyticsSpecsCodec) Decode

func (ClusterSpecReplicationSpecsRegionConfigsAnalyticsSpecsCodec) Encode

func (ClusterSpecReplicationSpecsRegionConfigsAnalyticsSpecsCodec) IsEmpty

type ClusterSpecReplicationSpecsRegionConfigsAutoScaling

type ClusterSpecReplicationSpecsRegionConfigsAutoScaling struct {
	// +optional
	ComputeEnabled *bool `json:"computeEnabled,omitempty" tf:"compute_enabled"`
	// +optional
	ComputeMaxInstanceSize *string `json:"computeMaxInstanceSize,omitempty" tf:"compute_max_instance_size"`
	// +optional
	ComputeMinInstanceSize *string `json:"computeMinInstanceSize,omitempty" tf:"compute_min_instance_size"`
	// +optional
	ComputeScaleDownEnabled *bool `json:"computeScaleDownEnabled,omitempty" tf:"compute_scale_down_enabled"`
	// +optional
	DiskGbEnabled *bool `json:"diskGbEnabled,omitempty" tf:"disk_gb_enabled"`
}

func (*ClusterSpecReplicationSpecsRegionConfigsAutoScaling) DeepCopy

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

func (*ClusterSpecReplicationSpecsRegionConfigsAutoScaling) DeepCopyInto

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

type ClusterSpecReplicationSpecsRegionConfigsAutoScalingCodec

type ClusterSpecReplicationSpecsRegionConfigsAutoScalingCodec struct {
}

+k8s:deepcopy-gen=false

func (ClusterSpecReplicationSpecsRegionConfigsAutoScalingCodec) Decode

func (ClusterSpecReplicationSpecsRegionConfigsAutoScalingCodec) Encode

func (ClusterSpecReplicationSpecsRegionConfigsAutoScalingCodec) IsEmpty

type ClusterSpecReplicationSpecsRegionConfigsElectableSpecs

type ClusterSpecReplicationSpecsRegionConfigsElectableSpecs struct {
	// +optional
	DiskIops *int64 `json:"diskIops,omitempty" tf:"disk_iops"`
	// +optional
	EbsVolumeType *string `json:"ebsVolumeType,omitempty" tf:"ebs_volume_type"`
	InstanceSize  *string `json:"instanceSize" tf:"instance_size"`
	// +optional
	NodeCount *int64 `json:"nodeCount,omitempty" tf:"node_count"`
}

func (*ClusterSpecReplicationSpecsRegionConfigsElectableSpecs) DeepCopy

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

func (*ClusterSpecReplicationSpecsRegionConfigsElectableSpecs) DeepCopyInto

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

type ClusterSpecReplicationSpecsRegionConfigsElectableSpecsCodec

type ClusterSpecReplicationSpecsRegionConfigsElectableSpecsCodec struct {
}

+k8s:deepcopy-gen=false

func (ClusterSpecReplicationSpecsRegionConfigsElectableSpecsCodec) Decode

func (ClusterSpecReplicationSpecsRegionConfigsElectableSpecsCodec) Encode

func (ClusterSpecReplicationSpecsRegionConfigsElectableSpecsCodec) IsEmpty

type ClusterSpecReplicationSpecsRegionConfigsReadOnlySpecs

type ClusterSpecReplicationSpecsRegionConfigsReadOnlySpecs struct {
	// +optional
	DiskIops *int64 `json:"diskIops,omitempty" tf:"disk_iops"`
	// +optional
	EbsVolumeType *string `json:"ebsVolumeType,omitempty" tf:"ebs_volume_type"`
	InstanceSize  *string `json:"instanceSize" tf:"instance_size"`
	// +optional
	NodeCount *int64 `json:"nodeCount,omitempty" tf:"node_count"`
}

func (*ClusterSpecReplicationSpecsRegionConfigsReadOnlySpecs) DeepCopy

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

func (*ClusterSpecReplicationSpecsRegionConfigsReadOnlySpecs) DeepCopyInto

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

type ClusterSpecReplicationSpecsRegionConfigsReadOnlySpecsCodec

type ClusterSpecReplicationSpecsRegionConfigsReadOnlySpecsCodec struct {
}

+k8s:deepcopy-gen=false

func (ClusterSpecReplicationSpecsRegionConfigsReadOnlySpecsCodec) Decode

func (ClusterSpecReplicationSpecsRegionConfigsReadOnlySpecsCodec) Encode

func (ClusterSpecReplicationSpecsRegionConfigsReadOnlySpecsCodec) IsEmpty

type ClusterSpecResource

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

	// +optional
	AdvancedConfiguration *ClusterSpecAdvancedConfiguration `json:"advancedConfiguration,omitempty" tf:"advanced_configuration"`
	// +optional
	BackupEnabled *bool `json:"backupEnabled,omitempty" tf:"backup_enabled"`
	// +optional
	BiConnector *ClusterSpecBiConnector `json:"biConnector,omitempty" tf:"bi_connector"`
	// +optional
	ClusterID   *string `json:"clusterID,omitempty" tf:"cluster_id"`
	ClusterType *string `json:"clusterType" tf:"cluster_type"`
	// +optional
	ConnectionStrings []ClusterSpecConnectionStrings `json:"connectionStrings,omitempty" tf:"connection_strings"`
	// +optional
	CreateDate *string `json:"createDate,omitempty" tf:"create_date"`
	// +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"`
	Name           *string `json:"name" tf:"name"`
	// +optional
	Paused *bool `json:"paused,omitempty" tf:"paused"`
	// +optional
	PitEnabled       *bool                         `json:"pitEnabled,omitempty" tf:"pit_enabled"`
	ProjectID        *string                       `json:"projectID" tf:"project_id"`
	ReplicationSpecs []ClusterSpecReplicationSpecs `json:"replicationSpecs" tf:"replication_specs"`
	// +optional
	RootCertType *string `json:"rootCertType,omitempty" tf:"root_cert_type"`
	// +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 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