v1beta1

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

+kubebuilder:object:generate=true +groupName=attestation.azure.upbound.io +versionName=v1beta1

Index

Constants

View Source
const (
	CRDGroup   = "attestation.azure.upbound.io"
	CRDVersion = "v1beta1"
)

Package type metadata.

Variables

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
)
View Source
var (
	Provider_Kind             = "Provider"
	Provider_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: Provider_Kind}.String()
	Provider_KindAPIVersion   = Provider_Kind + "." + CRDGroupVersion.String()
	Provider_GroupVersionKind = CRDGroupVersion.WithKind(Provider_Kind)
)

Repository type metadata.

Functions

This section is empty.

Types

type PolicyInitParameters added in v0.35.0

type PolicyInitParameters struct {
	Data *string `json:"data,omitempty" tf:"data,omitempty"`

	EnvironmentType *string `json:"environmentType,omitempty" tf:"environment_type,omitempty"`
}

func (*PolicyInitParameters) DeepCopy added in v0.35.0

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

func (*PolicyInitParameters) DeepCopyInto added in v0.35.0

func (in *PolicyInitParameters) DeepCopyInto(out *PolicyInitParameters)

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

type PolicyObservation added in v0.32.0

type PolicyObservation struct {
	Data *string `json:"data,omitempty" tf:"data,omitempty"`

	EnvironmentType *string `json:"environmentType,omitempty" tf:"environment_type,omitempty"`
}

func (*PolicyObservation) DeepCopy added in v0.32.0

func (in *PolicyObservation) DeepCopy() *PolicyObservation

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

func (*PolicyObservation) DeepCopyInto added in v0.32.0

func (in *PolicyObservation) DeepCopyInto(out *PolicyObservation)

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

type PolicyParameters added in v0.32.0

type PolicyParameters struct {

	// +kubebuilder:validation:Optional
	Data *string `json:"data,omitempty" tf:"data,omitempty"`

	// +kubebuilder:validation:Optional
	EnvironmentType *string `json:"environmentType,omitempty" tf:"environment_type,omitempty"`
}

func (*PolicyParameters) DeepCopy added in v0.32.0

func (in *PolicyParameters) DeepCopy() *PolicyParameters

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

func (*PolicyParameters) DeepCopyInto added in v0.32.0

func (in *PolicyParameters) DeepCopyInto(out *PolicyParameters)

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

type Provider

type Provider struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.location) || (has(self.initProvider) && has(self.initProvider.location))",message="spec.forProvider.location is a required parameter"
	Spec   ProviderSpec   `json:"spec"`
	Status ProviderStatus `json:"status,omitempty"`
}

Provider is the Schema for the Providers API. Manages an Attestation Provider. +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].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:resource:scope=Cluster,categories={crossplane,managed,azure}

func (*Provider) DeepCopy

func (in *Provider) DeepCopy() *Provider

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

func (*Provider) DeepCopyInto

func (in *Provider) DeepCopyInto(out *Provider)

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

func (*Provider) DeepCopyObject

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

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

func (*Provider) GetCondition

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

GetCondition of this Provider.

func (*Provider) GetConnectionDetailsMapping

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

GetConnectionDetailsMapping for this Provider

func (*Provider) GetDeletionPolicy

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

GetDeletionPolicy of this Provider.

func (*Provider) GetID

func (tr *Provider) GetID() string

GetID returns ID of underlying Terraform resource of this Provider

func (*Provider) GetInitParameters added in v0.35.0

func (tr *Provider) GetInitParameters() (map[string]any, error)

GetInitParameters of this Provider

func (*Provider) GetManagementPolicies added in v0.35.0

func (mg *Provider) GetManagementPolicies() xpv1.ManagementPolicies

GetManagementPolicies of this Provider.

func (*Provider) GetMergedParameters added in v0.40.0

func (tr *Provider) GetMergedParameters(shouldMergeInitProvider bool) (map[string]any, error)

GetInitParameters of this Provider

func (*Provider) GetObservation

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

GetObservation of this Provider

func (*Provider) GetParameters

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

GetParameters of this Provider

func (*Provider) GetProviderConfigReference

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

GetProviderConfigReference of this Provider.

func (*Provider) GetPublishConnectionDetailsTo

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

GetPublishConnectionDetailsTo of this Provider.

func (*Provider) GetTerraformResourceType

func (mg *Provider) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this Provider

func (*Provider) GetTerraformSchemaVersion

func (tr *Provider) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*Provider) GetWriteConnectionSecretToReference

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

GetWriteConnectionSecretToReference of this Provider.

func (*Provider) Hub added in v0.42.1

func (tr *Provider) Hub()

Hub marks this type as a conversion hub.

func (*Provider) LateInitialize

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

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

func (*Provider) ResolveReferences

func (mg *Provider) ResolveReferences(ctx context.Context, c client.Reader) error

func (*Provider) SetConditions

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

SetConditions of this Provider.

func (*Provider) SetDeletionPolicy

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

SetDeletionPolicy of this Provider.

func (*Provider) SetManagementPolicies added in v0.35.0

func (mg *Provider) SetManagementPolicies(r xpv1.ManagementPolicies)

SetManagementPolicies of this Provider.

func (*Provider) SetObservation

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

SetObservation for this Provider

func (*Provider) SetParameters

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

SetParameters for this Provider

func (*Provider) SetProviderConfigReference

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

SetProviderConfigReference of this Provider.

func (*Provider) SetPublishConnectionDetailsTo

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

SetPublishConnectionDetailsTo of this Provider.

func (*Provider) SetWriteConnectionSecretToReference

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

SetWriteConnectionSecretToReference of this Provider.

type ProviderInitParameters added in v0.35.0

type ProviderInitParameters struct {

	// The Azure Region where the Attestation Provider should exist. Changing this forces a new resource to be created.
	Location *string `json:"location,omitempty" tf:"location,omitempty"`

	// Specifies the base64 URI Encoded RFC 7519 JWT that should be used for the Attestation Policy.
	OpenEnclavePolicyBase64 *string `json:"openEnclavePolicyBase64,omitempty" tf:"open_enclave_policy_base64,omitempty"`

	Policy []PolicyInitParameters `json:"policy,omitempty" tf:"policy,omitempty"`

	// A valid X.509 certificate (Section 4 of RFC4648). Changing this forces a new resource to be created.
	PolicySigningCertificateData *string `json:"policySigningCertificateData,omitempty" tf:"policy_signing_certificate_data,omitempty"`

	// Specifies the base64 URI Encoded RFC 7519 JWT that should be used for the Attestation Policy.
	SevSnpPolicyBase64 *string `json:"sevSnpPolicyBase64,omitempty" tf:"sev_snp_policy_base64,omitempty"`

	// Specifies the base64 URI Encoded RFC 7519 JWT that should be used for the Attestation Policy.
	SgxEnclavePolicyBase64 *string `json:"sgxEnclavePolicyBase64,omitempty" tf:"sgx_enclave_policy_base64,omitempty"`

	// A mapping of tags which should be assigned to the Attestation Provider.
	// +mapType=granular
	Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"`

	// Specifies the base64 URI Encoded RFC 7519 JWT that should be used for the Attestation Policy.
	TpmPolicyBase64 *string `json:"tpmPolicyBase64,omitempty" tf:"tpm_policy_base64,omitempty"`
}

func (*ProviderInitParameters) DeepCopy added in v0.35.0

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

func (*ProviderInitParameters) DeepCopyInto added in v0.35.0

func (in *ProviderInitParameters) DeepCopyInto(out *ProviderInitParameters)

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

type ProviderList

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

ProviderList contains a list of Providers

func (*ProviderList) DeepCopy

func (in *ProviderList) DeepCopy() *ProviderList

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

func (*ProviderList) DeepCopyInto

func (in *ProviderList) DeepCopyInto(out *ProviderList)

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

func (*ProviderList) DeepCopyObject

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

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

func (*ProviderList) GetItems

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

GetItems of this ProviderList.

type ProviderObservation

type ProviderObservation struct {

	// The URI of the Attestation Service.
	AttestationURI *string `json:"attestationUri,omitempty" tf:"attestation_uri,omitempty"`

	// The ID of the Attestation Provider.
	ID *string `json:"id,omitempty" tf:"id,omitempty"`

	// The Azure Region where the Attestation Provider should exist. Changing this forces a new resource to be created.
	Location *string `json:"location,omitempty" tf:"location,omitempty"`

	// Specifies the base64 URI Encoded RFC 7519 JWT that should be used for the Attestation Policy.
	OpenEnclavePolicyBase64 *string `json:"openEnclavePolicyBase64,omitempty" tf:"open_enclave_policy_base64,omitempty"`

	Policy []PolicyObservation `json:"policy,omitempty" tf:"policy,omitempty"`

	// A valid X.509 certificate (Section 4 of RFC4648). Changing this forces a new resource to be created.
	PolicySigningCertificateData *string `json:"policySigningCertificateData,omitempty" tf:"policy_signing_certificate_data,omitempty"`

	// The name of the Resource Group where the attestation provider should exist. Changing this forces a new resource to be created.
	ResourceGroupName *string `json:"resourceGroupName,omitempty" tf:"resource_group_name,omitempty"`

	// Specifies the base64 URI Encoded RFC 7519 JWT that should be used for the Attestation Policy.
	SevSnpPolicyBase64 *string `json:"sevSnpPolicyBase64,omitempty" tf:"sev_snp_policy_base64,omitempty"`

	// Specifies the base64 URI Encoded RFC 7519 JWT that should be used for the Attestation Policy.
	SgxEnclavePolicyBase64 *string `json:"sgxEnclavePolicyBase64,omitempty" tf:"sgx_enclave_policy_base64,omitempty"`

	// A mapping of tags which should be assigned to the Attestation Provider.
	// +mapType=granular
	Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"`

	// Specifies the base64 URI Encoded RFC 7519 JWT that should be used for the Attestation Policy.
	TpmPolicyBase64 *string `json:"tpmPolicyBase64,omitempty" tf:"tpm_policy_base64,omitempty"`

	// Trust model used for the Attestation Service.
	TrustModel *string `json:"trustModel,omitempty" tf:"trust_model,omitempty"`
}

func (*ProviderObservation) DeepCopy

func (in *ProviderObservation) DeepCopy() *ProviderObservation

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

func (*ProviderObservation) DeepCopyInto

func (in *ProviderObservation) DeepCopyInto(out *ProviderObservation)

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

type ProviderParameters

type ProviderParameters struct {

	// The Azure Region where the Attestation Provider should exist. Changing this forces a new resource to be created.
	// +kubebuilder:validation:Optional
	Location *string `json:"location,omitempty" tf:"location,omitempty"`

	// Specifies the base64 URI Encoded RFC 7519 JWT that should be used for the Attestation Policy.
	// +kubebuilder:validation:Optional
	OpenEnclavePolicyBase64 *string `json:"openEnclavePolicyBase64,omitempty" tf:"open_enclave_policy_base64,omitempty"`

	// +kubebuilder:validation:Optional
	Policy []PolicyParameters `json:"policy,omitempty" tf:"policy,omitempty"`

	// A valid X.509 certificate (Section 4 of RFC4648). Changing this forces a new resource to be created.
	// +kubebuilder:validation:Optional
	PolicySigningCertificateData *string `json:"policySigningCertificateData,omitempty" tf:"policy_signing_certificate_data,omitempty"`

	// The name of the Resource Group where the attestation provider should exist. Changing this forces a new resource to be created.
	// +crossplane:generate:reference:type=github.com/upbound/provider-azure/apis/azure/v1beta1.ResourceGroup
	// +kubebuilder:validation:Optional
	ResourceGroupName *string `json:"resourceGroupName,omitempty" tf:"resource_group_name,omitempty"`

	// Reference to a ResourceGroup in azure to populate resourceGroupName.
	// +kubebuilder:validation:Optional
	ResourceGroupNameRef *v1.Reference `json:"resourceGroupNameRef,omitempty" tf:"-"`

	// Selector for a ResourceGroup in azure to populate resourceGroupName.
	// +kubebuilder:validation:Optional
	ResourceGroupNameSelector *v1.Selector `json:"resourceGroupNameSelector,omitempty" tf:"-"`

	// Specifies the base64 URI Encoded RFC 7519 JWT that should be used for the Attestation Policy.
	// +kubebuilder:validation:Optional
	SevSnpPolicyBase64 *string `json:"sevSnpPolicyBase64,omitempty" tf:"sev_snp_policy_base64,omitempty"`

	// Specifies the base64 URI Encoded RFC 7519 JWT that should be used for the Attestation Policy.
	// +kubebuilder:validation:Optional
	SgxEnclavePolicyBase64 *string `json:"sgxEnclavePolicyBase64,omitempty" tf:"sgx_enclave_policy_base64,omitempty"`

	// A mapping of tags which should be assigned to the Attestation Provider.
	// +kubebuilder:validation:Optional
	// +mapType=granular
	Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"`

	// Specifies the base64 URI Encoded RFC 7519 JWT that should be used for the Attestation Policy.
	// +kubebuilder:validation:Optional
	TpmPolicyBase64 *string `json:"tpmPolicyBase64,omitempty" tf:"tpm_policy_base64,omitempty"`
}

func (*ProviderParameters) DeepCopy

func (in *ProviderParameters) DeepCopy() *ProviderParameters

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

func (*ProviderParameters) DeepCopyInto

func (in *ProviderParameters) DeepCopyInto(out *ProviderParameters)

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

type ProviderSpec

type ProviderSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     ProviderParameters `json:"forProvider"`
	// THIS IS A BETA FIELD. It will be honored
	// unless the Management Policies feature flag is disabled.
	// InitProvider holds the same fields as ForProvider, with the exception
	// of Identifier and other resource reference fields. The fields that are
	// in InitProvider are merged into ForProvider when the resource is created.
	// The same fields are also added to the terraform ignore_changes hook, to
	// avoid updating them after creation. This is useful for fields that are
	// required on creation, but we do not desire to update them after creation,
	// for example because of an external controller is managing them, like an
	// autoscaler.
	InitProvider ProviderInitParameters `json:"initProvider,omitempty"`
}

ProviderSpec defines the desired state of Provider

func (*ProviderSpec) DeepCopy

func (in *ProviderSpec) DeepCopy() *ProviderSpec

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

func (*ProviderSpec) DeepCopyInto

func (in *ProviderSpec) DeepCopyInto(out *ProviderSpec)

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

type ProviderStatus

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

ProviderStatus defines the observed state of Provider.

func (*ProviderStatus) DeepCopy

func (in *ProviderStatus) DeepCopy() *ProviderStatus

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

func (*ProviderStatus) DeepCopyInto

func (in *ProviderStatus) DeepCopyInto(out *ProviderStatus)

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