v1alpha1

package
v0.0.0-...-30237b5 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

+kubebuilder:object:generate=true +groupName=encryption.mongodbatlas.crossplane.io +versionName=v1alpha1

Index

Constants

View Source
const (
	CRDGroup   = "encryption.mongodbatlas.crossplane.io"
	CRDVersion = "v1alpha1"
)

Package type metadata.

Variables

View Source
var (
	AtRest_Kind             = "AtRest"
	AtRest_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: AtRest_Kind}.String()
	AtRest_KindAPIVersion   = AtRest_Kind + "." + CRDGroupVersion.String()
	AtRest_GroupVersionKind = CRDGroupVersion.WithKind(AtRest_Kind)
)

Repository type metadata.

View Source
var (
	// CRDGroupVersion is the API Group Version used to register the objects
	CRDGroupVersion = schema.GroupVersion{Group: CRDGroup, Version: CRDVersion}

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

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type AtRest

type AtRest struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	// +kubebuilder:validation:XValidation:rule="self.managementPolicy == 'ObserveOnly' || has(self.forProvider.projectId)",message="projectId is a required parameter"
	Spec   AtRestSpec   `json:"spec"`
	Status AtRestStatus `json:"status,omitempty"`
}

AtRest is the Schema for the AtRests API. Provides an Encryption At Rest resource. +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:subresource:status +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,mongodbatlas}

func (*AtRest) DeepCopy

func (in *AtRest) DeepCopy() *AtRest

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

func (*AtRest) DeepCopyInto

func (in *AtRest) DeepCopyInto(out *AtRest)

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

func (*AtRest) DeepCopyObject

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

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

func (*AtRest) GetCondition

func (mg *AtRest) GetCondition(ct xpv1.ConditionType) xpv1.Condition

GetCondition of this AtRest.

func (*AtRest) GetConnectionDetailsMapping

func (tr *AtRest) GetConnectionDetailsMapping() map[string]string

GetConnectionDetailsMapping for this AtRest

func (*AtRest) GetDeletionPolicy

func (mg *AtRest) GetDeletionPolicy() xpv1.DeletionPolicy

GetDeletionPolicy of this AtRest.

func (*AtRest) GetID

func (tr *AtRest) GetID() string

GetID returns ID of underlying Terraform resource of this AtRest

func (*AtRest) GetManagementPolicy

func (mg *AtRest) GetManagementPolicy() xpv1.ManagementPolicy

GetManagementPolicy of this AtRest.

func (*AtRest) GetObservation

func (tr *AtRest) GetObservation() (map[string]any, error)

GetObservation of this AtRest

func (*AtRest) GetParameters

func (tr *AtRest) GetParameters() (map[string]any, error)

GetParameters of this AtRest

func (*AtRest) GetProviderConfigReference

func (mg *AtRest) GetProviderConfigReference() *xpv1.Reference

GetProviderConfigReference of this AtRest.

func (*AtRest) GetProviderReference

func (mg *AtRest) GetProviderReference() *xpv1.Reference

GetProviderReference of this AtRest. Deprecated: Use GetProviderConfigReference.

func (*AtRest) GetPublishConnectionDetailsTo

func (mg *AtRest) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo

GetPublishConnectionDetailsTo of this AtRest.

func (*AtRest) GetTerraformResourceType

func (mg *AtRest) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this AtRest

func (*AtRest) GetTerraformSchemaVersion

func (tr *AtRest) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*AtRest) GetWriteConnectionSecretToReference

func (mg *AtRest) GetWriteConnectionSecretToReference() *xpv1.SecretReference

GetWriteConnectionSecretToReference of this AtRest.

func (*AtRest) LateInitialize

func (tr *AtRest) LateInitialize(attrs []byte) (bool, error)

LateInitialize this AtRest using its observed tfState. returns True if there are any spec changes for the resource.

func (*AtRest) SetConditions

func (mg *AtRest) SetConditions(c ...xpv1.Condition)

SetConditions of this AtRest.

func (*AtRest) SetDeletionPolicy

func (mg *AtRest) SetDeletionPolicy(r xpv1.DeletionPolicy)

SetDeletionPolicy of this AtRest.

func (*AtRest) SetManagementPolicy

func (mg *AtRest) SetManagementPolicy(r xpv1.ManagementPolicy)

SetManagementPolicy of this AtRest.

func (*AtRest) SetObservation

func (tr *AtRest) SetObservation(obs map[string]any) error

SetObservation for this AtRest

func (*AtRest) SetParameters

func (tr *AtRest) SetParameters(params map[string]any) error

SetParameters for this AtRest

func (*AtRest) SetProviderConfigReference

func (mg *AtRest) SetProviderConfigReference(r *xpv1.Reference)

SetProviderConfigReference of this AtRest.

func (*AtRest) SetProviderReference

func (mg *AtRest) SetProviderReference(r *xpv1.Reference)

SetProviderReference of this AtRest. Deprecated: Use SetProviderConfigReference.

func (*AtRest) SetPublishConnectionDetailsTo

func (mg *AtRest) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)

SetPublishConnectionDetailsTo of this AtRest.

func (*AtRest) SetWriteConnectionSecretToReference

func (mg *AtRest) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)

SetWriteConnectionSecretToReference of this AtRest.

type AtRestList

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

AtRestList contains a list of AtRests

func (*AtRestList) DeepCopy

func (in *AtRestList) DeepCopy() *AtRestList

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

func (*AtRestList) DeepCopyInto

func (in *AtRestList) DeepCopyInto(out *AtRestList)

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

func (*AtRestList) DeepCopyObject

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

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

func (*AtRestList) GetItems

func (l *AtRestList) GetItems() []resource.Managed

GetItems of this AtRestList.

type AtRestObservation

type AtRestObservation struct {
	AwsKMSConfig []AwsKMSConfigObservation `json:"awsKmsConfig,omitempty" tf:"aws_kms_config,omitempty"`

	AzureKeyVaultConfig []AzureKeyVaultConfigObservation `json:"azureKeyVaultConfig,omitempty" tf:"azure_key_vault_config,omitempty"`

	GoogleCloudKMSConfig []GoogleCloudKMSConfigObservation `json:"googleCloudKmsConfig,omitempty" tf:"google_cloud_kms_config,omitempty"`

	ID *string `json:"id,omitempty" tf:"id,omitempty"`

	// The unique identifier for the project.
	ProjectID *string `json:"projectId,omitempty" tf:"project_id,omitempty"`
}

func (*AtRestObservation) DeepCopy

func (in *AtRestObservation) DeepCopy() *AtRestObservation

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

func (*AtRestObservation) DeepCopyInto

func (in *AtRestObservation) DeepCopyInto(out *AtRestObservation)

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

type AtRestParameters

type AtRestParameters struct {

	// +kubebuilder:validation:Optional
	AwsKMSConfig []AwsKMSConfigParameters `json:"awsKmsConfig,omitempty" tf:"aws_kms_config,omitempty"`

	// Specifies AWS KMS configuration details and whether Encryption at Rest is enabled for an Atlas project.
	// +kubebuilder:validation:Optional
	AwsKMSSecretRef *v1.SecretReference `json:"awsKmsSecretRef,omitempty" tf:"-"`

	// +kubebuilder:validation:Optional
	AzureKeyVaultConfig []AzureKeyVaultConfigParameters `json:"azureKeyVaultConfig,omitempty" tf:"azure_key_vault_config,omitempty"`

	// Specifies Azure Key Vault configuration details and whether Encryption at Rest is enabled for an Atlas project.
	// +kubebuilder:validation:Optional
	AzureKeyVaultSecretRef *v1.SecretReference `json:"azureKeyVaultSecretRef,omitempty" tf:"-"`

	// +kubebuilder:validation:Optional
	GoogleCloudKMSConfig []GoogleCloudKMSConfigParameters `json:"googleCloudKmsConfig,omitempty" tf:"google_cloud_kms_config,omitempty"`

	// Specifies GCP KMS configuration details and whether Encryption at Rest is enabled for an Atlas project.
	// +kubebuilder:validation:Optional
	GoogleCloudKMSSecretRef *v1.SecretReference `json:"googleCloudKmsSecretRef,omitempty" tf:"-"`

	// The unique identifier for the project.
	// +kubebuilder:validation:Optional
	ProjectID *string `json:"projectId,omitempty" tf:"project_id,omitempty"`
}

func (*AtRestParameters) DeepCopy

func (in *AtRestParameters) DeepCopy() *AtRestParameters

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

func (*AtRestParameters) DeepCopyInto

func (in *AtRestParameters) DeepCopyInto(out *AtRestParameters)

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

type AtRestSpec

type AtRestSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     AtRestParameters `json:"forProvider"`
}

AtRestSpec defines the desired state of AtRest

func (*AtRestSpec) DeepCopy

func (in *AtRestSpec) DeepCopy() *AtRestSpec

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

func (*AtRestSpec) DeepCopyInto

func (in *AtRestSpec) DeepCopyInto(out *AtRestSpec)

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

type AtRestStatus

type AtRestStatus struct {
	v1.ResourceStatus `json:",inline"`
	AtProvider        AtRestObservation `json:"atProvider,omitempty"`
}

AtRestStatus defines the observed state of AtRest.

func (*AtRestStatus) DeepCopy

func (in *AtRestStatus) DeepCopy() *AtRestStatus

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

func (*AtRestStatus) DeepCopyInto

func (in *AtRestStatus) DeepCopyInto(out *AtRestStatus)

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

type AwsKMSConfigObservation

type AwsKMSConfigObservation struct {

	// Specifies whether Encryption at Rest is enabled for an Atlas project, To disable Encryption at Rest, pass only this parameter with a value of false, When you disable Encryption at Rest, Atlas also removes the configuration details.
	Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`

	// The AWS region in which the AWS customer master key exists: CA_CENTRAL_1, US_EAST_1, US_EAST_2, US_WEST_1, US_WEST_2, SA_EAST_1
	Region *string `json:"region,omitempty" tf:"region,omitempty"`

	// ID of an AWS IAM role authorized to manage an AWS customer master key. To find the ID for an existing IAM role check the role_id attribute of the mongodbatlas_cloud_provider_access resource.
	RoleID *string `json:"roleId,omitempty" tf:"role_id,omitempty"`
}

func (*AwsKMSConfigObservation) DeepCopy

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

func (*AwsKMSConfigObservation) DeepCopyInto

func (in *AwsKMSConfigObservation) DeepCopyInto(out *AwsKMSConfigObservation)

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

type AwsKMSConfigParameters

type AwsKMSConfigParameters struct {

	// +kubebuilder:validation:Optional
	AccessKeyIDSecretRef *v1.SecretKeySelector `json:"accessKeyIdSecretRef,omitempty" tf:"-"`

	// The AWS customer master key used to encrypt and decrypt the MongoDB master keys.
	// +kubebuilder:validation:Optional
	CustomerMasterKeyIDSecretRef *v1.SecretKeySelector `json:"customerMasterKeyIdSecretRef,omitempty" tf:"-"`

	// Specifies whether Encryption at Rest is enabled for an Atlas project, To disable Encryption at Rest, pass only this parameter with a value of false, When you disable Encryption at Rest, Atlas also removes the configuration details.
	// +kubebuilder:validation:Optional
	Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`

	// The AWS region in which the AWS customer master key exists: CA_CENTRAL_1, US_EAST_1, US_EAST_2, US_WEST_1, US_WEST_2, SA_EAST_1
	// +kubebuilder:validation:Optional
	Region *string `json:"region,omitempty" tf:"region,omitempty"`

	// ID of an AWS IAM role authorized to manage an AWS customer master key. To find the ID for an existing IAM role check the role_id attribute of the mongodbatlas_cloud_provider_access resource.
	// +kubebuilder:validation:Optional
	RoleID *string `json:"roleId,omitempty" tf:"role_id,omitempty"`

	// +kubebuilder:validation:Optional
	SecretAccessKeySecretRef *v1.SecretKeySelector `json:"secretAccessKeySecretRef,omitempty" tf:"-"`
}

func (*AwsKMSConfigParameters) DeepCopy

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

func (*AwsKMSConfigParameters) DeepCopyInto

func (in *AwsKMSConfigParameters) DeepCopyInto(out *AwsKMSConfigParameters)

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

type AzureKeyVaultConfigObservation

type AzureKeyVaultConfigObservation struct {

	// The Azure environment where the Azure account credentials reside. Valid values are the following: AZURE, AZURE_CHINA, AZURE_GERMANY
	AzureEnvironment *string `json:"azureEnvironment,omitempty" tf:"azure_environment,omitempty"`

	// Specifies whether Encryption at Rest is enabled for an Atlas project, To disable Encryption at Rest, pass only this parameter with a value of false, When you disable Encryption at Rest, Atlas also removes the configuration details.
	Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`

	// The name of an Azure Key Vault containing your key.
	KeyVaultName *string `json:"keyVaultName,omitempty" tf:"key_vault_name,omitempty"`

	// The name of the Azure Resource group that contains an Azure Key Vault.
	ResourceGroupName *string `json:"resourceGroupName,omitempty" tf:"resource_group_name,omitempty"`
}

func (*AzureKeyVaultConfigObservation) DeepCopy

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

func (*AzureKeyVaultConfigObservation) DeepCopyInto

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

type AzureKeyVaultConfigParameters

type AzureKeyVaultConfigParameters struct {

	// The Azure environment where the Azure account credentials reside. Valid values are the following: AZURE, AZURE_CHINA, AZURE_GERMANY
	// +kubebuilder:validation:Optional
	AzureEnvironment *string `json:"azureEnvironment,omitempty" tf:"azure_environment,omitempty"`

	// The client ID, also known as the application ID, for an Azure application associated with the Azure AD tenant.
	// +kubebuilder:validation:Optional
	ClientIDSecretRef *v1.SecretKeySelector `json:"clientIdSecretRef,omitempty" tf:"-"`

	// Specifies whether Encryption at Rest is enabled for an Atlas project, To disable Encryption at Rest, pass only this parameter with a value of false, When you disable Encryption at Rest, Atlas also removes the configuration details.
	// +kubebuilder:validation:Required
	Enabled *bool `json:"enabled" tf:"enabled,omitempty"`

	// The unique identifier of a key in an Azure Key Vault.
	// +kubebuilder:validation:Optional
	KeyIdentifierSecretRef *v1.SecretKeySelector `json:"keyIdentifierSecretRef,omitempty" tf:"-"`

	// The name of an Azure Key Vault containing your key.
	// +kubebuilder:validation:Optional
	KeyVaultName *string `json:"keyVaultName,omitempty" tf:"key_vault_name,omitempty"`

	// The name of the Azure Resource group that contains an Azure Key Vault.
	// +kubebuilder:validation:Optional
	ResourceGroupName *string `json:"resourceGroupName,omitempty" tf:"resource_group_name,omitempty"`

	// The secret associated with the Azure Key Vault specified by azureKeyVault.tenantID.
	// +kubebuilder:validation:Optional
	SecretSecretRef *v1.SecretKeySelector `json:"secretSecretRef,omitempty" tf:"-"`

	// The unique identifier associated with an Azure subscription.
	// +kubebuilder:validation:Optional
	SubscriptionIDSecretRef *v1.SecretKeySelector `json:"subscriptionIdSecretRef,omitempty" tf:"-"`

	// The unique identifier for an Azure AD tenant within an Azure subscription.
	// +kubebuilder:validation:Optional
	TenantIDSecretRef *v1.SecretKeySelector `json:"tenantIdSecretRef,omitempty" tf:"-"`
}

func (*AzureKeyVaultConfigParameters) DeepCopy

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

func (*AzureKeyVaultConfigParameters) DeepCopyInto

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

type GoogleCloudKMSConfigObservation

type GoogleCloudKMSConfigObservation struct {

	// Specifies whether Encryption at Rest is enabled for an Atlas project, To disable Encryption at Rest, pass only this parameter with a value of false, When you disable Encryption at Rest, Atlas also removes the configuration details.
	Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`
}

func (*GoogleCloudKMSConfigObservation) DeepCopy

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

func (*GoogleCloudKMSConfigObservation) DeepCopyInto

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

type GoogleCloudKMSConfigParameters

type GoogleCloudKMSConfigParameters struct {

	// Specifies whether Encryption at Rest is enabled for an Atlas project, To disable Encryption at Rest, pass only this parameter with a value of false, When you disable Encryption at Rest, Atlas also removes the configuration details.
	// +kubebuilder:validation:Optional
	Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`

	// The Key Version Resource ID from your GCP account.
	// +kubebuilder:validation:Optional
	KeyVersionResourceIDSecretRef *v1.SecretKeySelector `json:"keyVersionResourceIdSecretRef,omitempty" tf:"-"`

	// String-formatted JSON object containing GCP KMS credentials from your GCP account.
	// +kubebuilder:validation:Optional
	ServiceAccountKeySecretRef *v1.SecretKeySelector `json:"serviceAccountKeySecretRef,omitempty" tf:"-"`
}

func (*GoogleCloudKMSConfigParameters) DeepCopy

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

func (*GoogleCloudKMSConfigParameters) DeepCopyInto

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