diff --git a/apis/containerapp/v1beta1/zz_customdomain_terraformed.go b/apis/containerapp/v1beta1/zz_customdomain_terraformed.go new file mode 100755 index 000000000..ef3c8a69e --- /dev/null +++ b/apis/containerapp/v1beta1/zz_customdomain_terraformed.go @@ -0,0 +1,129 @@ +// SPDX-FileCopyrightText: 2024 The Crossplane Authors +// +// SPDX-License-Identifier: Apache-2.0 + +// Code generated by upjet. DO NOT EDIT. + +package v1beta1 + +import ( + "dario.cat/mergo" + "github.com/pkg/errors" + + "github.com/crossplane/upjet/pkg/resource" + "github.com/crossplane/upjet/pkg/resource/json" +) + +// GetTerraformResourceType returns Terraform resource type for this CustomDomain +func (mg *CustomDomain) GetTerraformResourceType() string { + return "azurerm_container_app_custom_domain" +} + +// GetConnectionDetailsMapping for this CustomDomain +func (tr *CustomDomain) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// GetObservation of this CustomDomain +func (tr *CustomDomain) GetObservation() (map[string]any, error) { + o, err := json.TFParser.Marshal(tr.Status.AtProvider) + if err != nil { + return nil, err + } + base := map[string]any{} + return base, json.TFParser.Unmarshal(o, &base) +} + +// SetObservation for this CustomDomain +func (tr *CustomDomain) SetObservation(obs map[string]any) error { + p, err := json.TFParser.Marshal(obs) + if err != nil { + return err + } + return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) +} + +// GetID returns ID of underlying Terraform resource of this CustomDomain +func (tr *CustomDomain) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + +// GetParameters of this CustomDomain +func (tr *CustomDomain) GetParameters() (map[string]any, error) { + p, err := json.TFParser.Marshal(tr.Spec.ForProvider) + if err != nil { + return nil, err + } + base := map[string]any{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this CustomDomain +func (tr *CustomDomain) SetParameters(params map[string]any) error { + p, err := json.TFParser.Marshal(params) + if err != nil { + return err + } + return json.TFParser.Unmarshal(p, &tr.Spec.ForProvider) +} + +// GetInitParameters of this CustomDomain +func (tr *CustomDomain) GetInitParameters() (map[string]any, error) { + p, err := json.TFParser.Marshal(tr.Spec.InitProvider) + if err != nil { + return nil, err + } + base := map[string]any{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// GetInitParameters of this CustomDomain +func (tr *CustomDomain) GetMergedParameters(shouldMergeInitProvider bool) (map[string]any, error) { + params, err := tr.GetParameters() + if err != nil { + return nil, errors.Wrapf(err, "cannot get parameters for resource '%q'", tr.GetName()) + } + if !shouldMergeInitProvider { + return params, nil + } + + initParams, err := tr.GetInitParameters() + if err != nil { + return nil, errors.Wrapf(err, "cannot get init parameters for resource '%q'", tr.GetName()) + } + + // Note(lsviben): mergo.WithSliceDeepCopy is needed to merge the + // slices from the initProvider to forProvider. As it also sets + // overwrite to true, we need to set it back to false, we don't + // want to overwrite the forProvider fields with the initProvider + // fields. + err = mergo.Merge(¶ms, initParams, mergo.WithSliceDeepCopy, func(c *mergo.Config) { + c.Overwrite = false + }) + if err != nil { + return nil, errors.Wrapf(err, "cannot merge spec.initProvider and spec.forProvider parameters for resource '%q'", tr.GetName()) + } + + return params, nil +} + +// LateInitialize this CustomDomain using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *CustomDomain) LateInitialize(attrs []byte) (bool, error) { + params := &CustomDomainParameters_2{} + if err := json.TFParser.Unmarshal(attrs, params); err != nil { + return false, errors.Wrap(err, "failed to unmarshal Terraform state parameters for late-initialization") + } + opts := []resource.GenericLateInitializerOption{resource.WithZeroValueJSONOmitEmptyFilter(resource.CNameWildcard)} + + li := resource.NewGenericLateInitializer(opts...) + return li.LateInitialize(&tr.Spec.ForProvider, params) +} + +// GetTerraformSchemaVersion returns the associated Terraform schema version +func (tr *CustomDomain) GetTerraformSchemaVersion() int { + return 0 +} diff --git a/apis/containerapp/v1beta1/zz_customdomain_types.go b/apis/containerapp/v1beta1/zz_customdomain_types.go new file mode 100755 index 000000000..b4c399d2b --- /dev/null +++ b/apis/containerapp/v1beta1/zz_customdomain_types.go @@ -0,0 +1,146 @@ +// SPDX-FileCopyrightText: 2024 The Crossplane Authors +// +// SPDX-License-Identifier: Apache-2.0 + +// Code generated by upjet. DO NOT EDIT. + +package v1beta1 + +import ( + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + "k8s.io/apimachinery/pkg/runtime/schema" + + v1 "github.com/crossplane/crossplane-runtime/apis/common/v1" +) + +type CustomDomainInitParameters_2 struct { + + // The Certificate Binding type. Possible values include Disabled and SniEnabled. Required with container_app_environment_certificate_id. Changing this forces a new resource to be created. + // The Binding type. Possible values include `Disabled` and `SniEnabled`. + CertificateBindingType *string `json:"certificateBindingType,omitempty" tf:"certificate_binding_type,omitempty"` + + // The ID of the Container App Environment Certificate to use. Changing this forces a new resource to be created. + // +crossplane:generate:reference:type=github.com/upbound/provider-azure/apis/containerapp/v1beta1.EnvironmentCertificate + // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() + ContainerAppEnvironmentCertificateID *string `json:"containerAppEnvironmentCertificateId,omitempty" tf:"container_app_environment_certificate_id,omitempty"` + + // Reference to a EnvironmentCertificate in containerapp to populate containerAppEnvironmentCertificateId. + // +kubebuilder:validation:Optional + ContainerAppEnvironmentCertificateIDRef *v1.Reference `json:"containerAppEnvironmentCertificateIdRef,omitempty" tf:"-"` + + // Selector for a EnvironmentCertificate in containerapp to populate containerAppEnvironmentCertificateId. + // +kubebuilder:validation:Optional + ContainerAppEnvironmentCertificateIDSelector *v1.Selector `json:"containerAppEnvironmentCertificateIdSelector,omitempty" tf:"-"` +} + +type CustomDomainObservation_2 struct { + + // The Certificate Binding type. Possible values include Disabled and SniEnabled. Required with container_app_environment_certificate_id. Changing this forces a new resource to be created. + // The Binding type. Possible values include `Disabled` and `SniEnabled`. + CertificateBindingType *string `json:"certificateBindingType,omitempty" tf:"certificate_binding_type,omitempty"` + + // The ID of the Container App Environment Certificate to use. Changing this forces a new resource to be created. + ContainerAppEnvironmentCertificateID *string `json:"containerAppEnvironmentCertificateId,omitempty" tf:"container_app_environment_certificate_id,omitempty"` + + // The ID of the Container App to which this Custom Domain should be bound. Changing this forces a new resource to be created. + ContainerAppID *string `json:"containerAppId,omitempty" tf:"container_app_id,omitempty"` + + ID *string `json:"id,omitempty" tf:"id,omitempty"` +} + +type CustomDomainParameters_2 struct { + + // The Certificate Binding type. Possible values include Disabled and SniEnabled. Required with container_app_environment_certificate_id. Changing this forces a new resource to be created. + // The Binding type. Possible values include `Disabled` and `SniEnabled`. + // +kubebuilder:validation:Optional + CertificateBindingType *string `json:"certificateBindingType,omitempty" tf:"certificate_binding_type,omitempty"` + + // The ID of the Container App Environment Certificate to use. Changing this forces a new resource to be created. + // +crossplane:generate:reference:type=github.com/upbound/provider-azure/apis/containerapp/v1beta1.EnvironmentCertificate + // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() + // +kubebuilder:validation:Optional + ContainerAppEnvironmentCertificateID *string `json:"containerAppEnvironmentCertificateId,omitempty" tf:"container_app_environment_certificate_id,omitempty"` + + // Reference to a EnvironmentCertificate in containerapp to populate containerAppEnvironmentCertificateId. + // +kubebuilder:validation:Optional + ContainerAppEnvironmentCertificateIDRef *v1.Reference `json:"containerAppEnvironmentCertificateIdRef,omitempty" tf:"-"` + + // Selector for a EnvironmentCertificate in containerapp to populate containerAppEnvironmentCertificateId. + // +kubebuilder:validation:Optional + ContainerAppEnvironmentCertificateIDSelector *v1.Selector `json:"containerAppEnvironmentCertificateIdSelector,omitempty" tf:"-"` + + // The ID of the Container App to which this Custom Domain should be bound. Changing this forces a new resource to be created. + // +crossplane:generate:reference:type=github.com/upbound/provider-azure/apis/containerapp/v1beta2.ContainerApp + // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() + // +kubebuilder:validation:Optional + ContainerAppID *string `json:"containerAppId,omitempty" tf:"container_app_id,omitempty"` + + // Reference to a ContainerApp in containerapp to populate containerAppId. + // +kubebuilder:validation:Optional + ContainerAppIDRef *v1.Reference `json:"containerAppIdRef,omitempty" tf:"-"` + + // Selector for a ContainerApp in containerapp to populate containerAppId. + // +kubebuilder:validation:Optional + ContainerAppIDSelector *v1.Selector `json:"containerAppIdSelector,omitempty" tf:"-"` +} + +// CustomDomainSpec defines the desired state of CustomDomain +type CustomDomainSpec struct { + v1.ResourceSpec `json:",inline"` + ForProvider CustomDomainParameters_2 `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 CustomDomainInitParameters_2 `json:"initProvider,omitempty"` +} + +// CustomDomainStatus defines the observed state of CustomDomain. +type CustomDomainStatus struct { + v1.ResourceStatus `json:",inline"` + AtProvider CustomDomainObservation_2 `json:"atProvider,omitempty"` +} + +// +kubebuilder:object:root=true +// +kubebuilder:subresource:status +// +kubebuilder:storageversion + +// CustomDomain is the Schema for the CustomDomains API. Manages a Container App Custom Domain. +// +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} +type CustomDomain struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + Spec CustomDomainSpec `json:"spec"` + Status CustomDomainStatus `json:"status,omitempty"` +} + +// +kubebuilder:object:root=true + +// CustomDomainList contains a list of CustomDomains +type CustomDomainList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []CustomDomain `json:"items"` +} + +// Repository type metadata. +var ( + CustomDomain_Kind = "CustomDomain" + CustomDomain_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: CustomDomain_Kind}.String() + CustomDomain_KindAPIVersion = CustomDomain_Kind + "." + CRDGroupVersion.String() + CustomDomain_GroupVersionKind = CRDGroupVersion.WithKind(CustomDomain_Kind) +) + +func init() { + SchemeBuilder.Register(&CustomDomain{}, &CustomDomainList{}) +} diff --git a/apis/containerapp/v1beta1/zz_environmentcertificate_terraformed.go b/apis/containerapp/v1beta1/zz_environmentcertificate_terraformed.go new file mode 100755 index 000000000..44798917c --- /dev/null +++ b/apis/containerapp/v1beta1/zz_environmentcertificate_terraformed.go @@ -0,0 +1,129 @@ +// SPDX-FileCopyrightText: 2024 The Crossplane Authors +// +// SPDX-License-Identifier: Apache-2.0 + +// Code generated by upjet. DO NOT EDIT. + +package v1beta1 + +import ( + "dario.cat/mergo" + "github.com/pkg/errors" + + "github.com/crossplane/upjet/pkg/resource" + "github.com/crossplane/upjet/pkg/resource/json" +) + +// GetTerraformResourceType returns Terraform resource type for this EnvironmentCertificate +func (mg *EnvironmentCertificate) GetTerraformResourceType() string { + return "azurerm_container_app_environment_certificate" +} + +// GetConnectionDetailsMapping for this EnvironmentCertificate +func (tr *EnvironmentCertificate) GetConnectionDetailsMapping() map[string]string { + return map[string]string{"certificate_password": "certificatePasswordSecretRef"} +} + +// GetObservation of this EnvironmentCertificate +func (tr *EnvironmentCertificate) GetObservation() (map[string]any, error) { + o, err := json.TFParser.Marshal(tr.Status.AtProvider) + if err != nil { + return nil, err + } + base := map[string]any{} + return base, json.TFParser.Unmarshal(o, &base) +} + +// SetObservation for this EnvironmentCertificate +func (tr *EnvironmentCertificate) SetObservation(obs map[string]any) error { + p, err := json.TFParser.Marshal(obs) + if err != nil { + return err + } + return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) +} + +// GetID returns ID of underlying Terraform resource of this EnvironmentCertificate +func (tr *EnvironmentCertificate) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + +// GetParameters of this EnvironmentCertificate +func (tr *EnvironmentCertificate) GetParameters() (map[string]any, error) { + p, err := json.TFParser.Marshal(tr.Spec.ForProvider) + if err != nil { + return nil, err + } + base := map[string]any{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this EnvironmentCertificate +func (tr *EnvironmentCertificate) SetParameters(params map[string]any) error { + p, err := json.TFParser.Marshal(params) + if err != nil { + return err + } + return json.TFParser.Unmarshal(p, &tr.Spec.ForProvider) +} + +// GetInitParameters of this EnvironmentCertificate +func (tr *EnvironmentCertificate) GetInitParameters() (map[string]any, error) { + p, err := json.TFParser.Marshal(tr.Spec.InitProvider) + if err != nil { + return nil, err + } + base := map[string]any{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// GetInitParameters of this EnvironmentCertificate +func (tr *EnvironmentCertificate) GetMergedParameters(shouldMergeInitProvider bool) (map[string]any, error) { + params, err := tr.GetParameters() + if err != nil { + return nil, errors.Wrapf(err, "cannot get parameters for resource '%q'", tr.GetName()) + } + if !shouldMergeInitProvider { + return params, nil + } + + initParams, err := tr.GetInitParameters() + if err != nil { + return nil, errors.Wrapf(err, "cannot get init parameters for resource '%q'", tr.GetName()) + } + + // Note(lsviben): mergo.WithSliceDeepCopy is needed to merge the + // slices from the initProvider to forProvider. As it also sets + // overwrite to true, we need to set it back to false, we don't + // want to overwrite the forProvider fields with the initProvider + // fields. + err = mergo.Merge(¶ms, initParams, mergo.WithSliceDeepCopy, func(c *mergo.Config) { + c.Overwrite = false + }) + if err != nil { + return nil, errors.Wrapf(err, "cannot merge spec.initProvider and spec.forProvider parameters for resource '%q'", tr.GetName()) + } + + return params, nil +} + +// LateInitialize this EnvironmentCertificate using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *EnvironmentCertificate) LateInitialize(attrs []byte) (bool, error) { + params := &EnvironmentCertificateParameters{} + if err := json.TFParser.Unmarshal(attrs, params); err != nil { + return false, errors.Wrap(err, "failed to unmarshal Terraform state parameters for late-initialization") + } + opts := []resource.GenericLateInitializerOption{resource.WithZeroValueJSONOmitEmptyFilter(resource.CNameWildcard)} + + li := resource.NewGenericLateInitializer(opts...) + return li.LateInitialize(&tr.Spec.ForProvider, params) +} + +// GetTerraformSchemaVersion returns the associated Terraform schema version +func (tr *EnvironmentCertificate) GetTerraformSchemaVersion() int { + return 0 +} diff --git a/apis/containerapp/v1beta1/zz_environmentcertificate_types.go b/apis/containerapp/v1beta1/zz_environmentcertificate_types.go new file mode 100755 index 000000000..e85614987 --- /dev/null +++ b/apis/containerapp/v1beta1/zz_environmentcertificate_types.go @@ -0,0 +1,163 @@ +// SPDX-FileCopyrightText: 2024 The Crossplane Authors +// +// SPDX-License-Identifier: Apache-2.0 + +// Code generated by upjet. DO NOT EDIT. + +package v1beta1 + +import ( + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + "k8s.io/apimachinery/pkg/runtime/schema" + + v1 "github.com/crossplane/crossplane-runtime/apis/common/v1" +) + +type EnvironmentCertificateInitParameters struct { + + // The Certificate Private Key as a base64 encoded PFX or PEM. Changing this forces a new resource to be created. + // The Certificate Private Key as a base64 encoded PFX or PEM. + CertificateBlobBase64 *string `json:"certificateBlobBase64,omitempty" tf:"certificate_blob_base64,omitempty"` + + // The password for the Certificate. Changing this forces a new resource to be created. + // The password for the Certificate. + CertificatePasswordSecretRef v1.SecretKeySelector `json:"certificatePasswordSecretRef" tf:"-"` + + // A mapping of tags to assign to the resource. + // +mapType=granular + Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"` +} + +type EnvironmentCertificateObservation struct { + + // The Certificate Private Key as a base64 encoded PFX or PEM. Changing this forces a new resource to be created. + // The Certificate Private Key as a base64 encoded PFX or PEM. + CertificateBlobBase64 *string `json:"certificateBlobBase64,omitempty" tf:"certificate_blob_base64,omitempty"` + + // The Container App Managed Environment ID to configure this Certificate on. Changing this forces a new resource to be created. + // The Container App Managed Environment ID to configure this Certificate on. + ContainerAppEnvironmentID *string `json:"containerAppEnvironmentId,omitempty" tf:"container_app_environment_id,omitempty"` + + // The expiration date for the Certificate. + // The expiration date for the Certificate. + ExpirationDate *string `json:"expirationDate,omitempty" tf:"expiration_date,omitempty"` + + // The ID of the Container App Environment Certificate + ID *string `json:"id,omitempty" tf:"id,omitempty"` + + // The date of issue for the Certificate. + // The date of issue for the Certificate. + IssueDate *string `json:"issueDate,omitempty" tf:"issue_date,omitempty"` + + // The Certificate Issuer. + // The Certificate Issuer. + Issuer *string `json:"issuer,omitempty" tf:"issuer,omitempty"` + + // The Subject Name for the Certificate. + // The Subject Name for the Certificate. + SubjectName *string `json:"subjectName,omitempty" tf:"subject_name,omitempty"` + + // A mapping of tags to assign to the resource. + // +mapType=granular + Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"` + + // The Thumbprint of the Certificate. + // The Thumbprint of the Certificate. + Thumbprint *string `json:"thumbprint,omitempty" tf:"thumbprint,omitempty"` +} + +type EnvironmentCertificateParameters struct { + + // The Certificate Private Key as a base64 encoded PFX or PEM. Changing this forces a new resource to be created. + // The Certificate Private Key as a base64 encoded PFX or PEM. + // +kubebuilder:validation:Optional + CertificateBlobBase64 *string `json:"certificateBlobBase64,omitempty" tf:"certificate_blob_base64,omitempty"` + + // The password for the Certificate. Changing this forces a new resource to be created. + // The password for the Certificate. + // +kubebuilder:validation:Optional + CertificatePasswordSecretRef v1.SecretKeySelector `json:"certificatePasswordSecretRef" tf:"-"` + + // The Container App Managed Environment ID to configure this Certificate on. Changing this forces a new resource to be created. + // The Container App Managed Environment ID to configure this Certificate on. + // +crossplane:generate:reference:type=github.com/upbound/provider-azure/apis/containerapp/v1beta1.Environment + // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() + // +kubebuilder:validation:Optional + ContainerAppEnvironmentID *string `json:"containerAppEnvironmentId,omitempty" tf:"container_app_environment_id,omitempty"` + + // Reference to a Environment in containerapp to populate containerAppEnvironmentId. + // +kubebuilder:validation:Optional + ContainerAppEnvironmentIDRef *v1.Reference `json:"containerAppEnvironmentIdRef,omitempty" tf:"-"` + + // Selector for a Environment in containerapp to populate containerAppEnvironmentId. + // +kubebuilder:validation:Optional + ContainerAppEnvironmentIDSelector *v1.Selector `json:"containerAppEnvironmentIdSelector,omitempty" tf:"-"` + + // A mapping of tags to assign to the resource. + // +kubebuilder:validation:Optional + // +mapType=granular + Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"` +} + +// EnvironmentCertificateSpec defines the desired state of EnvironmentCertificate +type EnvironmentCertificateSpec struct { + v1.ResourceSpec `json:",inline"` + ForProvider EnvironmentCertificateParameters `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 EnvironmentCertificateInitParameters `json:"initProvider,omitempty"` +} + +// EnvironmentCertificateStatus defines the observed state of EnvironmentCertificate. +type EnvironmentCertificateStatus struct { + v1.ResourceStatus `json:",inline"` + AtProvider EnvironmentCertificateObservation `json:"atProvider,omitempty"` +} + +// +kubebuilder:object:root=true +// +kubebuilder:subresource:status +// +kubebuilder:storageversion + +// EnvironmentCertificate is the Schema for the EnvironmentCertificates API. Manages a Container App Environment Certificate. +// +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} +type EnvironmentCertificate 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.certificateBlobBase64) || (has(self.initProvider) && has(self.initProvider.certificateBlobBase64))",message="spec.forProvider.certificateBlobBase64 is a required parameter" + // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.certificatePasswordSecretRef)",message="spec.forProvider.certificatePasswordSecretRef is a required parameter" + Spec EnvironmentCertificateSpec `json:"spec"` + Status EnvironmentCertificateStatus `json:"status,omitempty"` +} + +// +kubebuilder:object:root=true + +// EnvironmentCertificateList contains a list of EnvironmentCertificates +type EnvironmentCertificateList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []EnvironmentCertificate `json:"items"` +} + +// Repository type metadata. +var ( + EnvironmentCertificate_Kind = "EnvironmentCertificate" + EnvironmentCertificate_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: EnvironmentCertificate_Kind}.String() + EnvironmentCertificate_KindAPIVersion = EnvironmentCertificate_Kind + "." + CRDGroupVersion.String() + EnvironmentCertificate_GroupVersionKind = CRDGroupVersion.WithKind(EnvironmentCertificate_Kind) +) + +func init() { + SchemeBuilder.Register(&EnvironmentCertificate{}, &EnvironmentCertificateList{}) +} diff --git a/apis/containerapp/v1beta1/zz_environmentcustomdomain_terraformed.go b/apis/containerapp/v1beta1/zz_environmentcustomdomain_terraformed.go new file mode 100755 index 000000000..3a45803a7 --- /dev/null +++ b/apis/containerapp/v1beta1/zz_environmentcustomdomain_terraformed.go @@ -0,0 +1,129 @@ +// SPDX-FileCopyrightText: 2024 The Crossplane Authors +// +// SPDX-License-Identifier: Apache-2.0 + +// Code generated by upjet. DO NOT EDIT. + +package v1beta1 + +import ( + "dario.cat/mergo" + "github.com/pkg/errors" + + "github.com/crossplane/upjet/pkg/resource" + "github.com/crossplane/upjet/pkg/resource/json" +) + +// GetTerraformResourceType returns Terraform resource type for this EnvironmentCustomDomain +func (mg *EnvironmentCustomDomain) GetTerraformResourceType() string { + return "azurerm_container_app_environment_custom_domain" +} + +// GetConnectionDetailsMapping for this EnvironmentCustomDomain +func (tr *EnvironmentCustomDomain) GetConnectionDetailsMapping() map[string]string { + return map[string]string{"certificate_password": "certificatePasswordSecretRef"} +} + +// GetObservation of this EnvironmentCustomDomain +func (tr *EnvironmentCustomDomain) GetObservation() (map[string]any, error) { + o, err := json.TFParser.Marshal(tr.Status.AtProvider) + if err != nil { + return nil, err + } + base := map[string]any{} + return base, json.TFParser.Unmarshal(o, &base) +} + +// SetObservation for this EnvironmentCustomDomain +func (tr *EnvironmentCustomDomain) SetObservation(obs map[string]any) error { + p, err := json.TFParser.Marshal(obs) + if err != nil { + return err + } + return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) +} + +// GetID returns ID of underlying Terraform resource of this EnvironmentCustomDomain +func (tr *EnvironmentCustomDomain) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + +// GetParameters of this EnvironmentCustomDomain +func (tr *EnvironmentCustomDomain) GetParameters() (map[string]any, error) { + p, err := json.TFParser.Marshal(tr.Spec.ForProvider) + if err != nil { + return nil, err + } + base := map[string]any{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this EnvironmentCustomDomain +func (tr *EnvironmentCustomDomain) SetParameters(params map[string]any) error { + p, err := json.TFParser.Marshal(params) + if err != nil { + return err + } + return json.TFParser.Unmarshal(p, &tr.Spec.ForProvider) +} + +// GetInitParameters of this EnvironmentCustomDomain +func (tr *EnvironmentCustomDomain) GetInitParameters() (map[string]any, error) { + p, err := json.TFParser.Marshal(tr.Spec.InitProvider) + if err != nil { + return nil, err + } + base := map[string]any{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// GetInitParameters of this EnvironmentCustomDomain +func (tr *EnvironmentCustomDomain) GetMergedParameters(shouldMergeInitProvider bool) (map[string]any, error) { + params, err := tr.GetParameters() + if err != nil { + return nil, errors.Wrapf(err, "cannot get parameters for resource '%q'", tr.GetName()) + } + if !shouldMergeInitProvider { + return params, nil + } + + initParams, err := tr.GetInitParameters() + if err != nil { + return nil, errors.Wrapf(err, "cannot get init parameters for resource '%q'", tr.GetName()) + } + + // Note(lsviben): mergo.WithSliceDeepCopy is needed to merge the + // slices from the initProvider to forProvider. As it also sets + // overwrite to true, we need to set it back to false, we don't + // want to overwrite the forProvider fields with the initProvider + // fields. + err = mergo.Merge(¶ms, initParams, mergo.WithSliceDeepCopy, func(c *mergo.Config) { + c.Overwrite = false + }) + if err != nil { + return nil, errors.Wrapf(err, "cannot merge spec.initProvider and spec.forProvider parameters for resource '%q'", tr.GetName()) + } + + return params, nil +} + +// LateInitialize this EnvironmentCustomDomain using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *EnvironmentCustomDomain) LateInitialize(attrs []byte) (bool, error) { + params := &EnvironmentCustomDomainParameters{} + if err := json.TFParser.Unmarshal(attrs, params); err != nil { + return false, errors.Wrap(err, "failed to unmarshal Terraform state parameters for late-initialization") + } + opts := []resource.GenericLateInitializerOption{resource.WithZeroValueJSONOmitEmptyFilter(resource.CNameWildcard)} + + li := resource.NewGenericLateInitializer(opts...) + return li.LateInitialize(&tr.Spec.ForProvider, params) +} + +// GetTerraformSchemaVersion returns the associated Terraform schema version +func (tr *EnvironmentCustomDomain) GetTerraformSchemaVersion() int { + return 0 +} diff --git a/apis/containerapp/v1beta1/zz_environmentcustomdomain_types.go b/apis/containerapp/v1beta1/zz_environmentcustomdomain_types.go new file mode 100755 index 000000000..e26bebfdf --- /dev/null +++ b/apis/containerapp/v1beta1/zz_environmentcustomdomain_types.go @@ -0,0 +1,157 @@ +// SPDX-FileCopyrightText: 2024 The Crossplane Authors +// +// SPDX-License-Identifier: Apache-2.0 + +// Code generated by upjet. DO NOT EDIT. + +package v1beta1 + +import ( + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + "k8s.io/apimachinery/pkg/runtime/schema" + + v1 "github.com/crossplane/crossplane-runtime/apis/common/v1" +) + +type EnvironmentCustomDomainInitParameters struct { + + // The bundle of Private Key and Certificate for the Custom DNS Suffix as a base64 encoded PFX or PEM. + // The Custom Domain Certificate Private Key as a base64 encoded PFX or PEM. + CertificateBlobBase64 *string `json:"certificateBlobBase64,omitempty" tf:"certificate_blob_base64,omitempty"` + + // The password for the Certificate bundle. + // The Custom Domain Certificate password. + CertificatePasswordSecretRef v1.SecretKeySelector `json:"certificatePasswordSecretRef" tf:"-"` + + // The ID of the Container Apps Managed Environment. Changing this forces a new resource to be created. + // The Container App Managed Environment ID to configure this Custom Domain on. + // +crossplane:generate:reference:type=github.com/upbound/provider-azure/apis/containerapp/v1beta1.Environment + // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() + ContainerAppEnvironmentID *string `json:"containerAppEnvironmentId,omitempty" tf:"container_app_environment_id,omitempty"` + + // Reference to a Environment in containerapp to populate containerAppEnvironmentId. + // +kubebuilder:validation:Optional + ContainerAppEnvironmentIDRef *v1.Reference `json:"containerAppEnvironmentIdRef,omitempty" tf:"-"` + + // Selector for a Environment in containerapp to populate containerAppEnvironmentId. + // +kubebuilder:validation:Optional + ContainerAppEnvironmentIDSelector *v1.Selector `json:"containerAppEnvironmentIdSelector,omitempty" tf:"-"` + + // Custom DNS Suffix for the Container App Environment. + // The Custom Domain DNS suffix for this Container App Environment. + DNSSuffix *string `json:"dnsSuffix,omitempty" tf:"dns_suffix,omitempty"` +} + +type EnvironmentCustomDomainObservation struct { + + // The bundle of Private Key and Certificate for the Custom DNS Suffix as a base64 encoded PFX or PEM. + // The Custom Domain Certificate Private Key as a base64 encoded PFX or PEM. + CertificateBlobBase64 *string `json:"certificateBlobBase64,omitempty" tf:"certificate_blob_base64,omitempty"` + + // The ID of the Container Apps Managed Environment. Changing this forces a new resource to be created. + // The Container App Managed Environment ID to configure this Custom Domain on. + ContainerAppEnvironmentID *string `json:"containerAppEnvironmentId,omitempty" tf:"container_app_environment_id,omitempty"` + + // Custom DNS Suffix for the Container App Environment. + // The Custom Domain DNS suffix for this Container App Environment. + DNSSuffix *string `json:"dnsSuffix,omitempty" tf:"dns_suffix,omitempty"` + + ID *string `json:"id,omitempty" tf:"id,omitempty"` +} + +type EnvironmentCustomDomainParameters struct { + + // The bundle of Private Key and Certificate for the Custom DNS Suffix as a base64 encoded PFX or PEM. + // The Custom Domain Certificate Private Key as a base64 encoded PFX or PEM. + // +kubebuilder:validation:Optional + CertificateBlobBase64 *string `json:"certificateBlobBase64,omitempty" tf:"certificate_blob_base64,omitempty"` + + // The password for the Certificate bundle. + // The Custom Domain Certificate password. + // +kubebuilder:validation:Optional + CertificatePasswordSecretRef v1.SecretKeySelector `json:"certificatePasswordSecretRef" tf:"-"` + + // The ID of the Container Apps Managed Environment. Changing this forces a new resource to be created. + // The Container App Managed Environment ID to configure this Custom Domain on. + // +crossplane:generate:reference:type=github.com/upbound/provider-azure/apis/containerapp/v1beta1.Environment + // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() + // +kubebuilder:validation:Optional + ContainerAppEnvironmentID *string `json:"containerAppEnvironmentId,omitempty" tf:"container_app_environment_id,omitempty"` + + // Reference to a Environment in containerapp to populate containerAppEnvironmentId. + // +kubebuilder:validation:Optional + ContainerAppEnvironmentIDRef *v1.Reference `json:"containerAppEnvironmentIdRef,omitempty" tf:"-"` + + // Selector for a Environment in containerapp to populate containerAppEnvironmentId. + // +kubebuilder:validation:Optional + ContainerAppEnvironmentIDSelector *v1.Selector `json:"containerAppEnvironmentIdSelector,omitempty" tf:"-"` + + // Custom DNS Suffix for the Container App Environment. + // The Custom Domain DNS suffix for this Container App Environment. + // +kubebuilder:validation:Optional + DNSSuffix *string `json:"dnsSuffix,omitempty" tf:"dns_suffix,omitempty"` +} + +// EnvironmentCustomDomainSpec defines the desired state of EnvironmentCustomDomain +type EnvironmentCustomDomainSpec struct { + v1.ResourceSpec `json:",inline"` + ForProvider EnvironmentCustomDomainParameters `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 EnvironmentCustomDomainInitParameters `json:"initProvider,omitempty"` +} + +// EnvironmentCustomDomainStatus defines the observed state of EnvironmentCustomDomain. +type EnvironmentCustomDomainStatus struct { + v1.ResourceStatus `json:",inline"` + AtProvider EnvironmentCustomDomainObservation `json:"atProvider,omitempty"` +} + +// +kubebuilder:object:root=true +// +kubebuilder:subresource:status +// +kubebuilder:storageversion + +// EnvironmentCustomDomain is the Schema for the EnvironmentCustomDomains API. Manages a Container App Environment Custom Domain. +// +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} +type EnvironmentCustomDomain 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.certificateBlobBase64) || (has(self.initProvider) && has(self.initProvider.certificateBlobBase64))",message="spec.forProvider.certificateBlobBase64 is a required parameter" + // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.certificatePasswordSecretRef)",message="spec.forProvider.certificatePasswordSecretRef is a required parameter" + // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.dnsSuffix) || (has(self.initProvider) && has(self.initProvider.dnsSuffix))",message="spec.forProvider.dnsSuffix is a required parameter" + Spec EnvironmentCustomDomainSpec `json:"spec"` + Status EnvironmentCustomDomainStatus `json:"status,omitempty"` +} + +// +kubebuilder:object:root=true + +// EnvironmentCustomDomainList contains a list of EnvironmentCustomDomains +type EnvironmentCustomDomainList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []EnvironmentCustomDomain `json:"items"` +} + +// Repository type metadata. +var ( + EnvironmentCustomDomain_Kind = "EnvironmentCustomDomain" + EnvironmentCustomDomain_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: EnvironmentCustomDomain_Kind}.String() + EnvironmentCustomDomain_KindAPIVersion = EnvironmentCustomDomain_Kind + "." + CRDGroupVersion.String() + EnvironmentCustomDomain_GroupVersionKind = CRDGroupVersion.WithKind(EnvironmentCustomDomain_Kind) +) + +func init() { + SchemeBuilder.Register(&EnvironmentCustomDomain{}, &EnvironmentCustomDomainList{}) +} diff --git a/apis/containerapp/v1beta1/zz_environmentdaprcomponent_terraformed.go b/apis/containerapp/v1beta1/zz_environmentdaprcomponent_terraformed.go new file mode 100755 index 000000000..8ffa30fbe --- /dev/null +++ b/apis/containerapp/v1beta1/zz_environmentdaprcomponent_terraformed.go @@ -0,0 +1,129 @@ +// SPDX-FileCopyrightText: 2024 The Crossplane Authors +// +// SPDX-License-Identifier: Apache-2.0 + +// Code generated by upjet. DO NOT EDIT. + +package v1beta1 + +import ( + "dario.cat/mergo" + "github.com/pkg/errors" + + "github.com/crossplane/upjet/pkg/resource" + "github.com/crossplane/upjet/pkg/resource/json" +) + +// GetTerraformResourceType returns Terraform resource type for this EnvironmentDaprComponent +func (mg *EnvironmentDaprComponent) GetTerraformResourceType() string { + return "azurerm_container_app_environment_dapr_component" +} + +// GetConnectionDetailsMapping for this EnvironmentDaprComponent +func (tr *EnvironmentDaprComponent) GetConnectionDetailsMapping() map[string]string { + return map[string]string{"secret[*].value": "secret[*].valueSecretRef"} +} + +// GetObservation of this EnvironmentDaprComponent +func (tr *EnvironmentDaprComponent) GetObservation() (map[string]any, error) { + o, err := json.TFParser.Marshal(tr.Status.AtProvider) + if err != nil { + return nil, err + } + base := map[string]any{} + return base, json.TFParser.Unmarshal(o, &base) +} + +// SetObservation for this EnvironmentDaprComponent +func (tr *EnvironmentDaprComponent) SetObservation(obs map[string]any) error { + p, err := json.TFParser.Marshal(obs) + if err != nil { + return err + } + return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) +} + +// GetID returns ID of underlying Terraform resource of this EnvironmentDaprComponent +func (tr *EnvironmentDaprComponent) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + +// GetParameters of this EnvironmentDaprComponent +func (tr *EnvironmentDaprComponent) GetParameters() (map[string]any, error) { + p, err := json.TFParser.Marshal(tr.Spec.ForProvider) + if err != nil { + return nil, err + } + base := map[string]any{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this EnvironmentDaprComponent +func (tr *EnvironmentDaprComponent) SetParameters(params map[string]any) error { + p, err := json.TFParser.Marshal(params) + if err != nil { + return err + } + return json.TFParser.Unmarshal(p, &tr.Spec.ForProvider) +} + +// GetInitParameters of this EnvironmentDaprComponent +func (tr *EnvironmentDaprComponent) GetInitParameters() (map[string]any, error) { + p, err := json.TFParser.Marshal(tr.Spec.InitProvider) + if err != nil { + return nil, err + } + base := map[string]any{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// GetInitParameters of this EnvironmentDaprComponent +func (tr *EnvironmentDaprComponent) GetMergedParameters(shouldMergeInitProvider bool) (map[string]any, error) { + params, err := tr.GetParameters() + if err != nil { + return nil, errors.Wrapf(err, "cannot get parameters for resource '%q'", tr.GetName()) + } + if !shouldMergeInitProvider { + return params, nil + } + + initParams, err := tr.GetInitParameters() + if err != nil { + return nil, errors.Wrapf(err, "cannot get init parameters for resource '%q'", tr.GetName()) + } + + // Note(lsviben): mergo.WithSliceDeepCopy is needed to merge the + // slices from the initProvider to forProvider. As it also sets + // overwrite to true, we need to set it back to false, we don't + // want to overwrite the forProvider fields with the initProvider + // fields. + err = mergo.Merge(¶ms, initParams, mergo.WithSliceDeepCopy, func(c *mergo.Config) { + c.Overwrite = false + }) + if err != nil { + return nil, errors.Wrapf(err, "cannot merge spec.initProvider and spec.forProvider parameters for resource '%q'", tr.GetName()) + } + + return params, nil +} + +// LateInitialize this EnvironmentDaprComponent using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *EnvironmentDaprComponent) LateInitialize(attrs []byte) (bool, error) { + params := &EnvironmentDaprComponentParameters{} + if err := json.TFParser.Unmarshal(attrs, params); err != nil { + return false, errors.Wrap(err, "failed to unmarshal Terraform state parameters for late-initialization") + } + opts := []resource.GenericLateInitializerOption{resource.WithZeroValueJSONOmitEmptyFilter(resource.CNameWildcard)} + + li := resource.NewGenericLateInitializer(opts...) + return li.LateInitialize(&tr.Spec.ForProvider, params) +} + +// GetTerraformSchemaVersion returns the associated Terraform schema version +func (tr *EnvironmentDaprComponent) GetTerraformSchemaVersion() int { + return 0 +} diff --git a/apis/containerapp/v1beta1/zz_environmentdaprcomponent_types.go b/apis/containerapp/v1beta1/zz_environmentdaprcomponent_types.go new file mode 100755 index 000000000..79783818e --- /dev/null +++ b/apis/containerapp/v1beta1/zz_environmentdaprcomponent_types.go @@ -0,0 +1,295 @@ +// SPDX-FileCopyrightText: 2024 The Crossplane Authors +// +// SPDX-License-Identifier: Apache-2.0 + +// Code generated by upjet. DO NOT EDIT. + +package v1beta1 + +import ( + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + "k8s.io/apimachinery/pkg/runtime/schema" + + v1 "github.com/crossplane/crossplane-runtime/apis/common/v1" +) + +type EnvironmentDaprComponentInitParameters struct { + + // The Dapr Component Type. For example state.azure.blobstorage. Changing this forces a new resource to be created. + // The Dapr Component Type. For example `state.azure.blobstorage`. + ComponentType *string `json:"componentType,omitempty" tf:"component_type,omitempty"` + + // Should the Dapr sidecar to continue initialisation if the component fails to load. Defaults to false + // Should the Dapr sidecar to continue initialisation if the component fails to load. Defaults to `false` + IgnoreErrors *bool `json:"ignoreErrors,omitempty" tf:"ignore_errors,omitempty"` + + // The timeout for component initialisation as a ISO8601 formatted string. e.g. 5s, 2h, 1m. Defaults to 5s. + // The component initialisation timeout in ISO8601 format. e.g. `5s`, `2h`, `1m`. Defaults to `5s`. + InitTimeout *string `json:"initTimeout,omitempty" tf:"init_timeout,omitempty"` + + // One or more metadata blocks as detailed below. + Metadata []MetadataInitParameters `json:"metadata,omitempty" tf:"metadata,omitempty"` + + // A list of scopes to which this component applies. + // A list of scopes to which this component applies. e.g. a Container App's `dapr.app_id` value. + Scopes []*string `json:"scopes,omitempty" tf:"scopes,omitempty"` + + // A secret block as detailed below. + Secret []EnvironmentDaprComponentSecretInitParameters `json:"secret,omitempty" tf:"secret,omitempty"` + + // The version of the component. + // The version of the component. + Version *string `json:"version,omitempty" tf:"version,omitempty"` +} + +type EnvironmentDaprComponentObservation struct { + + // The Dapr Component Type. For example state.azure.blobstorage. Changing this forces a new resource to be created. + // The Dapr Component Type. For example `state.azure.blobstorage`. + ComponentType *string `json:"componentType,omitempty" tf:"component_type,omitempty"` + + // The ID of the Container App Managed Environment for this Dapr Component. Changing this forces a new resource to be created. + // The Container App Managed Environment ID to configure this Dapr component on. + ContainerAppEnvironmentID *string `json:"containerAppEnvironmentId,omitempty" tf:"container_app_environment_id,omitempty"` + + // The ID of the Container App Environment Dapr Component + ID *string `json:"id,omitempty" tf:"id,omitempty"` + + // Should the Dapr sidecar to continue initialisation if the component fails to load. Defaults to false + // Should the Dapr sidecar to continue initialisation if the component fails to load. Defaults to `false` + IgnoreErrors *bool `json:"ignoreErrors,omitempty" tf:"ignore_errors,omitempty"` + + // The timeout for component initialisation as a ISO8601 formatted string. e.g. 5s, 2h, 1m. Defaults to 5s. + // The component initialisation timeout in ISO8601 format. e.g. `5s`, `2h`, `1m`. Defaults to `5s`. + InitTimeout *string `json:"initTimeout,omitempty" tf:"init_timeout,omitempty"` + + // One or more metadata blocks as detailed below. + Metadata []MetadataObservation `json:"metadata,omitempty" tf:"metadata,omitempty"` + + // A list of scopes to which this component applies. + // A list of scopes to which this component applies. e.g. a Container App's `dapr.app_id` value. + Scopes []*string `json:"scopes,omitempty" tf:"scopes,omitempty"` + + // A secret block as detailed below. + Secret []EnvironmentDaprComponentSecretObservation `json:"secret,omitempty" tf:"secret,omitempty"` + + // The version of the component. + // The version of the component. + Version *string `json:"version,omitempty" tf:"version,omitempty"` +} + +type EnvironmentDaprComponentParameters struct { + + // The Dapr Component Type. For example state.azure.blobstorage. Changing this forces a new resource to be created. + // The Dapr Component Type. For example `state.azure.blobstorage`. + // +kubebuilder:validation:Optional + ComponentType *string `json:"componentType,omitempty" tf:"component_type,omitempty"` + + // The ID of the Container App Managed Environment for this Dapr Component. Changing this forces a new resource to be created. + // The Container App Managed Environment ID to configure this Dapr component on. + // +crossplane:generate:reference:type=github.com/upbound/provider-azure/apis/containerapp/v1beta1.Environment + // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() + // +kubebuilder:validation:Optional + ContainerAppEnvironmentID *string `json:"containerAppEnvironmentId,omitempty" tf:"container_app_environment_id,omitempty"` + + // Reference to a Environment in containerapp to populate containerAppEnvironmentId. + // +kubebuilder:validation:Optional + ContainerAppEnvironmentIDRef *v1.Reference `json:"containerAppEnvironmentIdRef,omitempty" tf:"-"` + + // Selector for a Environment in containerapp to populate containerAppEnvironmentId. + // +kubebuilder:validation:Optional + ContainerAppEnvironmentIDSelector *v1.Selector `json:"containerAppEnvironmentIdSelector,omitempty" tf:"-"` + + // Should the Dapr sidecar to continue initialisation if the component fails to load. Defaults to false + // Should the Dapr sidecar to continue initialisation if the component fails to load. Defaults to `false` + // +kubebuilder:validation:Optional + IgnoreErrors *bool `json:"ignoreErrors,omitempty" tf:"ignore_errors,omitempty"` + + // The timeout for component initialisation as a ISO8601 formatted string. e.g. 5s, 2h, 1m. Defaults to 5s. + // The component initialisation timeout in ISO8601 format. e.g. `5s`, `2h`, `1m`. Defaults to `5s`. + // +kubebuilder:validation:Optional + InitTimeout *string `json:"initTimeout,omitempty" tf:"init_timeout,omitempty"` + + // One or more metadata blocks as detailed below. + // +kubebuilder:validation:Optional + Metadata []MetadataParameters `json:"metadata,omitempty" tf:"metadata,omitempty"` + + // A list of scopes to which this component applies. + // A list of scopes to which this component applies. e.g. a Container App's `dapr.app_id` value. + // +kubebuilder:validation:Optional + Scopes []*string `json:"scopes,omitempty" tf:"scopes,omitempty"` + + // A secret block as detailed below. + // +kubebuilder:validation:Optional + Secret []EnvironmentDaprComponentSecretParameters `json:"secret,omitempty" tf:"secret,omitempty"` + + // The version of the component. + // The version of the component. + // +kubebuilder:validation:Optional + Version *string `json:"version,omitempty" tf:"version,omitempty"` +} + +type EnvironmentDaprComponentSecretInitParameters struct { + + // The identity to use for accessing key vault reference. + Identity *string `json:"identity,omitempty" tf:"identity,omitempty"` + + // The ID of the Container App Environment Dapr Component + // The Key Vault Secret ID. Could be either one of `id` or `versionless_id`. + KeyVaultSecretID *string `json:"keyVaultSecretId,omitempty" tf:"key_vault_secret_id,omitempty"` + + // The Secret name. + // The secret name. + Name *string `json:"name,omitempty" tf:"name,omitempty"` + + // The value for this secret. + // The value for this secret. + ValueSecretRef *v1.SecretKeySelector `json:"valueSecretRef,omitempty" tf:"-"` +} + +type EnvironmentDaprComponentSecretObservation struct { + + // The identity to use for accessing key vault reference. + Identity *string `json:"identity,omitempty" tf:"identity,omitempty"` + + // The ID of the Container App Environment Dapr Component + // The Key Vault Secret ID. Could be either one of `id` or `versionless_id`. + KeyVaultSecretID *string `json:"keyVaultSecretId,omitempty" tf:"key_vault_secret_id,omitempty"` + + // The Secret name. + // The secret name. + Name *string `json:"name,omitempty" tf:"name,omitempty"` +} + +type EnvironmentDaprComponentSecretParameters struct { + + // The identity to use for accessing key vault reference. + // +kubebuilder:validation:Optional + Identity *string `json:"identity,omitempty" tf:"identity,omitempty"` + + // The ID of the Container App Environment Dapr Component + // The Key Vault Secret ID. Could be either one of `id` or `versionless_id`. + // +kubebuilder:validation:Optional + KeyVaultSecretID *string `json:"keyVaultSecretId,omitempty" tf:"key_vault_secret_id,omitempty"` + + // The Secret name. + // The secret name. + // +kubebuilder:validation:Optional + Name *string `json:"name" tf:"name,omitempty"` + + // The value for this secret. + // The value for this secret. + // +kubebuilder:validation:Optional + ValueSecretRef *v1.SecretKeySelector `json:"valueSecretRef,omitempty" tf:"-"` +} + +type MetadataInitParameters struct { + + // The name of the Metadata configuration item. + // The name of the Metadata configuration item. + Name *string `json:"name,omitempty" tf:"name,omitempty"` + + // The name of a secret specified in the secrets block that contains the value for this metadata configuration item. + // The name of a secret specified in the `secrets` block that contains the value for this metadata configuration item. + SecretName *string `json:"secretName,omitempty" tf:"secret_name,omitempty"` + + // The value for this metadata configuration item. + // The value for this metadata configuration item. + Value *string `json:"value,omitempty" tf:"value,omitempty"` +} + +type MetadataObservation struct { + + // The name of the Metadata configuration item. + // The name of the Metadata configuration item. + Name *string `json:"name,omitempty" tf:"name,omitempty"` + + // The name of a secret specified in the secrets block that contains the value for this metadata configuration item. + // The name of a secret specified in the `secrets` block that contains the value for this metadata configuration item. + SecretName *string `json:"secretName,omitempty" tf:"secret_name,omitempty"` + + // The value for this metadata configuration item. + // The value for this metadata configuration item. + Value *string `json:"value,omitempty" tf:"value,omitempty"` +} + +type MetadataParameters struct { + + // The name of the Metadata configuration item. + // The name of the Metadata configuration item. + // +kubebuilder:validation:Optional + Name *string `json:"name" tf:"name,omitempty"` + + // The name of a secret specified in the secrets block that contains the value for this metadata configuration item. + // The name of a secret specified in the `secrets` block that contains the value for this metadata configuration item. + // +kubebuilder:validation:Optional + SecretName *string `json:"secretName,omitempty" tf:"secret_name,omitempty"` + + // The value for this metadata configuration item. + // The value for this metadata configuration item. + // +kubebuilder:validation:Optional + Value *string `json:"value,omitempty" tf:"value,omitempty"` +} + +// EnvironmentDaprComponentSpec defines the desired state of EnvironmentDaprComponent +type EnvironmentDaprComponentSpec struct { + v1.ResourceSpec `json:",inline"` + ForProvider EnvironmentDaprComponentParameters `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 EnvironmentDaprComponentInitParameters `json:"initProvider,omitempty"` +} + +// EnvironmentDaprComponentStatus defines the observed state of EnvironmentDaprComponent. +type EnvironmentDaprComponentStatus struct { + v1.ResourceStatus `json:",inline"` + AtProvider EnvironmentDaprComponentObservation `json:"atProvider,omitempty"` +} + +// +kubebuilder:object:root=true +// +kubebuilder:subresource:status +// +kubebuilder:storageversion + +// EnvironmentDaprComponent is the Schema for the EnvironmentDaprComponents API. Manages a Dapr Component for a Container App Environment. +// +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} +type EnvironmentDaprComponent 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.componentType) || (has(self.initProvider) && has(self.initProvider.componentType))",message="spec.forProvider.componentType is a required parameter" + // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.version) || (has(self.initProvider) && has(self.initProvider.version))",message="spec.forProvider.version is a required parameter" + Spec EnvironmentDaprComponentSpec `json:"spec"` + Status EnvironmentDaprComponentStatus `json:"status,omitempty"` +} + +// +kubebuilder:object:root=true + +// EnvironmentDaprComponentList contains a list of EnvironmentDaprComponents +type EnvironmentDaprComponentList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []EnvironmentDaprComponent `json:"items"` +} + +// Repository type metadata. +var ( + EnvironmentDaprComponent_Kind = "EnvironmentDaprComponent" + EnvironmentDaprComponent_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: EnvironmentDaprComponent_Kind}.String() + EnvironmentDaprComponent_KindAPIVersion = EnvironmentDaprComponent_Kind + "." + CRDGroupVersion.String() + EnvironmentDaprComponent_GroupVersionKind = CRDGroupVersion.WithKind(EnvironmentDaprComponent_Kind) +) + +func init() { + SchemeBuilder.Register(&EnvironmentDaprComponent{}, &EnvironmentDaprComponentList{}) +} diff --git a/apis/containerapp/v1beta1/zz_environmentstorage_terraformed.go b/apis/containerapp/v1beta1/zz_environmentstorage_terraformed.go new file mode 100755 index 000000000..feb6c5623 --- /dev/null +++ b/apis/containerapp/v1beta1/zz_environmentstorage_terraformed.go @@ -0,0 +1,129 @@ +// SPDX-FileCopyrightText: 2024 The Crossplane Authors +// +// SPDX-License-Identifier: Apache-2.0 + +// Code generated by upjet. DO NOT EDIT. + +package v1beta1 + +import ( + "dario.cat/mergo" + "github.com/pkg/errors" + + "github.com/crossplane/upjet/pkg/resource" + "github.com/crossplane/upjet/pkg/resource/json" +) + +// GetTerraformResourceType returns Terraform resource type for this EnvironmentStorage +func (mg *EnvironmentStorage) GetTerraformResourceType() string { + return "azurerm_container_app_environment_storage" +} + +// GetConnectionDetailsMapping for this EnvironmentStorage +func (tr *EnvironmentStorage) GetConnectionDetailsMapping() map[string]string { + return map[string]string{"access_key": "accessKeySecretRef"} +} + +// GetObservation of this EnvironmentStorage +func (tr *EnvironmentStorage) GetObservation() (map[string]any, error) { + o, err := json.TFParser.Marshal(tr.Status.AtProvider) + if err != nil { + return nil, err + } + base := map[string]any{} + return base, json.TFParser.Unmarshal(o, &base) +} + +// SetObservation for this EnvironmentStorage +func (tr *EnvironmentStorage) SetObservation(obs map[string]any) error { + p, err := json.TFParser.Marshal(obs) + if err != nil { + return err + } + return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) +} + +// GetID returns ID of underlying Terraform resource of this EnvironmentStorage +func (tr *EnvironmentStorage) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + +// GetParameters of this EnvironmentStorage +func (tr *EnvironmentStorage) GetParameters() (map[string]any, error) { + p, err := json.TFParser.Marshal(tr.Spec.ForProvider) + if err != nil { + return nil, err + } + base := map[string]any{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this EnvironmentStorage +func (tr *EnvironmentStorage) SetParameters(params map[string]any) error { + p, err := json.TFParser.Marshal(params) + if err != nil { + return err + } + return json.TFParser.Unmarshal(p, &tr.Spec.ForProvider) +} + +// GetInitParameters of this EnvironmentStorage +func (tr *EnvironmentStorage) GetInitParameters() (map[string]any, error) { + p, err := json.TFParser.Marshal(tr.Spec.InitProvider) + if err != nil { + return nil, err + } + base := map[string]any{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// GetInitParameters of this EnvironmentStorage +func (tr *EnvironmentStorage) GetMergedParameters(shouldMergeInitProvider bool) (map[string]any, error) { + params, err := tr.GetParameters() + if err != nil { + return nil, errors.Wrapf(err, "cannot get parameters for resource '%q'", tr.GetName()) + } + if !shouldMergeInitProvider { + return params, nil + } + + initParams, err := tr.GetInitParameters() + if err != nil { + return nil, errors.Wrapf(err, "cannot get init parameters for resource '%q'", tr.GetName()) + } + + // Note(lsviben): mergo.WithSliceDeepCopy is needed to merge the + // slices from the initProvider to forProvider. As it also sets + // overwrite to true, we need to set it back to false, we don't + // want to overwrite the forProvider fields with the initProvider + // fields. + err = mergo.Merge(¶ms, initParams, mergo.WithSliceDeepCopy, func(c *mergo.Config) { + c.Overwrite = false + }) + if err != nil { + return nil, errors.Wrapf(err, "cannot merge spec.initProvider and spec.forProvider parameters for resource '%q'", tr.GetName()) + } + + return params, nil +} + +// LateInitialize this EnvironmentStorage using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *EnvironmentStorage) LateInitialize(attrs []byte) (bool, error) { + params := &EnvironmentStorageParameters{} + if err := json.TFParser.Unmarshal(attrs, params); err != nil { + return false, errors.Wrap(err, "failed to unmarshal Terraform state parameters for late-initialization") + } + opts := []resource.GenericLateInitializerOption{resource.WithZeroValueJSONOmitEmptyFilter(resource.CNameWildcard)} + + li := resource.NewGenericLateInitializer(opts...) + return li.LateInitialize(&tr.Spec.ForProvider, params) +} + +// GetTerraformSchemaVersion returns the associated Terraform schema version +func (tr *EnvironmentStorage) GetTerraformSchemaVersion() int { + return 0 +} diff --git a/apis/containerapp/v1beta1/zz_environmentstorage_types.go b/apis/containerapp/v1beta1/zz_environmentstorage_types.go new file mode 100755 index 000000000..6687f74b1 --- /dev/null +++ b/apis/containerapp/v1beta1/zz_environmentstorage_types.go @@ -0,0 +1,192 @@ +// SPDX-FileCopyrightText: 2024 The Crossplane Authors +// +// SPDX-License-Identifier: Apache-2.0 + +// Code generated by upjet. DO NOT EDIT. + +package v1beta1 + +import ( + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + "k8s.io/apimachinery/pkg/runtime/schema" + + v1 "github.com/crossplane/crossplane-runtime/apis/common/v1" +) + +type EnvironmentStorageInitParameters struct { + + // The Storage Account Access Key. + // The Storage Account Access Key. + AccessKeySecretRef v1.SecretKeySelector `json:"accessKeySecretRef" tf:"-"` + + // The access mode to connect this storage to the Container App. Possible values include ReadOnly and ReadWrite. Changing this forces a new resource to be created. + // The access mode to connect this storage to the Container App. Possible values include `ReadOnly` and `ReadWrite`. + AccessMode *string `json:"accessMode,omitempty" tf:"access_mode,omitempty"` + + // The Azure Storage Account in which the Share to be used is located. Changing this forces a new resource to be created. + // The Azure Storage Account in which the Share to be used is located. + // +crossplane:generate:reference:type=github.com/upbound/provider-azure/apis/storage/v1beta2.Account + AccountName *string `json:"accountName,omitempty" tf:"account_name,omitempty"` + + // Reference to a Account in storage to populate accountName. + // +kubebuilder:validation:Optional + AccountNameRef *v1.Reference `json:"accountNameRef,omitempty" tf:"-"` + + // Selector for a Account in storage to populate accountName. + // +kubebuilder:validation:Optional + AccountNameSelector *v1.Selector `json:"accountNameSelector,omitempty" tf:"-"` + + // The name of the Azure Storage Share to use. Changing this forces a new resource to be created. + // The name of the Azure Storage Share to use. + // +crossplane:generate:reference:type=github.com/upbound/provider-azure/apis/storage/v1beta1.Share + ShareName *string `json:"shareName,omitempty" tf:"share_name,omitempty"` + + // Reference to a Share in storage to populate shareName. + // +kubebuilder:validation:Optional + ShareNameRef *v1.Reference `json:"shareNameRef,omitempty" tf:"-"` + + // Selector for a Share in storage to populate shareName. + // +kubebuilder:validation:Optional + ShareNameSelector *v1.Selector `json:"shareNameSelector,omitempty" tf:"-"` +} + +type EnvironmentStorageObservation struct { + + // The access mode to connect this storage to the Container App. Possible values include ReadOnly and ReadWrite. Changing this forces a new resource to be created. + // The access mode to connect this storage to the Container App. Possible values include `ReadOnly` and `ReadWrite`. + AccessMode *string `json:"accessMode,omitempty" tf:"access_mode,omitempty"` + + // The Azure Storage Account in which the Share to be used is located. Changing this forces a new resource to be created. + // The Azure Storage Account in which the Share to be used is located. + AccountName *string `json:"accountName,omitempty" tf:"account_name,omitempty"` + + // The ID of the Container App Environment to which this storage belongs. Changing this forces a new resource to be created. + // The ID of the Container App Environment to which this storage belongs. + ContainerAppEnvironmentID *string `json:"containerAppEnvironmentId,omitempty" tf:"container_app_environment_id,omitempty"` + + // The ID of the Container App Environment Storage + ID *string `json:"id,omitempty" tf:"id,omitempty"` + + // The name of the Azure Storage Share to use. Changing this forces a new resource to be created. + // The name of the Azure Storage Share to use. + ShareName *string `json:"shareName,omitempty" tf:"share_name,omitempty"` +} + +type EnvironmentStorageParameters struct { + + // The Storage Account Access Key. + // The Storage Account Access Key. + // +kubebuilder:validation:Optional + AccessKeySecretRef v1.SecretKeySelector `json:"accessKeySecretRef" tf:"-"` + + // The access mode to connect this storage to the Container App. Possible values include ReadOnly and ReadWrite. Changing this forces a new resource to be created. + // The access mode to connect this storage to the Container App. Possible values include `ReadOnly` and `ReadWrite`. + // +kubebuilder:validation:Optional + AccessMode *string `json:"accessMode,omitempty" tf:"access_mode,omitempty"` + + // The Azure Storage Account in which the Share to be used is located. Changing this forces a new resource to be created. + // The Azure Storage Account in which the Share to be used is located. + // +crossplane:generate:reference:type=github.com/upbound/provider-azure/apis/storage/v1beta2.Account + // +kubebuilder:validation:Optional + AccountName *string `json:"accountName,omitempty" tf:"account_name,omitempty"` + + // Reference to a Account in storage to populate accountName. + // +kubebuilder:validation:Optional + AccountNameRef *v1.Reference `json:"accountNameRef,omitempty" tf:"-"` + + // Selector for a Account in storage to populate accountName. + // +kubebuilder:validation:Optional + AccountNameSelector *v1.Selector `json:"accountNameSelector,omitempty" tf:"-"` + + // The ID of the Container App Environment to which this storage belongs. Changing this forces a new resource to be created. + // The ID of the Container App Environment to which this storage belongs. + // +crossplane:generate:reference:type=github.com/upbound/provider-azure/apis/containerapp/v1beta1.Environment + // +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID() + // +kubebuilder:validation:Optional + ContainerAppEnvironmentID *string `json:"containerAppEnvironmentId,omitempty" tf:"container_app_environment_id,omitempty"` + + // Reference to a Environment in containerapp to populate containerAppEnvironmentId. + // +kubebuilder:validation:Optional + ContainerAppEnvironmentIDRef *v1.Reference `json:"containerAppEnvironmentIdRef,omitempty" tf:"-"` + + // Selector for a Environment in containerapp to populate containerAppEnvironmentId. + // +kubebuilder:validation:Optional + ContainerAppEnvironmentIDSelector *v1.Selector `json:"containerAppEnvironmentIdSelector,omitempty" tf:"-"` + + // The name of the Azure Storage Share to use. Changing this forces a new resource to be created. + // The name of the Azure Storage Share to use. + // +crossplane:generate:reference:type=github.com/upbound/provider-azure/apis/storage/v1beta1.Share + // +kubebuilder:validation:Optional + ShareName *string `json:"shareName,omitempty" tf:"share_name,omitempty"` + + // Reference to a Share in storage to populate shareName. + // +kubebuilder:validation:Optional + ShareNameRef *v1.Reference `json:"shareNameRef,omitempty" tf:"-"` + + // Selector for a Share in storage to populate shareName. + // +kubebuilder:validation:Optional + ShareNameSelector *v1.Selector `json:"shareNameSelector,omitempty" tf:"-"` +} + +// EnvironmentStorageSpec defines the desired state of EnvironmentStorage +type EnvironmentStorageSpec struct { + v1.ResourceSpec `json:",inline"` + ForProvider EnvironmentStorageParameters `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 EnvironmentStorageInitParameters `json:"initProvider,omitempty"` +} + +// EnvironmentStorageStatus defines the observed state of EnvironmentStorage. +type EnvironmentStorageStatus struct { + v1.ResourceStatus `json:",inline"` + AtProvider EnvironmentStorageObservation `json:"atProvider,omitempty"` +} + +// +kubebuilder:object:root=true +// +kubebuilder:subresource:status +// +kubebuilder:storageversion + +// EnvironmentStorage is the Schema for the EnvironmentStorages API. Manages a Container App Environment Storage. +// +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} +type EnvironmentStorage 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.accessKeySecretRef)",message="spec.forProvider.accessKeySecretRef is a required parameter" + // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.accessMode) || (has(self.initProvider) && has(self.initProvider.accessMode))",message="spec.forProvider.accessMode is a required parameter" + Spec EnvironmentStorageSpec `json:"spec"` + Status EnvironmentStorageStatus `json:"status,omitempty"` +} + +// +kubebuilder:object:root=true + +// EnvironmentStorageList contains a list of EnvironmentStorages +type EnvironmentStorageList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []EnvironmentStorage `json:"items"` +} + +// Repository type metadata. +var ( + EnvironmentStorage_Kind = "EnvironmentStorage" + EnvironmentStorage_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: EnvironmentStorage_Kind}.String() + EnvironmentStorage_KindAPIVersion = EnvironmentStorage_Kind + "." + CRDGroupVersion.String() + EnvironmentStorage_GroupVersionKind = CRDGroupVersion.WithKind(EnvironmentStorage_Kind) +) + +func init() { + SchemeBuilder.Register(&EnvironmentStorage{}, &EnvironmentStorageList{}) +} diff --git a/apis/containerapp/v1beta1/zz_generated.conversion_hubs.go b/apis/containerapp/v1beta1/zz_generated.conversion_hubs.go index e7ab6a185..9444a593b 100755 --- a/apis/containerapp/v1beta1/zz_generated.conversion_hubs.go +++ b/apis/containerapp/v1beta1/zz_generated.conversion_hubs.go @@ -6,5 +6,20 @@ package v1beta1 +// Hub marks this type as a conversion hub. +func (tr *CustomDomain) Hub() {} + // Hub marks this type as a conversion hub. func (tr *Environment) Hub() {} + +// Hub marks this type as a conversion hub. +func (tr *EnvironmentCertificate) Hub() {} + +// Hub marks this type as a conversion hub. +func (tr *EnvironmentCustomDomain) Hub() {} + +// Hub marks this type as a conversion hub. +func (tr *EnvironmentDaprComponent) Hub() {} + +// Hub marks this type as a conversion hub. +func (tr *EnvironmentStorage) Hub() {} diff --git a/apis/containerapp/v1beta1/zz_generated.deepcopy.go b/apis/containerapp/v1beta1/zz_generated.deepcopy.go index 7484c2172..bf09ac8b5 100644 --- a/apis/containerapp/v1beta1/zz_generated.deepcopy.go +++ b/apis/containerapp/v1beta1/zz_generated.deepcopy.go @@ -909,6 +909,33 @@ func (in *ContainerParameters) DeepCopy() *ContainerParameters { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *CustomDomain) DeepCopyInto(out *CustomDomain) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomDomain. +func (in *CustomDomain) DeepCopy() *CustomDomain { + if in == nil { + return nil + } + out := new(CustomDomain) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *CustomDomain) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *CustomDomainInitParameters) DeepCopyInto(out *CustomDomainInitParameters) { *out = *in @@ -939,6 +966,73 @@ func (in *CustomDomainInitParameters) DeepCopy() *CustomDomainInitParameters { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *CustomDomainInitParameters_2) DeepCopyInto(out *CustomDomainInitParameters_2) { + *out = *in + if in.CertificateBindingType != nil { + in, out := &in.CertificateBindingType, &out.CertificateBindingType + *out = new(string) + **out = **in + } + if in.ContainerAppEnvironmentCertificateID != nil { + in, out := &in.ContainerAppEnvironmentCertificateID, &out.ContainerAppEnvironmentCertificateID + *out = new(string) + **out = **in + } + if in.ContainerAppEnvironmentCertificateIDRef != nil { + in, out := &in.ContainerAppEnvironmentCertificateIDRef, &out.ContainerAppEnvironmentCertificateIDRef + *out = new(v1.Reference) + (*in).DeepCopyInto(*out) + } + if in.ContainerAppEnvironmentCertificateIDSelector != nil { + in, out := &in.ContainerAppEnvironmentCertificateIDSelector, &out.ContainerAppEnvironmentCertificateIDSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomDomainInitParameters_2. +func (in *CustomDomainInitParameters_2) DeepCopy() *CustomDomainInitParameters_2 { + if in == nil { + return nil + } + out := new(CustomDomainInitParameters_2) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *CustomDomainList) DeepCopyInto(out *CustomDomainList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]CustomDomain, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomDomainList. +func (in *CustomDomainList) DeepCopy() *CustomDomainList { + if in == nil { + return nil + } + out := new(CustomDomainList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *CustomDomainList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *CustomDomainObservation) DeepCopyInto(out *CustomDomainObservation) { *out = *in @@ -969,6 +1063,41 @@ func (in *CustomDomainObservation) DeepCopy() *CustomDomainObservation { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *CustomDomainObservation_2) DeepCopyInto(out *CustomDomainObservation_2) { + *out = *in + if in.CertificateBindingType != nil { + in, out := &in.CertificateBindingType, &out.CertificateBindingType + *out = new(string) + **out = **in + } + if in.ContainerAppEnvironmentCertificateID != nil { + in, out := &in.ContainerAppEnvironmentCertificateID, &out.ContainerAppEnvironmentCertificateID + *out = new(string) + **out = **in + } + if in.ContainerAppID != nil { + in, out := &in.ContainerAppID, &out.ContainerAppID + *out = new(string) + **out = **in + } + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomDomainObservation_2. +func (in *CustomDomainObservation_2) DeepCopy() *CustomDomainObservation_2 { + if in == nil { + return nil + } + out := new(CustomDomainObservation_2) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *CustomDomainParameters) DeepCopyInto(out *CustomDomainParameters) { *out = *in @@ -999,6 +1128,91 @@ func (in *CustomDomainParameters) DeepCopy() *CustomDomainParameters { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *CustomDomainParameters_2) DeepCopyInto(out *CustomDomainParameters_2) { + *out = *in + if in.CertificateBindingType != nil { + in, out := &in.CertificateBindingType, &out.CertificateBindingType + *out = new(string) + **out = **in + } + if in.ContainerAppEnvironmentCertificateID != nil { + in, out := &in.ContainerAppEnvironmentCertificateID, &out.ContainerAppEnvironmentCertificateID + *out = new(string) + **out = **in + } + if in.ContainerAppEnvironmentCertificateIDRef != nil { + in, out := &in.ContainerAppEnvironmentCertificateIDRef, &out.ContainerAppEnvironmentCertificateIDRef + *out = new(v1.Reference) + (*in).DeepCopyInto(*out) + } + if in.ContainerAppEnvironmentCertificateIDSelector != nil { + in, out := &in.ContainerAppEnvironmentCertificateIDSelector, &out.ContainerAppEnvironmentCertificateIDSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } + if in.ContainerAppID != nil { + in, out := &in.ContainerAppID, &out.ContainerAppID + *out = new(string) + **out = **in + } + if in.ContainerAppIDRef != nil { + in, out := &in.ContainerAppIDRef, &out.ContainerAppIDRef + *out = new(v1.Reference) + (*in).DeepCopyInto(*out) + } + if in.ContainerAppIDSelector != nil { + in, out := &in.ContainerAppIDSelector, &out.ContainerAppIDSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomDomainParameters_2. +func (in *CustomDomainParameters_2) DeepCopy() *CustomDomainParameters_2 { + if in == nil { + return nil + } + out := new(CustomDomainParameters_2) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *CustomDomainSpec) DeepCopyInto(out *CustomDomainSpec) { + *out = *in + in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) + in.ForProvider.DeepCopyInto(&out.ForProvider) + in.InitProvider.DeepCopyInto(&out.InitProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomDomainSpec. +func (in *CustomDomainSpec) DeepCopy() *CustomDomainSpec { + if in == nil { + return nil + } + out := new(CustomDomainSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *CustomDomainStatus) DeepCopyInto(out *CustomDomainStatus) { + *out = *in + in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) + in.AtProvider.DeepCopyInto(&out.AtProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomDomainStatus. +func (in *CustomDomainStatus) DeepCopy() *CustomDomainStatus { + if in == nil { + return nil + } + out := new(CustomDomainStatus) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *CustomScaleRuleAuthenticationInitParameters) DeepCopyInto(out *CustomScaleRuleAuthenticationInitParameters) { *out = *in @@ -1426,73 +1640,41 @@ func (in *Environment) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *EnvironmentInitParameters) DeepCopyInto(out *EnvironmentInitParameters) { +func (in *EnvironmentCertificate) DeepCopyInto(out *EnvironmentCertificate) { *out = *in - if in.DaprApplicationInsightsConnectionStringSecretRef != nil { - in, out := &in.DaprApplicationInsightsConnectionStringSecretRef, &out.DaprApplicationInsightsConnectionStringSecretRef - *out = new(v1.SecretKeySelector) - **out = **in - } - if in.InfrastructureResourceGroupName != nil { - in, out := &in.InfrastructureResourceGroupName, &out.InfrastructureResourceGroupName - *out = new(string) - **out = **in - } - if in.InfrastructureResourceGroupNameRef != nil { - in, out := &in.InfrastructureResourceGroupNameRef, &out.InfrastructureResourceGroupNameRef - *out = new(v1.Reference) - (*in).DeepCopyInto(*out) - } - if in.InfrastructureResourceGroupNameSelector != nil { - in, out := &in.InfrastructureResourceGroupNameSelector, &out.InfrastructureResourceGroupNameSelector - *out = new(v1.Selector) - (*in).DeepCopyInto(*out) - } - if in.InfrastructureSubnetID != nil { - in, out := &in.InfrastructureSubnetID, &out.InfrastructureSubnetID - *out = new(string) - **out = **in - } - if in.InfrastructureSubnetIDRef != nil { - in, out := &in.InfrastructureSubnetIDRef, &out.InfrastructureSubnetIDRef - *out = new(v1.Reference) - (*in).DeepCopyInto(*out) - } - if in.InfrastructureSubnetIDSelector != nil { - in, out := &in.InfrastructureSubnetIDSelector, &out.InfrastructureSubnetIDSelector - *out = new(v1.Selector) - (*in).DeepCopyInto(*out) - } - if in.InternalLoadBalancerEnabled != nil { - in, out := &in.InternalLoadBalancerEnabled, &out.InternalLoadBalancerEnabled - *out = new(bool) - **out = **in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentCertificate. +func (in *EnvironmentCertificate) DeepCopy() *EnvironmentCertificate { + if in == nil { + return nil } - if in.Location != nil { - in, out := &in.Location, &out.Location - *out = new(string) - **out = **in + out := new(EnvironmentCertificate) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *EnvironmentCertificate) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c } - if in.LogAnalyticsWorkspaceID != nil { - in, out := &in.LogAnalyticsWorkspaceID, &out.LogAnalyticsWorkspaceID + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *EnvironmentCertificateInitParameters) DeepCopyInto(out *EnvironmentCertificateInitParameters) { + *out = *in + if in.CertificateBlobBase64 != nil { + in, out := &in.CertificateBlobBase64, &out.CertificateBlobBase64 *out = new(string) **out = **in } - if in.LogAnalyticsWorkspaceIDRef != nil { - in, out := &in.LogAnalyticsWorkspaceIDRef, &out.LogAnalyticsWorkspaceIDRef - *out = new(v1.Reference) - (*in).DeepCopyInto(*out) - } - if in.LogAnalyticsWorkspaceIDSelector != nil { - in, out := &in.LogAnalyticsWorkspaceIDSelector, &out.LogAnalyticsWorkspaceIDSelector - *out = new(v1.Selector) - (*in).DeepCopyInto(*out) - } - if in.MutualTLSEnabled != nil { - in, out := &in.MutualTLSEnabled, &out.MutualTLSEnabled - *out = new(bool) - **out = **in - } + out.CertificatePasswordSecretRef = in.CertificatePasswordSecretRef if in.Tags != nil { in, out := &in.Tags, &out.Tags *out = make(map[string]*string, len(*in)) @@ -1509,56 +1691,44 @@ func (in *EnvironmentInitParameters) DeepCopyInto(out *EnvironmentInitParameters (*out)[key] = outVal } } - if in.WorkloadProfile != nil { - in, out := &in.WorkloadProfile, &out.WorkloadProfile - *out = make([]WorkloadProfileInitParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.ZoneRedundancyEnabled != nil { - in, out := &in.ZoneRedundancyEnabled, &out.ZoneRedundancyEnabled - *out = new(bool) - **out = **in - } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentInitParameters. -func (in *EnvironmentInitParameters) DeepCopy() *EnvironmentInitParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentCertificateInitParameters. +func (in *EnvironmentCertificateInitParameters) DeepCopy() *EnvironmentCertificateInitParameters { if in == nil { return nil } - out := new(EnvironmentInitParameters) + out := new(EnvironmentCertificateInitParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *EnvironmentList) DeepCopyInto(out *EnvironmentList) { +func (in *EnvironmentCertificateList) DeepCopyInto(out *EnvironmentCertificateList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]Environment, len(*in)) + *out = make([]EnvironmentCertificate, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentList. -func (in *EnvironmentList) DeepCopy() *EnvironmentList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentCertificateList. +func (in *EnvironmentCertificateList) DeepCopy() *EnvironmentCertificateList { if in == nil { return nil } - out := new(EnvironmentList) + out := new(EnvironmentCertificateList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *EnvironmentList) DeepCopyObject() runtime.Object { +func (in *EnvironmentCertificateList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -1566,20 +1736,20 @@ func (in *EnvironmentList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *EnvironmentObservation) DeepCopyInto(out *EnvironmentObservation) { +func (in *EnvironmentCertificateObservation) DeepCopyInto(out *EnvironmentCertificateObservation) { *out = *in - if in.CustomDomainVerificationID != nil { - in, out := &in.CustomDomainVerificationID, &out.CustomDomainVerificationID + if in.CertificateBlobBase64 != nil { + in, out := &in.CertificateBlobBase64, &out.CertificateBlobBase64 *out = new(string) **out = **in } - if in.DefaultDomain != nil { - in, out := &in.DefaultDomain, &out.DefaultDomain + if in.ContainerAppEnvironmentID != nil { + in, out := &in.ContainerAppEnvironmentID, &out.ContainerAppEnvironmentID *out = new(string) **out = **in } - if in.DockerBridgeCidr != nil { - in, out := &in.DockerBridgeCidr, &out.DockerBridgeCidr + if in.ExpirationDate != nil { + in, out := &in.ExpirationDate, &out.ExpirationDate *out = new(string) **out = **in } @@ -1588,250 +1758,1409 @@ func (in *EnvironmentObservation) DeepCopyInto(out *EnvironmentObservation) { *out = new(string) **out = **in } - if in.InfrastructureResourceGroupName != nil { - in, out := &in.InfrastructureResourceGroupName, &out.InfrastructureResourceGroupName + if in.IssueDate != nil { + in, out := &in.IssueDate, &out.IssueDate *out = new(string) **out = **in } - if in.InfrastructureSubnetID != nil { - in, out := &in.InfrastructureSubnetID, &out.InfrastructureSubnetID + if in.Issuer != nil { + in, out := &in.Issuer, &out.Issuer + *out = new(string) + **out = **in + } + if in.SubjectName != nil { + in, out := &in.SubjectName, &out.SubjectName + *out = new(string) + **out = **in + } + if in.Tags != nil { + in, out := &in.Tags, &out.Tags + *out = make(map[string]*string, len(*in)) + for key, val := range *in { + var outVal *string + if val == nil { + (*out)[key] = nil + } else { + inVal := (*in)[key] + in, out := &inVal, &outVal + *out = new(string) + **out = **in + } + (*out)[key] = outVal + } + } + if in.Thumbprint != nil { + in, out := &in.Thumbprint, &out.Thumbprint + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentCertificateObservation. +func (in *EnvironmentCertificateObservation) DeepCopy() *EnvironmentCertificateObservation { + if in == nil { + return nil + } + out := new(EnvironmentCertificateObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *EnvironmentCertificateParameters) DeepCopyInto(out *EnvironmentCertificateParameters) { + *out = *in + if in.CertificateBlobBase64 != nil { + in, out := &in.CertificateBlobBase64, &out.CertificateBlobBase64 + *out = new(string) + **out = **in + } + out.CertificatePasswordSecretRef = in.CertificatePasswordSecretRef + if in.ContainerAppEnvironmentID != nil { + in, out := &in.ContainerAppEnvironmentID, &out.ContainerAppEnvironmentID + *out = new(string) + **out = **in + } + if in.ContainerAppEnvironmentIDRef != nil { + in, out := &in.ContainerAppEnvironmentIDRef, &out.ContainerAppEnvironmentIDRef + *out = new(v1.Reference) + (*in).DeepCopyInto(*out) + } + if in.ContainerAppEnvironmentIDSelector != nil { + in, out := &in.ContainerAppEnvironmentIDSelector, &out.ContainerAppEnvironmentIDSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } + if in.Tags != nil { + in, out := &in.Tags, &out.Tags + *out = make(map[string]*string, len(*in)) + for key, val := range *in { + var outVal *string + if val == nil { + (*out)[key] = nil + } else { + inVal := (*in)[key] + in, out := &inVal, &outVal + *out = new(string) + **out = **in + } + (*out)[key] = outVal + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentCertificateParameters. +func (in *EnvironmentCertificateParameters) DeepCopy() *EnvironmentCertificateParameters { + if in == nil { + return nil + } + out := new(EnvironmentCertificateParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *EnvironmentCertificateSpec) DeepCopyInto(out *EnvironmentCertificateSpec) { + *out = *in + in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) + in.ForProvider.DeepCopyInto(&out.ForProvider) + in.InitProvider.DeepCopyInto(&out.InitProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentCertificateSpec. +func (in *EnvironmentCertificateSpec) DeepCopy() *EnvironmentCertificateSpec { + if in == nil { + return nil + } + out := new(EnvironmentCertificateSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *EnvironmentCertificateStatus) DeepCopyInto(out *EnvironmentCertificateStatus) { + *out = *in + in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) + in.AtProvider.DeepCopyInto(&out.AtProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentCertificateStatus. +func (in *EnvironmentCertificateStatus) DeepCopy() *EnvironmentCertificateStatus { + if in == nil { + return nil + } + out := new(EnvironmentCertificateStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *EnvironmentCustomDomain) DeepCopyInto(out *EnvironmentCustomDomain) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentCustomDomain. +func (in *EnvironmentCustomDomain) DeepCopy() *EnvironmentCustomDomain { + if in == nil { + return nil + } + out := new(EnvironmentCustomDomain) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *EnvironmentCustomDomain) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *EnvironmentCustomDomainInitParameters) DeepCopyInto(out *EnvironmentCustomDomainInitParameters) { + *out = *in + if in.CertificateBlobBase64 != nil { + in, out := &in.CertificateBlobBase64, &out.CertificateBlobBase64 + *out = new(string) + **out = **in + } + out.CertificatePasswordSecretRef = in.CertificatePasswordSecretRef + if in.ContainerAppEnvironmentID != nil { + in, out := &in.ContainerAppEnvironmentID, &out.ContainerAppEnvironmentID + *out = new(string) + **out = **in + } + if in.ContainerAppEnvironmentIDRef != nil { + in, out := &in.ContainerAppEnvironmentIDRef, &out.ContainerAppEnvironmentIDRef + *out = new(v1.Reference) + (*in).DeepCopyInto(*out) + } + if in.ContainerAppEnvironmentIDSelector != nil { + in, out := &in.ContainerAppEnvironmentIDSelector, &out.ContainerAppEnvironmentIDSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } + if in.DNSSuffix != nil { + in, out := &in.DNSSuffix, &out.DNSSuffix + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentCustomDomainInitParameters. +func (in *EnvironmentCustomDomainInitParameters) DeepCopy() *EnvironmentCustomDomainInitParameters { + if in == nil { + return nil + } + out := new(EnvironmentCustomDomainInitParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *EnvironmentCustomDomainList) DeepCopyInto(out *EnvironmentCustomDomainList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]EnvironmentCustomDomain, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentCustomDomainList. +func (in *EnvironmentCustomDomainList) DeepCopy() *EnvironmentCustomDomainList { + if in == nil { + return nil + } + out := new(EnvironmentCustomDomainList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *EnvironmentCustomDomainList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *EnvironmentCustomDomainObservation) DeepCopyInto(out *EnvironmentCustomDomainObservation) { + *out = *in + if in.CertificateBlobBase64 != nil { + in, out := &in.CertificateBlobBase64, &out.CertificateBlobBase64 + *out = new(string) + **out = **in + } + if in.ContainerAppEnvironmentID != nil { + in, out := &in.ContainerAppEnvironmentID, &out.ContainerAppEnvironmentID + *out = new(string) + **out = **in + } + if in.DNSSuffix != nil { + in, out := &in.DNSSuffix, &out.DNSSuffix + *out = new(string) + **out = **in + } + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentCustomDomainObservation. +func (in *EnvironmentCustomDomainObservation) DeepCopy() *EnvironmentCustomDomainObservation { + if in == nil { + return nil + } + out := new(EnvironmentCustomDomainObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *EnvironmentCustomDomainParameters) DeepCopyInto(out *EnvironmentCustomDomainParameters) { + *out = *in + if in.CertificateBlobBase64 != nil { + in, out := &in.CertificateBlobBase64, &out.CertificateBlobBase64 + *out = new(string) + **out = **in + } + out.CertificatePasswordSecretRef = in.CertificatePasswordSecretRef + if in.ContainerAppEnvironmentID != nil { + in, out := &in.ContainerAppEnvironmentID, &out.ContainerAppEnvironmentID *out = new(string) **out = **in } - if in.InternalLoadBalancerEnabled != nil { - in, out := &in.InternalLoadBalancerEnabled, &out.InternalLoadBalancerEnabled - *out = new(bool) - **out = **in + if in.ContainerAppEnvironmentIDRef != nil { + in, out := &in.ContainerAppEnvironmentIDRef, &out.ContainerAppEnvironmentIDRef + *out = new(v1.Reference) + (*in).DeepCopyInto(*out) + } + if in.ContainerAppEnvironmentIDSelector != nil { + in, out := &in.ContainerAppEnvironmentIDSelector, &out.ContainerAppEnvironmentIDSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } + if in.DNSSuffix != nil { + in, out := &in.DNSSuffix, &out.DNSSuffix + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentCustomDomainParameters. +func (in *EnvironmentCustomDomainParameters) DeepCopy() *EnvironmentCustomDomainParameters { + if in == nil { + return nil + } + out := new(EnvironmentCustomDomainParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *EnvironmentCustomDomainSpec) DeepCopyInto(out *EnvironmentCustomDomainSpec) { + *out = *in + in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) + in.ForProvider.DeepCopyInto(&out.ForProvider) + in.InitProvider.DeepCopyInto(&out.InitProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentCustomDomainSpec. +func (in *EnvironmentCustomDomainSpec) DeepCopy() *EnvironmentCustomDomainSpec { + if in == nil { + return nil + } + out := new(EnvironmentCustomDomainSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *EnvironmentCustomDomainStatus) DeepCopyInto(out *EnvironmentCustomDomainStatus) { + *out = *in + in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) + in.AtProvider.DeepCopyInto(&out.AtProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentCustomDomainStatus. +func (in *EnvironmentCustomDomainStatus) DeepCopy() *EnvironmentCustomDomainStatus { + if in == nil { + return nil + } + out := new(EnvironmentCustomDomainStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *EnvironmentDaprComponent) DeepCopyInto(out *EnvironmentDaprComponent) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentDaprComponent. +func (in *EnvironmentDaprComponent) DeepCopy() *EnvironmentDaprComponent { + if in == nil { + return nil + } + out := new(EnvironmentDaprComponent) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *EnvironmentDaprComponent) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *EnvironmentDaprComponentInitParameters) DeepCopyInto(out *EnvironmentDaprComponentInitParameters) { + *out = *in + if in.ComponentType != nil { + in, out := &in.ComponentType, &out.ComponentType + *out = new(string) + **out = **in + } + if in.IgnoreErrors != nil { + in, out := &in.IgnoreErrors, &out.IgnoreErrors + *out = new(bool) + **out = **in + } + if in.InitTimeout != nil { + in, out := &in.InitTimeout, &out.InitTimeout + *out = new(string) + **out = **in + } + if in.Metadata != nil { + in, out := &in.Metadata, &out.Metadata + *out = make([]MetadataInitParameters, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.Scopes != nil { + in, out := &in.Scopes, &out.Scopes + *out = make([]*string, len(*in)) + for i := range *in { + if (*in)[i] != nil { + in, out := &(*in)[i], &(*out)[i] + *out = new(string) + **out = **in + } + } + } + if in.Secret != nil { + in, out := &in.Secret, &out.Secret + *out = make([]EnvironmentDaprComponentSecretInitParameters, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.Version != nil { + in, out := &in.Version, &out.Version + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentDaprComponentInitParameters. +func (in *EnvironmentDaprComponentInitParameters) DeepCopy() *EnvironmentDaprComponentInitParameters { + if in == nil { + return nil + } + out := new(EnvironmentDaprComponentInitParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *EnvironmentDaprComponentList) DeepCopyInto(out *EnvironmentDaprComponentList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]EnvironmentDaprComponent, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentDaprComponentList. +func (in *EnvironmentDaprComponentList) DeepCopy() *EnvironmentDaprComponentList { + if in == nil { + return nil + } + out := new(EnvironmentDaprComponentList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *EnvironmentDaprComponentList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *EnvironmentDaprComponentObservation) DeepCopyInto(out *EnvironmentDaprComponentObservation) { + *out = *in + if in.ComponentType != nil { + in, out := &in.ComponentType, &out.ComponentType + *out = new(string) + **out = **in + } + if in.ContainerAppEnvironmentID != nil { + in, out := &in.ContainerAppEnvironmentID, &out.ContainerAppEnvironmentID + *out = new(string) + **out = **in + } + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } + if in.IgnoreErrors != nil { + in, out := &in.IgnoreErrors, &out.IgnoreErrors + *out = new(bool) + **out = **in + } + if in.InitTimeout != nil { + in, out := &in.InitTimeout, &out.InitTimeout + *out = new(string) + **out = **in + } + if in.Metadata != nil { + in, out := &in.Metadata, &out.Metadata + *out = make([]MetadataObservation, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.Scopes != nil { + in, out := &in.Scopes, &out.Scopes + *out = make([]*string, len(*in)) + for i := range *in { + if (*in)[i] != nil { + in, out := &(*in)[i], &(*out)[i] + *out = new(string) + **out = **in + } + } + } + if in.Secret != nil { + in, out := &in.Secret, &out.Secret + *out = make([]EnvironmentDaprComponentSecretObservation, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.Version != nil { + in, out := &in.Version, &out.Version + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentDaprComponentObservation. +func (in *EnvironmentDaprComponentObservation) DeepCopy() *EnvironmentDaprComponentObservation { + if in == nil { + return nil + } + out := new(EnvironmentDaprComponentObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *EnvironmentDaprComponentParameters) DeepCopyInto(out *EnvironmentDaprComponentParameters) { + *out = *in + if in.ComponentType != nil { + in, out := &in.ComponentType, &out.ComponentType + *out = new(string) + **out = **in + } + if in.ContainerAppEnvironmentID != nil { + in, out := &in.ContainerAppEnvironmentID, &out.ContainerAppEnvironmentID + *out = new(string) + **out = **in + } + if in.ContainerAppEnvironmentIDRef != nil { + in, out := &in.ContainerAppEnvironmentIDRef, &out.ContainerAppEnvironmentIDRef + *out = new(v1.Reference) + (*in).DeepCopyInto(*out) + } + if in.ContainerAppEnvironmentIDSelector != nil { + in, out := &in.ContainerAppEnvironmentIDSelector, &out.ContainerAppEnvironmentIDSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } + if in.IgnoreErrors != nil { + in, out := &in.IgnoreErrors, &out.IgnoreErrors + *out = new(bool) + **out = **in + } + if in.InitTimeout != nil { + in, out := &in.InitTimeout, &out.InitTimeout + *out = new(string) + **out = **in + } + if in.Metadata != nil { + in, out := &in.Metadata, &out.Metadata + *out = make([]MetadataParameters, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.Scopes != nil { + in, out := &in.Scopes, &out.Scopes + *out = make([]*string, len(*in)) + for i := range *in { + if (*in)[i] != nil { + in, out := &(*in)[i], &(*out)[i] + *out = new(string) + **out = **in + } + } + } + if in.Secret != nil { + in, out := &in.Secret, &out.Secret + *out = make([]EnvironmentDaprComponentSecretParameters, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.Version != nil { + in, out := &in.Version, &out.Version + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentDaprComponentParameters. +func (in *EnvironmentDaprComponentParameters) DeepCopy() *EnvironmentDaprComponentParameters { + if in == nil { + return nil + } + out := new(EnvironmentDaprComponentParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *EnvironmentDaprComponentSecretInitParameters) DeepCopyInto(out *EnvironmentDaprComponentSecretInitParameters) { + *out = *in + if in.Identity != nil { + in, out := &in.Identity, &out.Identity + *out = new(string) + **out = **in + } + if in.KeyVaultSecretID != nil { + in, out := &in.KeyVaultSecretID, &out.KeyVaultSecretID + *out = new(string) + **out = **in + } + if in.Name != nil { + in, out := &in.Name, &out.Name + *out = new(string) + **out = **in + } + if in.ValueSecretRef != nil { + in, out := &in.ValueSecretRef, &out.ValueSecretRef + *out = new(v1.SecretKeySelector) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentDaprComponentSecretInitParameters. +func (in *EnvironmentDaprComponentSecretInitParameters) DeepCopy() *EnvironmentDaprComponentSecretInitParameters { + if in == nil { + return nil + } + out := new(EnvironmentDaprComponentSecretInitParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *EnvironmentDaprComponentSecretObservation) DeepCopyInto(out *EnvironmentDaprComponentSecretObservation) { + *out = *in + if in.Identity != nil { + in, out := &in.Identity, &out.Identity + *out = new(string) + **out = **in + } + if in.KeyVaultSecretID != nil { + in, out := &in.KeyVaultSecretID, &out.KeyVaultSecretID + *out = new(string) + **out = **in + } + if in.Name != nil { + in, out := &in.Name, &out.Name + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentDaprComponentSecretObservation. +func (in *EnvironmentDaprComponentSecretObservation) DeepCopy() *EnvironmentDaprComponentSecretObservation { + if in == nil { + return nil + } + out := new(EnvironmentDaprComponentSecretObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *EnvironmentDaprComponentSecretParameters) DeepCopyInto(out *EnvironmentDaprComponentSecretParameters) { + *out = *in + if in.Identity != nil { + in, out := &in.Identity, &out.Identity + *out = new(string) + **out = **in + } + if in.KeyVaultSecretID != nil { + in, out := &in.KeyVaultSecretID, &out.KeyVaultSecretID + *out = new(string) + **out = **in + } + if in.Name != nil { + in, out := &in.Name, &out.Name + *out = new(string) + **out = **in + } + if in.ValueSecretRef != nil { + in, out := &in.ValueSecretRef, &out.ValueSecretRef + *out = new(v1.SecretKeySelector) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentDaprComponentSecretParameters. +func (in *EnvironmentDaprComponentSecretParameters) DeepCopy() *EnvironmentDaprComponentSecretParameters { + if in == nil { + return nil + } + out := new(EnvironmentDaprComponentSecretParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *EnvironmentDaprComponentSpec) DeepCopyInto(out *EnvironmentDaprComponentSpec) { + *out = *in + in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) + in.ForProvider.DeepCopyInto(&out.ForProvider) + in.InitProvider.DeepCopyInto(&out.InitProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentDaprComponentSpec. +func (in *EnvironmentDaprComponentSpec) DeepCopy() *EnvironmentDaprComponentSpec { + if in == nil { + return nil + } + out := new(EnvironmentDaprComponentSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *EnvironmentDaprComponentStatus) DeepCopyInto(out *EnvironmentDaprComponentStatus) { + *out = *in + in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) + in.AtProvider.DeepCopyInto(&out.AtProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentDaprComponentStatus. +func (in *EnvironmentDaprComponentStatus) DeepCopy() *EnvironmentDaprComponentStatus { + if in == nil { + return nil + } + out := new(EnvironmentDaprComponentStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *EnvironmentInitParameters) DeepCopyInto(out *EnvironmentInitParameters) { + *out = *in + if in.DaprApplicationInsightsConnectionStringSecretRef != nil { + in, out := &in.DaprApplicationInsightsConnectionStringSecretRef, &out.DaprApplicationInsightsConnectionStringSecretRef + *out = new(v1.SecretKeySelector) + **out = **in + } + if in.InfrastructureResourceGroupName != nil { + in, out := &in.InfrastructureResourceGroupName, &out.InfrastructureResourceGroupName + *out = new(string) + **out = **in + } + if in.InfrastructureResourceGroupNameRef != nil { + in, out := &in.InfrastructureResourceGroupNameRef, &out.InfrastructureResourceGroupNameRef + *out = new(v1.Reference) + (*in).DeepCopyInto(*out) + } + if in.InfrastructureResourceGroupNameSelector != nil { + in, out := &in.InfrastructureResourceGroupNameSelector, &out.InfrastructureResourceGroupNameSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } + if in.InfrastructureSubnetID != nil { + in, out := &in.InfrastructureSubnetID, &out.InfrastructureSubnetID + *out = new(string) + **out = **in + } + if in.InfrastructureSubnetIDRef != nil { + in, out := &in.InfrastructureSubnetIDRef, &out.InfrastructureSubnetIDRef + *out = new(v1.Reference) + (*in).DeepCopyInto(*out) + } + if in.InfrastructureSubnetIDSelector != nil { + in, out := &in.InfrastructureSubnetIDSelector, &out.InfrastructureSubnetIDSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } + if in.InternalLoadBalancerEnabled != nil { + in, out := &in.InternalLoadBalancerEnabled, &out.InternalLoadBalancerEnabled + *out = new(bool) + **out = **in + } + if in.Location != nil { + in, out := &in.Location, &out.Location + *out = new(string) + **out = **in + } + if in.LogAnalyticsWorkspaceID != nil { + in, out := &in.LogAnalyticsWorkspaceID, &out.LogAnalyticsWorkspaceID + *out = new(string) + **out = **in + } + if in.LogAnalyticsWorkspaceIDRef != nil { + in, out := &in.LogAnalyticsWorkspaceIDRef, &out.LogAnalyticsWorkspaceIDRef + *out = new(v1.Reference) + (*in).DeepCopyInto(*out) + } + if in.LogAnalyticsWorkspaceIDSelector != nil { + in, out := &in.LogAnalyticsWorkspaceIDSelector, &out.LogAnalyticsWorkspaceIDSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } + if in.MutualTLSEnabled != nil { + in, out := &in.MutualTLSEnabled, &out.MutualTLSEnabled + *out = new(bool) + **out = **in + } + if in.Tags != nil { + in, out := &in.Tags, &out.Tags + *out = make(map[string]*string, len(*in)) + for key, val := range *in { + var outVal *string + if val == nil { + (*out)[key] = nil + } else { + inVal := (*in)[key] + in, out := &inVal, &outVal + *out = new(string) + **out = **in + } + (*out)[key] = outVal + } + } + if in.WorkloadProfile != nil { + in, out := &in.WorkloadProfile, &out.WorkloadProfile + *out = make([]WorkloadProfileInitParameters, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.ZoneRedundancyEnabled != nil { + in, out := &in.ZoneRedundancyEnabled, &out.ZoneRedundancyEnabled + *out = new(bool) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentInitParameters. +func (in *EnvironmentInitParameters) DeepCopy() *EnvironmentInitParameters { + if in == nil { + return nil + } + out := new(EnvironmentInitParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *EnvironmentList) DeepCopyInto(out *EnvironmentList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Environment, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentList. +func (in *EnvironmentList) DeepCopy() *EnvironmentList { + if in == nil { + return nil + } + out := new(EnvironmentList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *EnvironmentList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *EnvironmentObservation) DeepCopyInto(out *EnvironmentObservation) { + *out = *in + if in.CustomDomainVerificationID != nil { + in, out := &in.CustomDomainVerificationID, &out.CustomDomainVerificationID + *out = new(string) + **out = **in + } + if in.DefaultDomain != nil { + in, out := &in.DefaultDomain, &out.DefaultDomain + *out = new(string) + **out = **in + } + if in.DockerBridgeCidr != nil { + in, out := &in.DockerBridgeCidr, &out.DockerBridgeCidr + *out = new(string) + **out = **in + } + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } + if in.InfrastructureResourceGroupName != nil { + in, out := &in.InfrastructureResourceGroupName, &out.InfrastructureResourceGroupName + *out = new(string) + **out = **in + } + if in.InfrastructureSubnetID != nil { + in, out := &in.InfrastructureSubnetID, &out.InfrastructureSubnetID + *out = new(string) + **out = **in + } + if in.InternalLoadBalancerEnabled != nil { + in, out := &in.InternalLoadBalancerEnabled, &out.InternalLoadBalancerEnabled + *out = new(bool) + **out = **in + } + if in.Location != nil { + in, out := &in.Location, &out.Location + *out = new(string) + **out = **in + } + if in.LogAnalyticsWorkspaceID != nil { + in, out := &in.LogAnalyticsWorkspaceID, &out.LogAnalyticsWorkspaceID + *out = new(string) + **out = **in + } + if in.MutualTLSEnabled != nil { + in, out := &in.MutualTLSEnabled, &out.MutualTLSEnabled + *out = new(bool) + **out = **in + } + if in.PlatformReservedCidr != nil { + in, out := &in.PlatformReservedCidr, &out.PlatformReservedCidr + *out = new(string) + **out = **in + } + if in.PlatformReservedDNSIPAddress != nil { + in, out := &in.PlatformReservedDNSIPAddress, &out.PlatformReservedDNSIPAddress + *out = new(string) + **out = **in + } + if in.ResourceGroupName != nil { + in, out := &in.ResourceGroupName, &out.ResourceGroupName + *out = new(string) + **out = **in + } + if in.StaticIPAddress != nil { + in, out := &in.StaticIPAddress, &out.StaticIPAddress + *out = new(string) + **out = **in + } + if in.Tags != nil { + in, out := &in.Tags, &out.Tags + *out = make(map[string]*string, len(*in)) + for key, val := range *in { + var outVal *string + if val == nil { + (*out)[key] = nil + } else { + inVal := (*in)[key] + in, out := &inVal, &outVal + *out = new(string) + **out = **in + } + (*out)[key] = outVal + } + } + if in.WorkloadProfile != nil { + in, out := &in.WorkloadProfile, &out.WorkloadProfile + *out = make([]WorkloadProfileObservation, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.ZoneRedundancyEnabled != nil { + in, out := &in.ZoneRedundancyEnabled, &out.ZoneRedundancyEnabled + *out = new(bool) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentObservation. +func (in *EnvironmentObservation) DeepCopy() *EnvironmentObservation { + if in == nil { + return nil + } + out := new(EnvironmentObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *EnvironmentParameters) DeepCopyInto(out *EnvironmentParameters) { + *out = *in + if in.DaprApplicationInsightsConnectionStringSecretRef != nil { + in, out := &in.DaprApplicationInsightsConnectionStringSecretRef, &out.DaprApplicationInsightsConnectionStringSecretRef + *out = new(v1.SecretKeySelector) + **out = **in + } + if in.InfrastructureResourceGroupName != nil { + in, out := &in.InfrastructureResourceGroupName, &out.InfrastructureResourceGroupName + *out = new(string) + **out = **in + } + if in.InfrastructureResourceGroupNameRef != nil { + in, out := &in.InfrastructureResourceGroupNameRef, &out.InfrastructureResourceGroupNameRef + *out = new(v1.Reference) + (*in).DeepCopyInto(*out) + } + if in.InfrastructureResourceGroupNameSelector != nil { + in, out := &in.InfrastructureResourceGroupNameSelector, &out.InfrastructureResourceGroupNameSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } + if in.InfrastructureSubnetID != nil { + in, out := &in.InfrastructureSubnetID, &out.InfrastructureSubnetID + *out = new(string) + **out = **in + } + if in.InfrastructureSubnetIDRef != nil { + in, out := &in.InfrastructureSubnetIDRef, &out.InfrastructureSubnetIDRef + *out = new(v1.Reference) + (*in).DeepCopyInto(*out) + } + if in.InfrastructureSubnetIDSelector != nil { + in, out := &in.InfrastructureSubnetIDSelector, &out.InfrastructureSubnetIDSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } + if in.InternalLoadBalancerEnabled != nil { + in, out := &in.InternalLoadBalancerEnabled, &out.InternalLoadBalancerEnabled + *out = new(bool) + **out = **in + } + if in.Location != nil { + in, out := &in.Location, &out.Location + *out = new(string) + **out = **in + } + if in.LogAnalyticsWorkspaceID != nil { + in, out := &in.LogAnalyticsWorkspaceID, &out.LogAnalyticsWorkspaceID + *out = new(string) + **out = **in + } + if in.LogAnalyticsWorkspaceIDRef != nil { + in, out := &in.LogAnalyticsWorkspaceIDRef, &out.LogAnalyticsWorkspaceIDRef + *out = new(v1.Reference) + (*in).DeepCopyInto(*out) + } + if in.LogAnalyticsWorkspaceIDSelector != nil { + in, out := &in.LogAnalyticsWorkspaceIDSelector, &out.LogAnalyticsWorkspaceIDSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } + if in.MutualTLSEnabled != nil { + in, out := &in.MutualTLSEnabled, &out.MutualTLSEnabled + *out = new(bool) + **out = **in + } + if in.ResourceGroupName != nil { + in, out := &in.ResourceGroupName, &out.ResourceGroupName + *out = new(string) + **out = **in + } + if in.ResourceGroupNameRef != nil { + in, out := &in.ResourceGroupNameRef, &out.ResourceGroupNameRef + *out = new(v1.Reference) + (*in).DeepCopyInto(*out) + } + if in.ResourceGroupNameSelector != nil { + in, out := &in.ResourceGroupNameSelector, &out.ResourceGroupNameSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } + if in.Tags != nil { + in, out := &in.Tags, &out.Tags + *out = make(map[string]*string, len(*in)) + for key, val := range *in { + var outVal *string + if val == nil { + (*out)[key] = nil + } else { + inVal := (*in)[key] + in, out := &inVal, &outVal + *out = new(string) + **out = **in + } + (*out)[key] = outVal + } + } + if in.WorkloadProfile != nil { + in, out := &in.WorkloadProfile, &out.WorkloadProfile + *out = make([]WorkloadProfileParameters, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.ZoneRedundancyEnabled != nil { + in, out := &in.ZoneRedundancyEnabled, &out.ZoneRedundancyEnabled + *out = new(bool) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentParameters. +func (in *EnvironmentParameters) DeepCopy() *EnvironmentParameters { + if in == nil { + return nil + } + out := new(EnvironmentParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *EnvironmentSpec) DeepCopyInto(out *EnvironmentSpec) { + *out = *in + in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) + in.ForProvider.DeepCopyInto(&out.ForProvider) + in.InitProvider.DeepCopyInto(&out.InitProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentSpec. +func (in *EnvironmentSpec) DeepCopy() *EnvironmentSpec { + if in == nil { + return nil + } + out := new(EnvironmentSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *EnvironmentStatus) DeepCopyInto(out *EnvironmentStatus) { + *out = *in + in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) + in.AtProvider.DeepCopyInto(&out.AtProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentStatus. +func (in *EnvironmentStatus) DeepCopy() *EnvironmentStatus { + if in == nil { + return nil + } + out := new(EnvironmentStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *EnvironmentStorage) DeepCopyInto(out *EnvironmentStorage) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentStorage. +func (in *EnvironmentStorage) DeepCopy() *EnvironmentStorage { + if in == nil { + return nil + } + out := new(EnvironmentStorage) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *EnvironmentStorage) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *EnvironmentStorageInitParameters) DeepCopyInto(out *EnvironmentStorageInitParameters) { + *out = *in + out.AccessKeySecretRef = in.AccessKeySecretRef + if in.AccessMode != nil { + in, out := &in.AccessMode, &out.AccessMode + *out = new(string) + **out = **in + } + if in.AccountName != nil { + in, out := &in.AccountName, &out.AccountName + *out = new(string) + **out = **in + } + if in.AccountNameRef != nil { + in, out := &in.AccountNameRef, &out.AccountNameRef + *out = new(v1.Reference) + (*in).DeepCopyInto(*out) + } + if in.AccountNameSelector != nil { + in, out := &in.AccountNameSelector, &out.AccountNameSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } + if in.ShareName != nil { + in, out := &in.ShareName, &out.ShareName + *out = new(string) + **out = **in + } + if in.ShareNameRef != nil { + in, out := &in.ShareNameRef, &out.ShareNameRef + *out = new(v1.Reference) + (*in).DeepCopyInto(*out) + } + if in.ShareNameSelector != nil { + in, out := &in.ShareNameSelector, &out.ShareNameSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentStorageInitParameters. +func (in *EnvironmentStorageInitParameters) DeepCopy() *EnvironmentStorageInitParameters { + if in == nil { + return nil + } + out := new(EnvironmentStorageInitParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *EnvironmentStorageList) DeepCopyInto(out *EnvironmentStorageList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]EnvironmentStorage, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentStorageList. +func (in *EnvironmentStorageList) DeepCopy() *EnvironmentStorageList { + if in == nil { + return nil } - if in.Location != nil { - in, out := &in.Location, &out.Location - *out = new(string) - **out = **in + out := new(EnvironmentStorageList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *EnvironmentStorageList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c } - if in.LogAnalyticsWorkspaceID != nil { - in, out := &in.LogAnalyticsWorkspaceID, &out.LogAnalyticsWorkspaceID + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *EnvironmentStorageObservation) DeepCopyInto(out *EnvironmentStorageObservation) { + *out = *in + if in.AccessMode != nil { + in, out := &in.AccessMode, &out.AccessMode *out = new(string) **out = **in } - if in.MutualTLSEnabled != nil { - in, out := &in.MutualTLSEnabled, &out.MutualTLSEnabled - *out = new(bool) - **out = **in - } - if in.PlatformReservedCidr != nil { - in, out := &in.PlatformReservedCidr, &out.PlatformReservedCidr + if in.AccountName != nil { + in, out := &in.AccountName, &out.AccountName *out = new(string) **out = **in } - if in.PlatformReservedDNSIPAddress != nil { - in, out := &in.PlatformReservedDNSIPAddress, &out.PlatformReservedDNSIPAddress + if in.ContainerAppEnvironmentID != nil { + in, out := &in.ContainerAppEnvironmentID, &out.ContainerAppEnvironmentID *out = new(string) **out = **in } - if in.ResourceGroupName != nil { - in, out := &in.ResourceGroupName, &out.ResourceGroupName + if in.ID != nil { + in, out := &in.ID, &out.ID *out = new(string) **out = **in } - if in.StaticIPAddress != nil { - in, out := &in.StaticIPAddress, &out.StaticIPAddress + if in.ShareName != nil { + in, out := &in.ShareName, &out.ShareName *out = new(string) **out = **in } - if in.Tags != nil { - in, out := &in.Tags, &out.Tags - *out = make(map[string]*string, len(*in)) - for key, val := range *in { - var outVal *string - if val == nil { - (*out)[key] = nil - } else { - inVal := (*in)[key] - in, out := &inVal, &outVal - *out = new(string) - **out = **in - } - (*out)[key] = outVal - } - } - if in.WorkloadProfile != nil { - in, out := &in.WorkloadProfile, &out.WorkloadProfile - *out = make([]WorkloadProfileObservation, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.ZoneRedundancyEnabled != nil { - in, out := &in.ZoneRedundancyEnabled, &out.ZoneRedundancyEnabled - *out = new(bool) - **out = **in - } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentObservation. -func (in *EnvironmentObservation) DeepCopy() *EnvironmentObservation { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentStorageObservation. +func (in *EnvironmentStorageObservation) DeepCopy() *EnvironmentStorageObservation { if in == nil { return nil } - out := new(EnvironmentObservation) + out := new(EnvironmentStorageObservation) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *EnvironmentParameters) DeepCopyInto(out *EnvironmentParameters) { +func (in *EnvironmentStorageParameters) DeepCopyInto(out *EnvironmentStorageParameters) { *out = *in - if in.DaprApplicationInsightsConnectionStringSecretRef != nil { - in, out := &in.DaprApplicationInsightsConnectionStringSecretRef, &out.DaprApplicationInsightsConnectionStringSecretRef - *out = new(v1.SecretKeySelector) - **out = **in - } - if in.InfrastructureResourceGroupName != nil { - in, out := &in.InfrastructureResourceGroupName, &out.InfrastructureResourceGroupName + out.AccessKeySecretRef = in.AccessKeySecretRef + if in.AccessMode != nil { + in, out := &in.AccessMode, &out.AccessMode *out = new(string) **out = **in } - if in.InfrastructureResourceGroupNameRef != nil { - in, out := &in.InfrastructureResourceGroupNameRef, &out.InfrastructureResourceGroupNameRef - *out = new(v1.Reference) - (*in).DeepCopyInto(*out) - } - if in.InfrastructureResourceGroupNameSelector != nil { - in, out := &in.InfrastructureResourceGroupNameSelector, &out.InfrastructureResourceGroupNameSelector - *out = new(v1.Selector) - (*in).DeepCopyInto(*out) - } - if in.InfrastructureSubnetID != nil { - in, out := &in.InfrastructureSubnetID, &out.InfrastructureSubnetID + if in.AccountName != nil { + in, out := &in.AccountName, &out.AccountName *out = new(string) **out = **in } - if in.InfrastructureSubnetIDRef != nil { - in, out := &in.InfrastructureSubnetIDRef, &out.InfrastructureSubnetIDRef + if in.AccountNameRef != nil { + in, out := &in.AccountNameRef, &out.AccountNameRef *out = new(v1.Reference) (*in).DeepCopyInto(*out) } - if in.InfrastructureSubnetIDSelector != nil { - in, out := &in.InfrastructureSubnetIDSelector, &out.InfrastructureSubnetIDSelector + if in.AccountNameSelector != nil { + in, out := &in.AccountNameSelector, &out.AccountNameSelector *out = new(v1.Selector) (*in).DeepCopyInto(*out) } - if in.InternalLoadBalancerEnabled != nil { - in, out := &in.InternalLoadBalancerEnabled, &out.InternalLoadBalancerEnabled - *out = new(bool) - **out = **in - } - if in.Location != nil { - in, out := &in.Location, &out.Location - *out = new(string) - **out = **in - } - if in.LogAnalyticsWorkspaceID != nil { - in, out := &in.LogAnalyticsWorkspaceID, &out.LogAnalyticsWorkspaceID + if in.ContainerAppEnvironmentID != nil { + in, out := &in.ContainerAppEnvironmentID, &out.ContainerAppEnvironmentID *out = new(string) **out = **in } - if in.LogAnalyticsWorkspaceIDRef != nil { - in, out := &in.LogAnalyticsWorkspaceIDRef, &out.LogAnalyticsWorkspaceIDRef + if in.ContainerAppEnvironmentIDRef != nil { + in, out := &in.ContainerAppEnvironmentIDRef, &out.ContainerAppEnvironmentIDRef *out = new(v1.Reference) (*in).DeepCopyInto(*out) } - if in.LogAnalyticsWorkspaceIDSelector != nil { - in, out := &in.LogAnalyticsWorkspaceIDSelector, &out.LogAnalyticsWorkspaceIDSelector + if in.ContainerAppEnvironmentIDSelector != nil { + in, out := &in.ContainerAppEnvironmentIDSelector, &out.ContainerAppEnvironmentIDSelector *out = new(v1.Selector) (*in).DeepCopyInto(*out) } - if in.MutualTLSEnabled != nil { - in, out := &in.MutualTLSEnabled, &out.MutualTLSEnabled - *out = new(bool) - **out = **in - } - if in.ResourceGroupName != nil { - in, out := &in.ResourceGroupName, &out.ResourceGroupName + if in.ShareName != nil { + in, out := &in.ShareName, &out.ShareName *out = new(string) **out = **in } - if in.ResourceGroupNameRef != nil { - in, out := &in.ResourceGroupNameRef, &out.ResourceGroupNameRef + if in.ShareNameRef != nil { + in, out := &in.ShareNameRef, &out.ShareNameRef *out = new(v1.Reference) (*in).DeepCopyInto(*out) } - if in.ResourceGroupNameSelector != nil { - in, out := &in.ResourceGroupNameSelector, &out.ResourceGroupNameSelector + if in.ShareNameSelector != nil { + in, out := &in.ShareNameSelector, &out.ShareNameSelector *out = new(v1.Selector) (*in).DeepCopyInto(*out) } - if in.Tags != nil { - in, out := &in.Tags, &out.Tags - *out = make(map[string]*string, len(*in)) - for key, val := range *in { - var outVal *string - if val == nil { - (*out)[key] = nil - } else { - inVal := (*in)[key] - in, out := &inVal, &outVal - *out = new(string) - **out = **in - } - (*out)[key] = outVal - } - } - if in.WorkloadProfile != nil { - in, out := &in.WorkloadProfile, &out.WorkloadProfile - *out = make([]WorkloadProfileParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.ZoneRedundancyEnabled != nil { - in, out := &in.ZoneRedundancyEnabled, &out.ZoneRedundancyEnabled - *out = new(bool) - **out = **in - } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentParameters. -func (in *EnvironmentParameters) DeepCopy() *EnvironmentParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentStorageParameters. +func (in *EnvironmentStorageParameters) DeepCopy() *EnvironmentStorageParameters { if in == nil { return nil } - out := new(EnvironmentParameters) + out := new(EnvironmentStorageParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *EnvironmentSpec) DeepCopyInto(out *EnvironmentSpec) { +func (in *EnvironmentStorageSpec) DeepCopyInto(out *EnvironmentStorageSpec) { *out = *in in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) in.ForProvider.DeepCopyInto(&out.ForProvider) in.InitProvider.DeepCopyInto(&out.InitProvider) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentSpec. -func (in *EnvironmentSpec) DeepCopy() *EnvironmentSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentStorageSpec. +func (in *EnvironmentStorageSpec) DeepCopy() *EnvironmentStorageSpec { if in == nil { return nil } - out := new(EnvironmentSpec) + out := new(EnvironmentStorageSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *EnvironmentStatus) DeepCopyInto(out *EnvironmentStatus) { +func (in *EnvironmentStorageStatus) DeepCopyInto(out *EnvironmentStorageStatus) { *out = *in in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) in.AtProvider.DeepCopyInto(&out.AtProvider) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentStatus. -func (in *EnvironmentStatus) DeepCopy() *EnvironmentStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentStorageStatus. +func (in *EnvironmentStorageStatus) DeepCopy() *EnvironmentStorageStatus { if in == nil { return nil } - out := new(EnvironmentStatus) + out := new(EnvironmentStorageStatus) in.DeepCopyInto(out) return out } @@ -3052,6 +4381,96 @@ func (in *LivenessProbeParameters) DeepCopy() *LivenessProbeParameters { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *MetadataInitParameters) DeepCopyInto(out *MetadataInitParameters) { + *out = *in + if in.Name != nil { + in, out := &in.Name, &out.Name + *out = new(string) + **out = **in + } + if in.SecretName != nil { + in, out := &in.SecretName, &out.SecretName + *out = new(string) + **out = **in + } + if in.Value != nil { + in, out := &in.Value, &out.Value + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetadataInitParameters. +func (in *MetadataInitParameters) DeepCopy() *MetadataInitParameters { + if in == nil { + return nil + } + out := new(MetadataInitParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *MetadataObservation) DeepCopyInto(out *MetadataObservation) { + *out = *in + if in.Name != nil { + in, out := &in.Name, &out.Name + *out = new(string) + **out = **in + } + if in.SecretName != nil { + in, out := &in.SecretName, &out.SecretName + *out = new(string) + **out = **in + } + if in.Value != nil { + in, out := &in.Value, &out.Value + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetadataObservation. +func (in *MetadataObservation) DeepCopy() *MetadataObservation { + if in == nil { + return nil + } + out := new(MetadataObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *MetadataParameters) DeepCopyInto(out *MetadataParameters) { + *out = *in + if in.Name != nil { + in, out := &in.Name, &out.Name + *out = new(string) + **out = **in + } + if in.SecretName != nil { + in, out := &in.SecretName, &out.SecretName + *out = new(string) + **out = **in + } + if in.Value != nil { + in, out := &in.Value, &out.Value + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetadataParameters. +func (in *MetadataParameters) DeepCopy() *MetadataParameters { + if in == nil { + return nil + } + out := new(MetadataParameters) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ReadinessProbeHeaderInitParameters) DeepCopyInto(out *ReadinessProbeHeaderInitParameters) { *out = *in diff --git a/apis/containerapp/v1beta1/zz_generated.managed.go b/apis/containerapp/v1beta1/zz_generated.managed.go index 5959129bf..06325af51 100644 --- a/apis/containerapp/v1beta1/zz_generated.managed.go +++ b/apis/containerapp/v1beta1/zz_generated.managed.go @@ -67,6 +67,66 @@ func (mg *ContainerApp) SetWriteConnectionSecretToReference(r *xpv1.SecretRefere mg.Spec.WriteConnectionSecretToReference = r } +// GetCondition of this CustomDomain. +func (mg *CustomDomain) GetCondition(ct xpv1.ConditionType) xpv1.Condition { + return mg.Status.GetCondition(ct) +} + +// GetDeletionPolicy of this CustomDomain. +func (mg *CustomDomain) GetDeletionPolicy() xpv1.DeletionPolicy { + return mg.Spec.DeletionPolicy +} + +// GetManagementPolicies of this CustomDomain. +func (mg *CustomDomain) GetManagementPolicies() xpv1.ManagementPolicies { + return mg.Spec.ManagementPolicies +} + +// GetProviderConfigReference of this CustomDomain. +func (mg *CustomDomain) GetProviderConfigReference() *xpv1.Reference { + return mg.Spec.ProviderConfigReference +} + +// GetPublishConnectionDetailsTo of this CustomDomain. +func (mg *CustomDomain) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + +// GetWriteConnectionSecretToReference of this CustomDomain. +func (mg *CustomDomain) GetWriteConnectionSecretToReference() *xpv1.SecretReference { + return mg.Spec.WriteConnectionSecretToReference +} + +// SetConditions of this CustomDomain. +func (mg *CustomDomain) SetConditions(c ...xpv1.Condition) { + mg.Status.SetConditions(c...) +} + +// SetDeletionPolicy of this CustomDomain. +func (mg *CustomDomain) SetDeletionPolicy(r xpv1.DeletionPolicy) { + mg.Spec.DeletionPolicy = r +} + +// SetManagementPolicies of this CustomDomain. +func (mg *CustomDomain) SetManagementPolicies(r xpv1.ManagementPolicies) { + mg.Spec.ManagementPolicies = r +} + +// SetProviderConfigReference of this CustomDomain. +func (mg *CustomDomain) SetProviderConfigReference(r *xpv1.Reference) { + mg.Spec.ProviderConfigReference = r +} + +// SetPublishConnectionDetailsTo of this CustomDomain. +func (mg *CustomDomain) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + +// SetWriteConnectionSecretToReference of this CustomDomain. +func (mg *CustomDomain) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { + mg.Spec.WriteConnectionSecretToReference = r +} + // GetCondition of this Environment. func (mg *Environment) GetCondition(ct xpv1.ConditionType) xpv1.Condition { return mg.Status.GetCondition(ct) @@ -126,3 +186,243 @@ func (mg *Environment) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDe func (mg *Environment) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r } + +// GetCondition of this EnvironmentCertificate. +func (mg *EnvironmentCertificate) GetCondition(ct xpv1.ConditionType) xpv1.Condition { + return mg.Status.GetCondition(ct) +} + +// GetDeletionPolicy of this EnvironmentCertificate. +func (mg *EnvironmentCertificate) GetDeletionPolicy() xpv1.DeletionPolicy { + return mg.Spec.DeletionPolicy +} + +// GetManagementPolicies of this EnvironmentCertificate. +func (mg *EnvironmentCertificate) GetManagementPolicies() xpv1.ManagementPolicies { + return mg.Spec.ManagementPolicies +} + +// GetProviderConfigReference of this EnvironmentCertificate. +func (mg *EnvironmentCertificate) GetProviderConfigReference() *xpv1.Reference { + return mg.Spec.ProviderConfigReference +} + +// GetPublishConnectionDetailsTo of this EnvironmentCertificate. +func (mg *EnvironmentCertificate) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + +// GetWriteConnectionSecretToReference of this EnvironmentCertificate. +func (mg *EnvironmentCertificate) GetWriteConnectionSecretToReference() *xpv1.SecretReference { + return mg.Spec.WriteConnectionSecretToReference +} + +// SetConditions of this EnvironmentCertificate. +func (mg *EnvironmentCertificate) SetConditions(c ...xpv1.Condition) { + mg.Status.SetConditions(c...) +} + +// SetDeletionPolicy of this EnvironmentCertificate. +func (mg *EnvironmentCertificate) SetDeletionPolicy(r xpv1.DeletionPolicy) { + mg.Spec.DeletionPolicy = r +} + +// SetManagementPolicies of this EnvironmentCertificate. +func (mg *EnvironmentCertificate) SetManagementPolicies(r xpv1.ManagementPolicies) { + mg.Spec.ManagementPolicies = r +} + +// SetProviderConfigReference of this EnvironmentCertificate. +func (mg *EnvironmentCertificate) SetProviderConfigReference(r *xpv1.Reference) { + mg.Spec.ProviderConfigReference = r +} + +// SetPublishConnectionDetailsTo of this EnvironmentCertificate. +func (mg *EnvironmentCertificate) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + +// SetWriteConnectionSecretToReference of this EnvironmentCertificate. +func (mg *EnvironmentCertificate) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { + mg.Spec.WriteConnectionSecretToReference = r +} + +// GetCondition of this EnvironmentCustomDomain. +func (mg *EnvironmentCustomDomain) GetCondition(ct xpv1.ConditionType) xpv1.Condition { + return mg.Status.GetCondition(ct) +} + +// GetDeletionPolicy of this EnvironmentCustomDomain. +func (mg *EnvironmentCustomDomain) GetDeletionPolicy() xpv1.DeletionPolicy { + return mg.Spec.DeletionPolicy +} + +// GetManagementPolicies of this EnvironmentCustomDomain. +func (mg *EnvironmentCustomDomain) GetManagementPolicies() xpv1.ManagementPolicies { + return mg.Spec.ManagementPolicies +} + +// GetProviderConfigReference of this EnvironmentCustomDomain. +func (mg *EnvironmentCustomDomain) GetProviderConfigReference() *xpv1.Reference { + return mg.Spec.ProviderConfigReference +} + +// GetPublishConnectionDetailsTo of this EnvironmentCustomDomain. +func (mg *EnvironmentCustomDomain) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + +// GetWriteConnectionSecretToReference of this EnvironmentCustomDomain. +func (mg *EnvironmentCustomDomain) GetWriteConnectionSecretToReference() *xpv1.SecretReference { + return mg.Spec.WriteConnectionSecretToReference +} + +// SetConditions of this EnvironmentCustomDomain. +func (mg *EnvironmentCustomDomain) SetConditions(c ...xpv1.Condition) { + mg.Status.SetConditions(c...) +} + +// SetDeletionPolicy of this EnvironmentCustomDomain. +func (mg *EnvironmentCustomDomain) SetDeletionPolicy(r xpv1.DeletionPolicy) { + mg.Spec.DeletionPolicy = r +} + +// SetManagementPolicies of this EnvironmentCustomDomain. +func (mg *EnvironmentCustomDomain) SetManagementPolicies(r xpv1.ManagementPolicies) { + mg.Spec.ManagementPolicies = r +} + +// SetProviderConfigReference of this EnvironmentCustomDomain. +func (mg *EnvironmentCustomDomain) SetProviderConfigReference(r *xpv1.Reference) { + mg.Spec.ProviderConfigReference = r +} + +// SetPublishConnectionDetailsTo of this EnvironmentCustomDomain. +func (mg *EnvironmentCustomDomain) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + +// SetWriteConnectionSecretToReference of this EnvironmentCustomDomain. +func (mg *EnvironmentCustomDomain) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { + mg.Spec.WriteConnectionSecretToReference = r +} + +// GetCondition of this EnvironmentDaprComponent. +func (mg *EnvironmentDaprComponent) GetCondition(ct xpv1.ConditionType) xpv1.Condition { + return mg.Status.GetCondition(ct) +} + +// GetDeletionPolicy of this EnvironmentDaprComponent. +func (mg *EnvironmentDaprComponent) GetDeletionPolicy() xpv1.DeletionPolicy { + return mg.Spec.DeletionPolicy +} + +// GetManagementPolicies of this EnvironmentDaprComponent. +func (mg *EnvironmentDaprComponent) GetManagementPolicies() xpv1.ManagementPolicies { + return mg.Spec.ManagementPolicies +} + +// GetProviderConfigReference of this EnvironmentDaprComponent. +func (mg *EnvironmentDaprComponent) GetProviderConfigReference() *xpv1.Reference { + return mg.Spec.ProviderConfigReference +} + +// GetPublishConnectionDetailsTo of this EnvironmentDaprComponent. +func (mg *EnvironmentDaprComponent) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + +// GetWriteConnectionSecretToReference of this EnvironmentDaprComponent. +func (mg *EnvironmentDaprComponent) GetWriteConnectionSecretToReference() *xpv1.SecretReference { + return mg.Spec.WriteConnectionSecretToReference +} + +// SetConditions of this EnvironmentDaprComponent. +func (mg *EnvironmentDaprComponent) SetConditions(c ...xpv1.Condition) { + mg.Status.SetConditions(c...) +} + +// SetDeletionPolicy of this EnvironmentDaprComponent. +func (mg *EnvironmentDaprComponent) SetDeletionPolicy(r xpv1.DeletionPolicy) { + mg.Spec.DeletionPolicy = r +} + +// SetManagementPolicies of this EnvironmentDaprComponent. +func (mg *EnvironmentDaprComponent) SetManagementPolicies(r xpv1.ManagementPolicies) { + mg.Spec.ManagementPolicies = r +} + +// SetProviderConfigReference of this EnvironmentDaprComponent. +func (mg *EnvironmentDaprComponent) SetProviderConfigReference(r *xpv1.Reference) { + mg.Spec.ProviderConfigReference = r +} + +// SetPublishConnectionDetailsTo of this EnvironmentDaprComponent. +func (mg *EnvironmentDaprComponent) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + +// SetWriteConnectionSecretToReference of this EnvironmentDaprComponent. +func (mg *EnvironmentDaprComponent) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { + mg.Spec.WriteConnectionSecretToReference = r +} + +// GetCondition of this EnvironmentStorage. +func (mg *EnvironmentStorage) GetCondition(ct xpv1.ConditionType) xpv1.Condition { + return mg.Status.GetCondition(ct) +} + +// GetDeletionPolicy of this EnvironmentStorage. +func (mg *EnvironmentStorage) GetDeletionPolicy() xpv1.DeletionPolicy { + return mg.Spec.DeletionPolicy +} + +// GetManagementPolicies of this EnvironmentStorage. +func (mg *EnvironmentStorage) GetManagementPolicies() xpv1.ManagementPolicies { + return mg.Spec.ManagementPolicies +} + +// GetProviderConfigReference of this EnvironmentStorage. +func (mg *EnvironmentStorage) GetProviderConfigReference() *xpv1.Reference { + return mg.Spec.ProviderConfigReference +} + +// GetPublishConnectionDetailsTo of this EnvironmentStorage. +func (mg *EnvironmentStorage) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + +// GetWriteConnectionSecretToReference of this EnvironmentStorage. +func (mg *EnvironmentStorage) GetWriteConnectionSecretToReference() *xpv1.SecretReference { + return mg.Spec.WriteConnectionSecretToReference +} + +// SetConditions of this EnvironmentStorage. +func (mg *EnvironmentStorage) SetConditions(c ...xpv1.Condition) { + mg.Status.SetConditions(c...) +} + +// SetDeletionPolicy of this EnvironmentStorage. +func (mg *EnvironmentStorage) SetDeletionPolicy(r xpv1.DeletionPolicy) { + mg.Spec.DeletionPolicy = r +} + +// SetManagementPolicies of this EnvironmentStorage. +func (mg *EnvironmentStorage) SetManagementPolicies(r xpv1.ManagementPolicies) { + mg.Spec.ManagementPolicies = r +} + +// SetProviderConfigReference of this EnvironmentStorage. +func (mg *EnvironmentStorage) SetProviderConfigReference(r *xpv1.Reference) { + mg.Spec.ProviderConfigReference = r +} + +// SetPublishConnectionDetailsTo of this EnvironmentStorage. +func (mg *EnvironmentStorage) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + +// SetWriteConnectionSecretToReference of this EnvironmentStorage. +func (mg *EnvironmentStorage) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { + mg.Spec.WriteConnectionSecretToReference = r +} diff --git a/apis/containerapp/v1beta1/zz_generated.managedlist.go b/apis/containerapp/v1beta1/zz_generated.managedlist.go index 658dad437..5354ef6d6 100644 --- a/apis/containerapp/v1beta1/zz_generated.managedlist.go +++ b/apis/containerapp/v1beta1/zz_generated.managedlist.go @@ -16,6 +16,42 @@ func (l *ContainerAppList) GetItems() []resource.Managed { return items } +// GetItems of this CustomDomainList. +func (l *CustomDomainList) GetItems() []resource.Managed { + items := make([]resource.Managed, len(l.Items)) + for i := range l.Items { + items[i] = &l.Items[i] + } + return items +} + +// GetItems of this EnvironmentCertificateList. +func (l *EnvironmentCertificateList) GetItems() []resource.Managed { + items := make([]resource.Managed, len(l.Items)) + for i := range l.Items { + items[i] = &l.Items[i] + } + return items +} + +// GetItems of this EnvironmentCustomDomainList. +func (l *EnvironmentCustomDomainList) GetItems() []resource.Managed { + items := make([]resource.Managed, len(l.Items)) + for i := range l.Items { + items[i] = &l.Items[i] + } + return items +} + +// GetItems of this EnvironmentDaprComponentList. +func (l *EnvironmentDaprComponentList) GetItems() []resource.Managed { + items := make([]resource.Managed, len(l.Items)) + for i := range l.Items { + items[i] = &l.Items[i] + } + return items +} + // GetItems of this EnvironmentList. func (l *EnvironmentList) GetItems() []resource.Managed { items := make([]resource.Managed, len(l.Items)) @@ -24,3 +60,12 @@ func (l *EnvironmentList) GetItems() []resource.Managed { } return items } + +// GetItems of this EnvironmentStorageList. +func (l *EnvironmentStorageList) GetItems() []resource.Managed { + items := make([]resource.Managed, len(l.Items)) + for i := range l.Items { + items[i] = &l.Items[i] + } + return items +} diff --git a/apis/containerapp/v1beta1/zz_generated.resolvers.go b/apis/containerapp/v1beta1/zz_generated.resolvers.go index 99f280b59..075cabfb6 100644 --- a/apis/containerapp/v1beta1/zz_generated.resolvers.go +++ b/apis/containerapp/v1beta1/zz_generated.resolvers.go @@ -12,8 +12,9 @@ import ( resource "github.com/crossplane/upjet/pkg/resource" errors "github.com/pkg/errors" - xpresource "github.com/crossplane/crossplane-runtime/pkg/resource" rconfig "github.com/upbound/provider-azure/apis/rconfig" + + xpresource "github.com/crossplane/crossplane-runtime/pkg/resource" apisresolver "github.com/upbound/provider-azure/internal/apis" client "sigs.k8s.io/controller-runtime/pkg/client" ) @@ -87,6 +88,75 @@ func (mg *ContainerApp) ResolveReferences( // ResolveReferences of this Containe return nil } +// ResolveReferences of this CustomDomain. +func (mg *CustomDomain) ResolveReferences(ctx context.Context, c client.Reader) error { + var m xpresource.Managed + var l xpresource.ManagedList + r := reference.NewAPIResolver(c, mg) + + var rsp reference.ResolutionResponse + var err error + { + m, l, err = apisresolver.GetManagedResource("containerapp.azure.upbound.io", "v1beta1", "EnvironmentCertificate", "EnvironmentCertificateList") + if err != nil { + return errors.Wrap(err, "failed to get the reference target managed resource and its list for reference resolution") + } + + rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ + CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.ContainerAppEnvironmentCertificateID), + Extract: resource.ExtractResourceID(), + Reference: mg.Spec.ForProvider.ContainerAppEnvironmentCertificateIDRef, + Selector: mg.Spec.ForProvider.ContainerAppEnvironmentCertificateIDSelector, + To: reference.To{List: l, Managed: m}, + }) + } + if err != nil { + return errors.Wrap(err, "mg.Spec.ForProvider.ContainerAppEnvironmentCertificateID") + } + mg.Spec.ForProvider.ContainerAppEnvironmentCertificateID = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.ForProvider.ContainerAppEnvironmentCertificateIDRef = rsp.ResolvedReference + { + m, l, err = apisresolver.GetManagedResource("containerapp.azure.upbound.io", "v1beta2", "ContainerApp", "ContainerAppList") + if err != nil { + return errors.Wrap(err, "failed to get the reference target managed resource and its list for reference resolution") + } + + rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ + CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.ContainerAppID), + Extract: resource.ExtractResourceID(), + Reference: mg.Spec.ForProvider.ContainerAppIDRef, + Selector: mg.Spec.ForProvider.ContainerAppIDSelector, + To: reference.To{List: l, Managed: m}, + }) + } + if err != nil { + return errors.Wrap(err, "mg.Spec.ForProvider.ContainerAppID") + } + mg.Spec.ForProvider.ContainerAppID = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.ForProvider.ContainerAppIDRef = rsp.ResolvedReference + { + m, l, err = apisresolver.GetManagedResource("containerapp.azure.upbound.io", "v1beta1", "EnvironmentCertificate", "EnvironmentCertificateList") + if err != nil { + return errors.Wrap(err, "failed to get the reference target managed resource and its list for reference resolution") + } + + rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ + CurrentValue: reference.FromPtrValue(mg.Spec.InitProvider.ContainerAppEnvironmentCertificateID), + Extract: resource.ExtractResourceID(), + Reference: mg.Spec.InitProvider.ContainerAppEnvironmentCertificateIDRef, + Selector: mg.Spec.InitProvider.ContainerAppEnvironmentCertificateIDSelector, + To: reference.To{List: l, Managed: m}, + }) + } + if err != nil { + return errors.Wrap(err, "mg.Spec.InitProvider.ContainerAppEnvironmentCertificateID") + } + mg.Spec.InitProvider.ContainerAppEnvironmentCertificateID = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.InitProvider.ContainerAppEnvironmentCertificateIDRef = rsp.ResolvedReference + + return nil +} + // ResolveReferences of this Environment. func (mg *Environment) ResolveReferences(ctx context.Context, c client.Reader) error { var m xpresource.Managed @@ -231,3 +301,222 @@ func (mg *Environment) ResolveReferences(ctx context.Context, c client.Reader) e return nil } + +// ResolveReferences of this EnvironmentCertificate. +func (mg *EnvironmentCertificate) ResolveReferences(ctx context.Context, c client.Reader) error { + var m xpresource.Managed + var l xpresource.ManagedList + r := reference.NewAPIResolver(c, mg) + + var rsp reference.ResolutionResponse + var err error + { + m, l, err = apisresolver.GetManagedResource("containerapp.azure.upbound.io", "v1beta1", "Environment", "EnvironmentList") + if err != nil { + return errors.Wrap(err, "failed to get the reference target managed resource and its list for reference resolution") + } + + rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ + CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.ContainerAppEnvironmentID), + Extract: resource.ExtractResourceID(), + Reference: mg.Spec.ForProvider.ContainerAppEnvironmentIDRef, + Selector: mg.Spec.ForProvider.ContainerAppEnvironmentIDSelector, + To: reference.To{List: l, Managed: m}, + }) + } + if err != nil { + return errors.Wrap(err, "mg.Spec.ForProvider.ContainerAppEnvironmentID") + } + mg.Spec.ForProvider.ContainerAppEnvironmentID = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.ForProvider.ContainerAppEnvironmentIDRef = rsp.ResolvedReference + + return nil +} + +// ResolveReferences of this EnvironmentCustomDomain. +func (mg *EnvironmentCustomDomain) ResolveReferences(ctx context.Context, c client.Reader) error { + var m xpresource.Managed + var l xpresource.ManagedList + r := reference.NewAPIResolver(c, mg) + + var rsp reference.ResolutionResponse + var err error + { + m, l, err = apisresolver.GetManagedResource("containerapp.azure.upbound.io", "v1beta1", "Environment", "EnvironmentList") + if err != nil { + return errors.Wrap(err, "failed to get the reference target managed resource and its list for reference resolution") + } + + rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ + CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.ContainerAppEnvironmentID), + Extract: resource.ExtractResourceID(), + Reference: mg.Spec.ForProvider.ContainerAppEnvironmentIDRef, + Selector: mg.Spec.ForProvider.ContainerAppEnvironmentIDSelector, + To: reference.To{List: l, Managed: m}, + }) + } + if err != nil { + return errors.Wrap(err, "mg.Spec.ForProvider.ContainerAppEnvironmentID") + } + mg.Spec.ForProvider.ContainerAppEnvironmentID = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.ForProvider.ContainerAppEnvironmentIDRef = rsp.ResolvedReference + { + m, l, err = apisresolver.GetManagedResource("containerapp.azure.upbound.io", "v1beta1", "Environment", "EnvironmentList") + if err != nil { + return errors.Wrap(err, "failed to get the reference target managed resource and its list for reference resolution") + } + + rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ + CurrentValue: reference.FromPtrValue(mg.Spec.InitProvider.ContainerAppEnvironmentID), + Extract: resource.ExtractResourceID(), + Reference: mg.Spec.InitProvider.ContainerAppEnvironmentIDRef, + Selector: mg.Spec.InitProvider.ContainerAppEnvironmentIDSelector, + To: reference.To{List: l, Managed: m}, + }) + } + if err != nil { + return errors.Wrap(err, "mg.Spec.InitProvider.ContainerAppEnvironmentID") + } + mg.Spec.InitProvider.ContainerAppEnvironmentID = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.InitProvider.ContainerAppEnvironmentIDRef = rsp.ResolvedReference + + return nil +} + +// ResolveReferences of this EnvironmentDaprComponent. +func (mg *EnvironmentDaprComponent) ResolveReferences(ctx context.Context, c client.Reader) error { + var m xpresource.Managed + var l xpresource.ManagedList + r := reference.NewAPIResolver(c, mg) + + var rsp reference.ResolutionResponse + var err error + { + m, l, err = apisresolver.GetManagedResource("containerapp.azure.upbound.io", "v1beta1", "Environment", "EnvironmentList") + if err != nil { + return errors.Wrap(err, "failed to get the reference target managed resource and its list for reference resolution") + } + + rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ + CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.ContainerAppEnvironmentID), + Extract: resource.ExtractResourceID(), + Reference: mg.Spec.ForProvider.ContainerAppEnvironmentIDRef, + Selector: mg.Spec.ForProvider.ContainerAppEnvironmentIDSelector, + To: reference.To{List: l, Managed: m}, + }) + } + if err != nil { + return errors.Wrap(err, "mg.Spec.ForProvider.ContainerAppEnvironmentID") + } + mg.Spec.ForProvider.ContainerAppEnvironmentID = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.ForProvider.ContainerAppEnvironmentIDRef = rsp.ResolvedReference + + return nil +} + +// ResolveReferences of this EnvironmentStorage. +func (mg *EnvironmentStorage) ResolveReferences(ctx context.Context, c client.Reader) error { + var m xpresource.Managed + var l xpresource.ManagedList + r := reference.NewAPIResolver(c, mg) + + var rsp reference.ResolutionResponse + var err error + { + m, l, err = apisresolver.GetManagedResource("storage.azure.upbound.io", "v1beta2", "Account", "AccountList") + if err != nil { + return errors.Wrap(err, "failed to get the reference target managed resource and its list for reference resolution") + } + + rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ + CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.AccountName), + Extract: reference.ExternalName(), + Reference: mg.Spec.ForProvider.AccountNameRef, + Selector: mg.Spec.ForProvider.AccountNameSelector, + To: reference.To{List: l, Managed: m}, + }) + } + if err != nil { + return errors.Wrap(err, "mg.Spec.ForProvider.AccountName") + } + mg.Spec.ForProvider.AccountName = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.ForProvider.AccountNameRef = rsp.ResolvedReference + { + m, l, err = apisresolver.GetManagedResource("containerapp.azure.upbound.io", "v1beta1", "Environment", "EnvironmentList") + if err != nil { + return errors.Wrap(err, "failed to get the reference target managed resource and its list for reference resolution") + } + + rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ + CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.ContainerAppEnvironmentID), + Extract: resource.ExtractResourceID(), + Reference: mg.Spec.ForProvider.ContainerAppEnvironmentIDRef, + Selector: mg.Spec.ForProvider.ContainerAppEnvironmentIDSelector, + To: reference.To{List: l, Managed: m}, + }) + } + if err != nil { + return errors.Wrap(err, "mg.Spec.ForProvider.ContainerAppEnvironmentID") + } + mg.Spec.ForProvider.ContainerAppEnvironmentID = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.ForProvider.ContainerAppEnvironmentIDRef = rsp.ResolvedReference + { + m, l, err = apisresolver.GetManagedResource("storage.azure.upbound.io", "v1beta1", "Share", "ShareList") + if err != nil { + return errors.Wrap(err, "failed to get the reference target managed resource and its list for reference resolution") + } + + rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ + CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.ShareName), + Extract: reference.ExternalName(), + Reference: mg.Spec.ForProvider.ShareNameRef, + Selector: mg.Spec.ForProvider.ShareNameSelector, + To: reference.To{List: l, Managed: m}, + }) + } + if err != nil { + return errors.Wrap(err, "mg.Spec.ForProvider.ShareName") + } + mg.Spec.ForProvider.ShareName = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.ForProvider.ShareNameRef = rsp.ResolvedReference + { + m, l, err = apisresolver.GetManagedResource("storage.azure.upbound.io", "v1beta2", "Account", "AccountList") + if err != nil { + return errors.Wrap(err, "failed to get the reference target managed resource and its list for reference resolution") + } + + rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ + CurrentValue: reference.FromPtrValue(mg.Spec.InitProvider.AccountName), + Extract: reference.ExternalName(), + Reference: mg.Spec.InitProvider.AccountNameRef, + Selector: mg.Spec.InitProvider.AccountNameSelector, + To: reference.To{List: l, Managed: m}, + }) + } + if err != nil { + return errors.Wrap(err, "mg.Spec.InitProvider.AccountName") + } + mg.Spec.InitProvider.AccountName = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.InitProvider.AccountNameRef = rsp.ResolvedReference + { + m, l, err = apisresolver.GetManagedResource("storage.azure.upbound.io", "v1beta1", "Share", "ShareList") + if err != nil { + return errors.Wrap(err, "failed to get the reference target managed resource and its list for reference resolution") + } + + rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ + CurrentValue: reference.FromPtrValue(mg.Spec.InitProvider.ShareName), + Extract: reference.ExternalName(), + Reference: mg.Spec.InitProvider.ShareNameRef, + Selector: mg.Spec.InitProvider.ShareNameSelector, + To: reference.To{List: l, Managed: m}, + }) + } + if err != nil { + return errors.Wrap(err, "mg.Spec.InitProvider.ShareName") + } + mg.Spec.InitProvider.ShareName = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.InitProvider.ShareNameRef = rsp.ResolvedReference + + return nil +} diff --git a/config/containerapp/config.go b/config/containerapp/config.go index e42984248..3a06e87d4 100644 --- a/config/containerapp/config.go +++ b/config/containerapp/config.go @@ -9,16 +9,43 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) -// Configure configures kubernetes group +const group = "containerapp" + +// Configure configures containerapp group func Configure(p *config.Provider) { p.AddResourceConfigurator("azurerm_container_app", func(r *config.Resource) { - r.ShortGroup = "containerapp" + r.ShortGroup = group r.TerraformResource.Schema["secret"].Elem.(*schema.Resource). Schema["name"].Sensitive = true }) p.AddResourceConfigurator("azurerm_container_app_environment", func(r *config.Resource) { - r.ShortGroup = "containerapp" + r.ShortGroup = group r.Kind = "Environment" }) + + p.AddResourceConfigurator("azurerm_container_app_custom_domain", func(r *config.Resource) { + r.ShortGroup = group + r.Kind = "CustomDomain" + }) + + p.AddResourceConfigurator("azurerm_container_app_environment_certificate", func(r *config.Resource) { + r.ShortGroup = group + r.Kind = "EnvironmentCertificate" + }) + + p.AddResourceConfigurator("azurerm_container_app_environment_custom_domain", func(r *config.Resource) { + r.ShortGroup = group + r.Kind = "EnvironmentCustomDomain" + }) + + p.AddResourceConfigurator("azurerm_container_app_environment_dapr_component", func(r *config.Resource) { + r.ShortGroup = group + r.Kind = "EnvironmentDaprComponent" + }) + + p.AddResourceConfigurator("azurerm_container_app_environment_storage", func(r *config.Resource) { + r.ShortGroup = group + r.Kind = "EnvironmentStorage" + }) } diff --git a/config/externalname.go b/config/externalname.go index fc4f86a79..ff6740c79 100644 --- a/config/externalname.go +++ b/config/externalname.go @@ -392,8 +392,23 @@ var TerraformPluginSDKExternalNameConfigs = map[string]config.ExternalName{ "azurerm_linux_web_app_slot": config.IdentifierFromProvider, // containerapp - "azurerm_container_app": config.TemplatedStringAsIdentifier("name", "/subscriptions/{{ .setup.configuration.subscription_id }}/resourceGroups/{{ .parameters.resource_group_name }}/providers/Microsoft.App/containerApps/{{ .external_name }}"), + // + // /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resGroup1/providers/Microsoft.App/containerApps/myContainerApp + "azurerm_container_app": config.TemplatedStringAsIdentifier("name", "/subscriptions/{{ .setup.configuration.subscription_id }}/resourceGroups/{{ .parameters.resource_group_name }}/providers/Microsoft.App/containerApps/{{ .external_name }}"), + // /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resGroup1/providers/Microsoft.App/managedEnvironments/myEnvironment "azurerm_container_app_environment": config.TemplatedStringAsIdentifier("name", "/subscriptions/{{ .setup.configuration.subscription_id }}/resourceGroups/{{ .parameters.resource_group_name }}/providers/Microsoft.App/managedEnvironments/{{ .external_name }}"), + // /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resGroup1/providers/Microsoft.App/containerApps/myContainerApp/customDomainName/mycustomdomain.example.com + "azurerm_container_app_custom_domain": config.TemplatedStringAsIdentifier("name", "{{ .parameters.container_app_id }}/customDomainName/{{ .external_name }}"), + // /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resGroup1/providers/Microsoft.App/managedEnvironments/myenv/certificates/mycertificate + "azurerm_container_app_environment_certificate": config.TemplatedStringAsIdentifier("name", "{{ .parameters.container_app_environment_id }}/certificates/{{ .external_name }}"), + // /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resGroup1/providers/Microsoft.App/managedEnvironments/myEnvironment + "azurerm_container_app_environment_custom_domain": config.IdentifierFromProvider, + // /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resGroup1/providers/Microsoft.App/managedEnvironments/myenv/daprComponents/mydaprcomponent + "azurerm_container_app_environment_dapr_component": config.TemplatedStringAsIdentifier("name", "{{ .parameters.container_app_environment_id }}/daprComponents/{{ .external_name }}"), + // /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resGroup1/providers/Microsoft.App/managedEnvironments/myEnvironment/storages/mystorage + "azurerm_container_app_environment_storage": config.TemplatedStringAsIdentifier("name", "{{ .parameters.container_app_environment_id }}/storages/{{ .external_name }}"), + // /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-resources/providers/Microsoft.App/jobs/example-container-app-job + // "azurerm_container_app_job": config.TemplatedStringAsIdentifier("name", "/subscriptions/{{ .setup.configuration.subscription_id }}/resourceGroups/{{ .parameters.resource_group_name }}/providers/Microsoft.App/jobs/{{ .external_name }}"), // containerservice "azurerm_kubernetes_cluster": config.TemplatedStringAsIdentifier("name", "/subscriptions/{{ .setup.configuration.subscription_id }}/resourceGroups/{{ .parameters.resource_group_name }}/providers/Microsoft.ContainerService/managedClusters/{{ .external_name }}"), diff --git a/config/generated.lst b/config/generated.lst index a790df1f1..3fa11d677 100644 --- a/config/generated.lst +++ b/config/generated.lst @@ -1 +1 @@ -["azurerm_advanced_threat_protection","azurerm_analysis_services_server","azurerm_api_management","azurerm_api_management_api","azurerm_api_management_api_diagnostic","azurerm_api_management_api_operation","azurerm_api_management_api_operation_policy","azurerm_api_management_api_operation_tag","azurerm_api_management_api_policy","azurerm_api_management_api_release","azurerm_api_management_api_schema","azurerm_api_management_api_tag","azurerm_api_management_api_version_set","azurerm_api_management_authorization_server","azurerm_api_management_backend","azurerm_api_management_certificate","azurerm_api_management_custom_domain","azurerm_api_management_diagnostic","azurerm_api_management_email_template","azurerm_api_management_gateway","azurerm_api_management_gateway_api","azurerm_api_management_global_schema","azurerm_api_management_identity_provider_aad","azurerm_api_management_identity_provider_facebook","azurerm_api_management_identity_provider_google","azurerm_api_management_identity_provider_microsoft","azurerm_api_management_identity_provider_twitter","azurerm_api_management_logger","azurerm_api_management_named_value","azurerm_api_management_notification_recipient_email","azurerm_api_management_notification_recipient_user","azurerm_api_management_openid_connect_provider","azurerm_api_management_policy","azurerm_api_management_product","azurerm_api_management_product_api","azurerm_api_management_product_policy","azurerm_api_management_product_tag","azurerm_api_management_redis_cache","azurerm_api_management_subscription","azurerm_api_management_tag","azurerm_api_management_user","azurerm_app_configuration","azurerm_app_service_certificate_order","azurerm_app_service_plan","azurerm_application_gateway","azurerm_application_insights","azurerm_application_insights_analytics_item","azurerm_application_insights_api_key","azurerm_application_insights_smart_detection_rule","azurerm_application_insights_standard_web_test","azurerm_application_insights_web_test","azurerm_application_insights_workbook","azurerm_application_insights_workbook_template","azurerm_application_security_group","azurerm_attestation_provider","azurerm_automation_account","azurerm_automation_connection","azurerm_automation_connection_classic_certificate","azurerm_automation_connection_type","azurerm_automation_credential","azurerm_automation_hybrid_runbook_worker_group","azurerm_automation_module","azurerm_automation_runbook","azurerm_automation_schedule","azurerm_automation_variable_bool","azurerm_automation_variable_datetime","azurerm_automation_variable_int","azurerm_automation_variable_string","azurerm_automation_webhook","azurerm_availability_set","azurerm_backup_container_storage_account","azurerm_backup_policy_file_share","azurerm_backup_policy_vm","azurerm_backup_policy_vm_workload","azurerm_backup_protected_file_share","azurerm_backup_protected_vm","azurerm_bastion_host","azurerm_bot_channel_alexa","azurerm_bot_channel_directline","azurerm_bot_channel_line","azurerm_bot_channel_ms_teams","azurerm_bot_channel_slack","azurerm_bot_channel_sms","azurerm_bot_channel_web_chat","azurerm_bot_channels_registration","azurerm_bot_connection","azurerm_bot_web_app","azurerm_capacity_reservation","azurerm_capacity_reservation_group","azurerm_cdn_endpoint","azurerm_cdn_frontdoor_custom_domain","azurerm_cdn_frontdoor_custom_domain_association","azurerm_cdn_frontdoor_endpoint","azurerm_cdn_frontdoor_firewall_policy","azurerm_cdn_frontdoor_origin","azurerm_cdn_frontdoor_origin_group","azurerm_cdn_frontdoor_profile","azurerm_cdn_frontdoor_route","azurerm_cdn_frontdoor_rule","azurerm_cdn_frontdoor_rule_set","azurerm_cdn_frontdoor_security_policy","azurerm_cdn_profile","azurerm_cognitive_account","azurerm_cognitive_deployment","azurerm_communication_service","azurerm_confidential_ledger","azurerm_consumption_budget_management_group","azurerm_consumption_budget_resource_group","azurerm_consumption_budget_subscription","azurerm_container_app","azurerm_container_app_environment","azurerm_container_connected_registry","azurerm_container_registry","azurerm_container_registry_agent_pool","azurerm_container_registry_scope_map","azurerm_container_registry_token","azurerm_container_registry_token_password","azurerm_container_registry_webhook","azurerm_cosmosdb_account","azurerm_cosmosdb_cassandra_cluster","azurerm_cosmosdb_cassandra_datacenter","azurerm_cosmosdb_cassandra_keyspace","azurerm_cosmosdb_cassandra_table","azurerm_cosmosdb_gremlin_database","azurerm_cosmosdb_gremlin_graph","azurerm_cosmosdb_mongo_collection","azurerm_cosmosdb_mongo_database","azurerm_cosmosdb_sql_container","azurerm_cosmosdb_sql_database","azurerm_cosmosdb_sql_dedicated_gateway","azurerm_cosmosdb_sql_function","azurerm_cosmosdb_sql_role_assignment","azurerm_cosmosdb_sql_role_definition","azurerm_cosmosdb_sql_stored_procedure","azurerm_cosmosdb_sql_trigger","azurerm_cosmosdb_table","azurerm_cost_anomaly_alert","azurerm_custom_provider","azurerm_data_factory","azurerm_data_factory_custom_dataset","azurerm_data_factory_data_flow","azurerm_data_factory_dataset_azure_blob","azurerm_data_factory_dataset_binary","azurerm_data_factory_dataset_cosmosdb_sqlapi","azurerm_data_factory_dataset_delimited_text","azurerm_data_factory_dataset_http","azurerm_data_factory_dataset_json","azurerm_data_factory_dataset_mysql","azurerm_data_factory_dataset_parquet","azurerm_data_factory_dataset_postgresql","azurerm_data_factory_dataset_snowflake","azurerm_data_factory_dataset_sql_server_table","azurerm_data_factory_integration_runtime_azure","azurerm_data_factory_integration_runtime_azure_ssis","azurerm_data_factory_integration_runtime_managed","azurerm_data_factory_integration_runtime_self_hosted","azurerm_data_factory_linked_custom_service","azurerm_data_factory_linked_service_azure_blob_storage","azurerm_data_factory_linked_service_azure_databricks","azurerm_data_factory_linked_service_azure_file_storage","azurerm_data_factory_linked_service_azure_function","azurerm_data_factory_linked_service_azure_search","azurerm_data_factory_linked_service_azure_sql_database","azurerm_data_factory_linked_service_azure_table_storage","azurerm_data_factory_linked_service_cosmosdb","azurerm_data_factory_linked_service_cosmosdb_mongoapi","azurerm_data_factory_linked_service_data_lake_storage_gen2","azurerm_data_factory_linked_service_key_vault","azurerm_data_factory_linked_service_kusto","azurerm_data_factory_linked_service_mysql","azurerm_data_factory_linked_service_odata","azurerm_data_factory_linked_service_odbc","azurerm_data_factory_linked_service_postgresql","azurerm_data_factory_linked_service_sftp","azurerm_data_factory_linked_service_snowflake","azurerm_data_factory_linked_service_sql_server","azurerm_data_factory_linked_service_synapse","azurerm_data_factory_linked_service_web","azurerm_data_factory_managed_private_endpoint","azurerm_data_factory_pipeline","azurerm_data_factory_trigger_blob_event","azurerm_data_factory_trigger_custom_event","azurerm_data_factory_trigger_schedule","azurerm_data_protection_backup_instance_blob_storage","azurerm_data_protection_backup_instance_disk","azurerm_data_protection_backup_instance_kubernetes_cluster","azurerm_data_protection_backup_instance_postgresql","azurerm_data_protection_backup_policy_blob_storage","azurerm_data_protection_backup_policy_disk","azurerm_data_protection_backup_policy_kubernetes_cluster","azurerm_data_protection_backup_policy_postgresql","azurerm_data_protection_backup_vault","azurerm_data_protection_resource_guard","azurerm_data_share","azurerm_data_share_account","azurerm_data_share_dataset_blob_storage","azurerm_data_share_dataset_data_lake_gen2","azurerm_data_share_dataset_kusto_cluster","azurerm_data_share_dataset_kusto_database","azurerm_database_migration_project","azurerm_database_migration_service","azurerm_databox_edge_device","azurerm_databricks_access_connector","azurerm_databricks_workspace","azurerm_databricks_workspace_customer_managed_key","azurerm_databricks_workspace_root_dbfs_customer_managed_key","azurerm_dedicated_host","azurerm_dev_test_global_vm_shutdown_schedule","azurerm_dev_test_lab","azurerm_dev_test_linux_virtual_machine","azurerm_dev_test_policy","azurerm_dev_test_schedule","azurerm_dev_test_virtual_network","azurerm_dev_test_windows_virtual_machine","azurerm_digital_twins_instance","azurerm_disk_access","azurerm_disk_encryption_set","azurerm_disk_pool","azurerm_dns_a_record","azurerm_dns_aaaa_record","azurerm_dns_caa_record","azurerm_dns_cname_record","azurerm_dns_mx_record","azurerm_dns_ns_record","azurerm_dns_ptr_record","azurerm_dns_srv_record","azurerm_dns_txt_record","azurerm_dns_zone","azurerm_elastic_cloud_elasticsearch","azurerm_eventgrid_domain","azurerm_eventgrid_domain_topic","azurerm_eventgrid_event_subscription","azurerm_eventgrid_system_topic","azurerm_eventgrid_topic","azurerm_eventhub","azurerm_eventhub_authorization_rule","azurerm_eventhub_consumer_group","azurerm_eventhub_namespace","azurerm_eventhub_namespace_authorization_rule","azurerm_eventhub_namespace_disaster_recovery_config","azurerm_eventhub_namespace_schema_group","azurerm_express_route_circuit","azurerm_express_route_circuit_authorization","azurerm_express_route_circuit_connection","azurerm_express_route_circuit_peering","azurerm_express_route_connection","azurerm_express_route_gateway","azurerm_express_route_port","azurerm_federated_identity_credential","azurerm_firewall","azurerm_firewall_application_rule_collection","azurerm_firewall_nat_rule_collection","azurerm_firewall_network_rule_collection","azurerm_firewall_policy","azurerm_firewall_policy_rule_collection_group","azurerm_fluid_relay_server","azurerm_frontdoor","azurerm_frontdoor_custom_https_configuration","azurerm_frontdoor_firewall_policy","azurerm_frontdoor_rules_engine","azurerm_function_app","azurerm_function_app_active_slot","azurerm_function_app_function","azurerm_function_app_hybrid_connection","azurerm_function_app_slot","azurerm_gallery_application","azurerm_gallery_application_version","azurerm_hdinsight_hadoop_cluster","azurerm_hdinsight_hbase_cluster","azurerm_hdinsight_interactive_query_cluster","azurerm_hdinsight_kafka_cluster","azurerm_hdinsight_spark_cluster","azurerm_healthbot","azurerm_healthcare_dicom_service","azurerm_healthcare_fhir_service","azurerm_healthcare_medtech_service","azurerm_healthcare_medtech_service_fhir_destination","azurerm_healthcare_service","azurerm_healthcare_workspace","azurerm_hpc_cache","azurerm_hpc_cache_access_policy","azurerm_hpc_cache_blob_nfs_target","azurerm_hpc_cache_blob_target","azurerm_hpc_cache_nfs_target","azurerm_image","azurerm_integration_service_environment","azurerm_iot_security_device_group","azurerm_iot_security_solution","azurerm_iot_time_series_insights_event_source_eventhub","azurerm_iot_time_series_insights_event_source_iothub","azurerm_iot_time_series_insights_gen2_environment","azurerm_iot_time_series_insights_reference_data_set","azurerm_iot_time_series_insights_standard_environment","azurerm_iotcentral_application","azurerm_iotcentral_application_network_rule_set","azurerm_iothub","azurerm_iothub_certificate","azurerm_iothub_consumer_group","azurerm_iothub_device_update_account","azurerm_iothub_device_update_instance","azurerm_iothub_dps","azurerm_iothub_dps_certificate","azurerm_iothub_dps_shared_access_policy","azurerm_iothub_endpoint_eventhub","azurerm_iothub_endpoint_servicebus_queue","azurerm_iothub_endpoint_servicebus_topic","azurerm_iothub_endpoint_storage_container","azurerm_iothub_enrichment","azurerm_iothub_fallback_route","azurerm_iothub_route","azurerm_iothub_shared_access_policy","azurerm_ip_group","azurerm_key_vault","azurerm_key_vault_access_policy","azurerm_key_vault_certificate","azurerm_key_vault_certificate_contacts","azurerm_key_vault_certificate_issuer","azurerm_key_vault_key","azurerm_key_vault_managed_hardware_security_module","azurerm_key_vault_managed_storage_account","azurerm_key_vault_managed_storage_account_sas_token_definition","azurerm_key_vault_secret","azurerm_kubernetes_cluster","azurerm_kubernetes_cluster_extension","azurerm_kubernetes_cluster_node_pool","azurerm_kubernetes_fleet_manager","azurerm_kusto_attached_database_configuration","azurerm_kusto_cluster","azurerm_kusto_cluster_managed_private_endpoint","azurerm_kusto_cluster_principal_assignment","azurerm_kusto_database","azurerm_kusto_database_principal_assignment","azurerm_kusto_eventgrid_data_connection","azurerm_kusto_eventhub_data_connection","azurerm_kusto_iothub_data_connection","azurerm_lab_service_lab","azurerm_lab_service_plan","azurerm_lb","azurerm_lb_backend_address_pool","azurerm_lb_backend_address_pool_address","azurerm_lb_nat_pool","azurerm_lb_nat_rule","azurerm_lb_outbound_rule","azurerm_lb_probe","azurerm_lb_rule","azurerm_linux_function_app","azurerm_linux_function_app_slot","azurerm_linux_virtual_machine","azurerm_linux_virtual_machine_scale_set","azurerm_linux_web_app","azurerm_linux_web_app_slot","azurerm_load_test","azurerm_local_network_gateway","azurerm_log_analytics_data_export_rule","azurerm_log_analytics_datasource_windows_event","azurerm_log_analytics_datasource_windows_performance_counter","azurerm_log_analytics_linked_service","azurerm_log_analytics_linked_storage_account","azurerm_log_analytics_query_pack","azurerm_log_analytics_query_pack_query","azurerm_log_analytics_saved_search","azurerm_log_analytics_solution","azurerm_log_analytics_workspace","azurerm_logic_app_action_custom","azurerm_logic_app_action_http","azurerm_logic_app_integration_account","azurerm_logic_app_integration_account_batch_configuration","azurerm_logic_app_integration_account_partner","azurerm_logic_app_integration_account_schema","azurerm_logic_app_integration_account_session","azurerm_logic_app_trigger_custom","azurerm_logic_app_trigger_http_request","azurerm_logic_app_trigger_recurrence","azurerm_logic_app_workflow","azurerm_logz_monitor","azurerm_logz_sub_account","azurerm_logz_sub_account_tag_rule","azurerm_logz_tag_rule","azurerm_machine_learning_compute_cluster","azurerm_machine_learning_compute_instance","azurerm_machine_learning_synapse_spark","azurerm_machine_learning_workspace","azurerm_maintenance_assignment_dedicated_host","azurerm_maintenance_assignment_virtual_machine","azurerm_maintenance_configuration","azurerm_managed_application_definition","azurerm_managed_disk","azurerm_managed_disk_sas_token","azurerm_management_group","azurerm_management_group_subscription_association","azurerm_management_lock","azurerm_maps_account","azurerm_maps_creator","azurerm_mariadb_configuration","azurerm_mariadb_database","azurerm_mariadb_firewall_rule","azurerm_mariadb_server","azurerm_mariadb_virtual_network_rule","azurerm_marketplace_agreement","azurerm_media_asset","azurerm_media_asset_filter","azurerm_media_content_key_policy","azurerm_media_job","azurerm_media_live_event","azurerm_media_live_event_output","azurerm_media_services_account","azurerm_media_services_account_filter","azurerm_media_streaming_endpoint","azurerm_media_streaming_locator","azurerm_media_streaming_policy","azurerm_media_transform","azurerm_monitor_action_group","azurerm_monitor_action_rule_action_group","azurerm_monitor_action_rule_suppression","azurerm_monitor_activity_log_alert","azurerm_monitor_alert_processing_rule_action_group","azurerm_monitor_alert_processing_rule_suppression","azurerm_monitor_autoscale_setting","azurerm_monitor_data_collection_endpoint","azurerm_monitor_data_collection_rule","azurerm_monitor_data_collection_rule_association","azurerm_monitor_diagnostic_setting","azurerm_monitor_metric_alert","azurerm_monitor_private_link_scope","azurerm_monitor_private_link_scoped_service","azurerm_monitor_scheduled_query_rules_alert","azurerm_monitor_scheduled_query_rules_alert_v2","azurerm_monitor_scheduled_query_rules_log","azurerm_monitor_smart_detector_alert_rule","azurerm_mssql_database","azurerm_mssql_database_extended_auditing_policy","azurerm_mssql_database_vulnerability_assessment_rule_baseline","azurerm_mssql_elasticpool","azurerm_mssql_failover_group","azurerm_mssql_firewall_rule","azurerm_mssql_job_agent","azurerm_mssql_job_credential","azurerm_mssql_managed_database","azurerm_mssql_managed_instance","azurerm_mssql_managed_instance_active_directory_administrator","azurerm_mssql_managed_instance_failover_group","azurerm_mssql_managed_instance_vulnerability_assessment","azurerm_mssql_outbound_firewall_rule","azurerm_mssql_server","azurerm_mssql_server_dns_alias","azurerm_mssql_server_microsoft_support_auditing_policy","azurerm_mssql_server_security_alert_policy","azurerm_mssql_server_transparent_data_encryption","azurerm_mssql_server_vulnerability_assessment","azurerm_mssql_virtual_network_rule","azurerm_mysql_active_directory_administrator","azurerm_mysql_configuration","azurerm_mysql_database","azurerm_mysql_firewall_rule","azurerm_mysql_flexible_database","azurerm_mysql_flexible_server","azurerm_mysql_flexible_server_configuration","azurerm_mysql_flexible_server_firewall_rule","azurerm_mysql_server","azurerm_mysql_virtual_network_rule","azurerm_nat_gateway","azurerm_nat_gateway_public_ip_association","azurerm_nat_gateway_public_ip_prefix_association","azurerm_netapp_account","azurerm_netapp_pool","azurerm_netapp_snapshot","azurerm_netapp_snapshot_policy","azurerm_netapp_volume","azurerm_network_connection_monitor","azurerm_network_ddos_protection_plan","azurerm_network_interface","azurerm_network_interface_application_security_group_association","azurerm_network_interface_backend_address_pool_association","azurerm_network_interface_nat_rule_association","azurerm_network_interface_security_group_association","azurerm_network_manager","azurerm_network_manager_management_group_connection","azurerm_network_manager_network_group","azurerm_network_manager_static_member","azurerm_network_manager_subscription_connection","azurerm_network_packet_capture","azurerm_network_profile","azurerm_network_security_group","azurerm_network_security_rule","azurerm_network_watcher","azurerm_network_watcher_flow_log","azurerm_notification_hub","azurerm_notification_hub_authorization_rule","azurerm_notification_hub_namespace","azurerm_orbital_contact_profile","azurerm_orbital_spacecraft","azurerm_orchestrated_virtual_machine_scale_set","azurerm_pim_active_role_assignment","azurerm_pim_eligible_role_assignment","azurerm_point_to_site_vpn_gateway","azurerm_policy_definition","azurerm_policy_virtual_machine_configuration_assignment","azurerm_portal_dashboard","azurerm_postgresql_active_directory_administrator","azurerm_postgresql_configuration","azurerm_postgresql_database","azurerm_postgresql_firewall_rule","azurerm_postgresql_flexible_server","azurerm_postgresql_flexible_server_active_directory_administrator","azurerm_postgresql_flexible_server_configuration","azurerm_postgresql_flexible_server_database","azurerm_postgresql_flexible_server_firewall_rule","azurerm_postgresql_server","azurerm_postgresql_server_key","azurerm_postgresql_virtual_network_rule","azurerm_powerbi_embedded","azurerm_private_dns_a_record","azurerm_private_dns_aaaa_record","azurerm_private_dns_cname_record","azurerm_private_dns_mx_record","azurerm_private_dns_ptr_record","azurerm_private_dns_resolver","azurerm_private_dns_srv_record","azurerm_private_dns_txt_record","azurerm_private_dns_zone","azurerm_private_dns_zone_virtual_network_link","azurerm_private_endpoint","azurerm_private_endpoint_application_security_group_association","azurerm_private_link_service","azurerm_proximity_placement_group","azurerm_public_ip","azurerm_public_ip_prefix","azurerm_purview_account","azurerm_recovery_services_vault","azurerm_redis_cache","azurerm_redis_enterprise_cluster","azurerm_redis_enterprise_database","azurerm_redis_firewall_rule","azurerm_redis_linked_server","azurerm_relay_hybrid_connection","azurerm_relay_hybrid_connection_authorization_rule","azurerm_relay_namespace","azurerm_relay_namespace_authorization_rule","azurerm_resource_deployment_script_azure_cli","azurerm_resource_deployment_script_azure_power_shell","azurerm_resource_group","azurerm_resource_group_cost_management_export","azurerm_resource_group_policy_assignment","azurerm_resource_group_template_deployment","azurerm_resource_policy_assignment","azurerm_resource_policy_exemption","azurerm_resource_policy_remediation","azurerm_resource_provider_registration","azurerm_role_assignment","azurerm_role_definition","azurerm_route","azurerm_route_filter","azurerm_route_map","azurerm_route_server","azurerm_route_server_bgp_connection","azurerm_route_table","azurerm_search_service","azurerm_search_shared_private_link_service","azurerm_security_center_assessment","azurerm_security_center_assessment_policy","azurerm_security_center_auto_provisioning","azurerm_security_center_contact","azurerm_security_center_server_vulnerability_assessment","azurerm_security_center_server_vulnerability_assessment_virtual_machine","azurerm_security_center_setting","azurerm_security_center_storage_defender","azurerm_security_center_subscription_pricing","azurerm_security_center_workspace","azurerm_sentinel_alert_rule_fusion","azurerm_sentinel_alert_rule_machine_learning_behavior_analytics","azurerm_sentinel_alert_rule_ms_security_incident","azurerm_sentinel_automation_rule","azurerm_sentinel_data_connector_iot","azurerm_sentinel_log_analytics_workspace_onboarding","azurerm_sentinel_watchlist","azurerm_service_fabric_cluster","azurerm_service_fabric_managed_cluster","azurerm_service_plan","azurerm_servicebus_namespace","azurerm_servicebus_namespace_authorization_rule","azurerm_servicebus_namespace_disaster_recovery_config","azurerm_servicebus_namespace_network_rule_set","azurerm_servicebus_queue","azurerm_servicebus_queue_authorization_rule","azurerm_servicebus_subscription","azurerm_servicebus_subscription_rule","azurerm_servicebus_topic","azurerm_servicebus_topic_authorization_rule","azurerm_shared_image","azurerm_shared_image_gallery","azurerm_signalr_service","azurerm_signalr_service_network_acl","azurerm_signalr_shared_private_link_resource","azurerm_site_recovery_fabric","azurerm_site_recovery_network_mapping","azurerm_site_recovery_protection_container","azurerm_site_recovery_protection_container_mapping","azurerm_site_recovery_replication_policy","azurerm_snapshot","azurerm_source_control_token","azurerm_spatial_anchors_account","azurerm_spring_cloud_accelerator","azurerm_spring_cloud_active_deployment","azurerm_spring_cloud_api_portal","azurerm_spring_cloud_api_portal_custom_domain","azurerm_spring_cloud_app","azurerm_spring_cloud_app_cosmosdb_association","azurerm_spring_cloud_app_mysql_association","azurerm_spring_cloud_app_redis_association","azurerm_spring_cloud_application_live_view","azurerm_spring_cloud_build_deployment","azurerm_spring_cloud_build_pack_binding","azurerm_spring_cloud_builder","azurerm_spring_cloud_certificate","azurerm_spring_cloud_configuration_service","azurerm_spring_cloud_connection","azurerm_spring_cloud_container_deployment","azurerm_spring_cloud_custom_domain","azurerm_spring_cloud_customized_accelerator","azurerm_spring_cloud_dev_tool_portal","azurerm_spring_cloud_gateway","azurerm_spring_cloud_gateway_custom_domain","azurerm_spring_cloud_java_deployment","azurerm_spring_cloud_service","azurerm_spring_cloud_storage","azurerm_ssh_public_key","azurerm_stack_hci_cluster","azurerm_static_site","azurerm_storage_account","azurerm_storage_account_local_user","azurerm_storage_account_network_rules","azurerm_storage_blob","azurerm_storage_blob_inventory_policy","azurerm_storage_container","azurerm_storage_data_lake_gen2_filesystem","azurerm_storage_data_lake_gen2_path","azurerm_storage_encryption_scope","azurerm_storage_management_policy","azurerm_storage_object_replication","azurerm_storage_queue","azurerm_storage_share","azurerm_storage_share_directory","azurerm_storage_sync","azurerm_storage_table","azurerm_storage_table_entity","azurerm_stream_analytics_cluster","azurerm_stream_analytics_function_javascript_uda","azurerm_stream_analytics_job","azurerm_stream_analytics_managed_private_endpoint","azurerm_stream_analytics_output_blob","azurerm_stream_analytics_output_eventhub","azurerm_stream_analytics_output_function","azurerm_stream_analytics_output_mssql","azurerm_stream_analytics_output_powerbi","azurerm_stream_analytics_output_servicebus_queue","azurerm_stream_analytics_output_servicebus_topic","azurerm_stream_analytics_output_synapse","azurerm_stream_analytics_output_table","azurerm_stream_analytics_reference_input_blob","azurerm_stream_analytics_reference_input_mssql","azurerm_stream_analytics_stream_input_blob","azurerm_stream_analytics_stream_input_eventhub","azurerm_stream_analytics_stream_input_iothub","azurerm_subnet","azurerm_subnet_nat_gateway_association","azurerm_subnet_network_security_group_association","azurerm_subnet_route_table_association","azurerm_subnet_service_endpoint_storage_policy","azurerm_subscription","azurerm_subscription_cost_management_export","azurerm_subscription_policy_assignment","azurerm_subscription_policy_exemption","azurerm_subscription_policy_remediation","azurerm_subscription_template_deployment","azurerm_synapse_firewall_rule","azurerm_synapse_integration_runtime_azure","azurerm_synapse_integration_runtime_self_hosted","azurerm_synapse_linked_service","azurerm_synapse_managed_private_endpoint","azurerm_synapse_private_link_hub","azurerm_synapse_role_assignment","azurerm_synapse_spark_pool","azurerm_synapse_sql_pool","azurerm_synapse_sql_pool_extended_auditing_policy","azurerm_synapse_sql_pool_security_alert_policy","azurerm_synapse_sql_pool_workload_classifier","azurerm_synapse_sql_pool_workload_group","azurerm_synapse_workspace","azurerm_synapse_workspace_aad_admin","azurerm_synapse_workspace_extended_auditing_policy","azurerm_synapse_workspace_security_alert_policy","azurerm_synapse_workspace_sql_aad_admin","azurerm_synapse_workspace_vulnerability_assessment","azurerm_traffic_manager_azure_endpoint","azurerm_traffic_manager_external_endpoint","azurerm_traffic_manager_nested_endpoint","azurerm_traffic_manager_profile","azurerm_user_assigned_identity","azurerm_virtual_hub","azurerm_virtual_hub_connection","azurerm_virtual_hub_ip","azurerm_virtual_hub_route_table","azurerm_virtual_hub_route_table_route","azurerm_virtual_hub_security_partner_provider","azurerm_virtual_machine_data_disk_attachment","azurerm_virtual_machine_extension","azurerm_virtual_machine_run_command","azurerm_virtual_network","azurerm_virtual_network_gateway","azurerm_virtual_network_gateway_connection","azurerm_virtual_network_peering","azurerm_virtual_wan","azurerm_vpn_gateway","azurerm_vpn_gateway_connection","azurerm_vpn_server_configuration","azurerm_vpn_server_configuration_policy_group","azurerm_vpn_site","azurerm_web_app_active_slot","azurerm_web_app_hybrid_connection","azurerm_web_application_firewall_policy","azurerm_web_pubsub","azurerm_web_pubsub_hub","azurerm_web_pubsub_network_acl","azurerm_windows_function_app","azurerm_windows_function_app_slot","azurerm_windows_virtual_machine","azurerm_windows_virtual_machine_scale_set","azurerm_windows_web_app","azurerm_windows_web_app_slot"] \ No newline at end of file +["azurerm_advanced_threat_protection","azurerm_analysis_services_server","azurerm_api_management","azurerm_api_management_api","azurerm_api_management_api_diagnostic","azurerm_api_management_api_operation","azurerm_api_management_api_operation_policy","azurerm_api_management_api_operation_tag","azurerm_api_management_api_policy","azurerm_api_management_api_release","azurerm_api_management_api_schema","azurerm_api_management_api_tag","azurerm_api_management_api_version_set","azurerm_api_management_authorization_server","azurerm_api_management_backend","azurerm_api_management_certificate","azurerm_api_management_custom_domain","azurerm_api_management_diagnostic","azurerm_api_management_email_template","azurerm_api_management_gateway","azurerm_api_management_gateway_api","azurerm_api_management_global_schema","azurerm_api_management_identity_provider_aad","azurerm_api_management_identity_provider_facebook","azurerm_api_management_identity_provider_google","azurerm_api_management_identity_provider_microsoft","azurerm_api_management_identity_provider_twitter","azurerm_api_management_logger","azurerm_api_management_named_value","azurerm_api_management_notification_recipient_email","azurerm_api_management_notification_recipient_user","azurerm_api_management_openid_connect_provider","azurerm_api_management_policy","azurerm_api_management_product","azurerm_api_management_product_api","azurerm_api_management_product_policy","azurerm_api_management_product_tag","azurerm_api_management_redis_cache","azurerm_api_management_subscription","azurerm_api_management_tag","azurerm_api_management_user","azurerm_app_configuration","azurerm_app_service_certificate_order","azurerm_app_service_plan","azurerm_application_gateway","azurerm_application_insights","azurerm_application_insights_analytics_item","azurerm_application_insights_api_key","azurerm_application_insights_smart_detection_rule","azurerm_application_insights_standard_web_test","azurerm_application_insights_web_test","azurerm_application_insights_workbook","azurerm_application_insights_workbook_template","azurerm_application_security_group","azurerm_attestation_provider","azurerm_automation_account","azurerm_automation_connection","azurerm_automation_connection_classic_certificate","azurerm_automation_connection_type","azurerm_automation_credential","azurerm_automation_hybrid_runbook_worker_group","azurerm_automation_module","azurerm_automation_runbook","azurerm_automation_schedule","azurerm_automation_variable_bool","azurerm_automation_variable_datetime","azurerm_automation_variable_int","azurerm_automation_variable_string","azurerm_automation_webhook","azurerm_availability_set","azurerm_backup_container_storage_account","azurerm_backup_policy_file_share","azurerm_backup_policy_vm","azurerm_backup_policy_vm_workload","azurerm_backup_protected_file_share","azurerm_backup_protected_vm","azurerm_bastion_host","azurerm_bot_channel_alexa","azurerm_bot_channel_directline","azurerm_bot_channel_line","azurerm_bot_channel_ms_teams","azurerm_bot_channel_slack","azurerm_bot_channel_sms","azurerm_bot_channel_web_chat","azurerm_bot_channels_registration","azurerm_bot_connection","azurerm_bot_web_app","azurerm_capacity_reservation","azurerm_capacity_reservation_group","azurerm_cdn_endpoint","azurerm_cdn_frontdoor_custom_domain","azurerm_cdn_frontdoor_custom_domain_association","azurerm_cdn_frontdoor_endpoint","azurerm_cdn_frontdoor_firewall_policy","azurerm_cdn_frontdoor_origin","azurerm_cdn_frontdoor_origin_group","azurerm_cdn_frontdoor_profile","azurerm_cdn_frontdoor_route","azurerm_cdn_frontdoor_rule","azurerm_cdn_frontdoor_rule_set","azurerm_cdn_frontdoor_security_policy","azurerm_cdn_profile","azurerm_cognitive_account","azurerm_cognitive_deployment","azurerm_communication_service","azurerm_confidential_ledger","azurerm_consumption_budget_management_group","azurerm_consumption_budget_resource_group","azurerm_consumption_budget_subscription","azurerm_container_app","azurerm_container_app_custom_domain","azurerm_container_app_environment","azurerm_container_app_environment_certificate","azurerm_container_app_environment_custom_domain","azurerm_container_app_environment_dapr_component","azurerm_container_app_environment_storage","azurerm_container_connected_registry","azurerm_container_registry","azurerm_container_registry_agent_pool","azurerm_container_registry_scope_map","azurerm_container_registry_token","azurerm_container_registry_token_password","azurerm_container_registry_webhook","azurerm_cosmosdb_account","azurerm_cosmosdb_cassandra_cluster","azurerm_cosmosdb_cassandra_datacenter","azurerm_cosmosdb_cassandra_keyspace","azurerm_cosmosdb_cassandra_table","azurerm_cosmosdb_gremlin_database","azurerm_cosmosdb_gremlin_graph","azurerm_cosmosdb_mongo_collection","azurerm_cosmosdb_mongo_database","azurerm_cosmosdb_sql_container","azurerm_cosmosdb_sql_database","azurerm_cosmosdb_sql_dedicated_gateway","azurerm_cosmosdb_sql_function","azurerm_cosmosdb_sql_role_assignment","azurerm_cosmosdb_sql_role_definition","azurerm_cosmosdb_sql_stored_procedure","azurerm_cosmosdb_sql_trigger","azurerm_cosmosdb_table","azurerm_cost_anomaly_alert","azurerm_custom_provider","azurerm_data_factory","azurerm_data_factory_custom_dataset","azurerm_data_factory_data_flow","azurerm_data_factory_dataset_azure_blob","azurerm_data_factory_dataset_binary","azurerm_data_factory_dataset_cosmosdb_sqlapi","azurerm_data_factory_dataset_delimited_text","azurerm_data_factory_dataset_http","azurerm_data_factory_dataset_json","azurerm_data_factory_dataset_mysql","azurerm_data_factory_dataset_parquet","azurerm_data_factory_dataset_postgresql","azurerm_data_factory_dataset_snowflake","azurerm_data_factory_dataset_sql_server_table","azurerm_data_factory_integration_runtime_azure","azurerm_data_factory_integration_runtime_azure_ssis","azurerm_data_factory_integration_runtime_managed","azurerm_data_factory_integration_runtime_self_hosted","azurerm_data_factory_linked_custom_service","azurerm_data_factory_linked_service_azure_blob_storage","azurerm_data_factory_linked_service_azure_databricks","azurerm_data_factory_linked_service_azure_file_storage","azurerm_data_factory_linked_service_azure_function","azurerm_data_factory_linked_service_azure_search","azurerm_data_factory_linked_service_azure_sql_database","azurerm_data_factory_linked_service_azure_table_storage","azurerm_data_factory_linked_service_cosmosdb","azurerm_data_factory_linked_service_cosmosdb_mongoapi","azurerm_data_factory_linked_service_data_lake_storage_gen2","azurerm_data_factory_linked_service_key_vault","azurerm_data_factory_linked_service_kusto","azurerm_data_factory_linked_service_mysql","azurerm_data_factory_linked_service_odata","azurerm_data_factory_linked_service_odbc","azurerm_data_factory_linked_service_postgresql","azurerm_data_factory_linked_service_sftp","azurerm_data_factory_linked_service_snowflake","azurerm_data_factory_linked_service_sql_server","azurerm_data_factory_linked_service_synapse","azurerm_data_factory_linked_service_web","azurerm_data_factory_managed_private_endpoint","azurerm_data_factory_pipeline","azurerm_data_factory_trigger_blob_event","azurerm_data_factory_trigger_custom_event","azurerm_data_factory_trigger_schedule","azurerm_data_protection_backup_instance_blob_storage","azurerm_data_protection_backup_instance_disk","azurerm_data_protection_backup_instance_kubernetes_cluster","azurerm_data_protection_backup_instance_postgresql","azurerm_data_protection_backup_policy_blob_storage","azurerm_data_protection_backup_policy_disk","azurerm_data_protection_backup_policy_kubernetes_cluster","azurerm_data_protection_backup_policy_postgresql","azurerm_data_protection_backup_vault","azurerm_data_protection_resource_guard","azurerm_data_share","azurerm_data_share_account","azurerm_data_share_dataset_blob_storage","azurerm_data_share_dataset_data_lake_gen2","azurerm_data_share_dataset_kusto_cluster","azurerm_data_share_dataset_kusto_database","azurerm_database_migration_project","azurerm_database_migration_service","azurerm_databox_edge_device","azurerm_databricks_access_connector","azurerm_databricks_workspace","azurerm_databricks_workspace_customer_managed_key","azurerm_databricks_workspace_root_dbfs_customer_managed_key","azurerm_dedicated_host","azurerm_dev_test_global_vm_shutdown_schedule","azurerm_dev_test_lab","azurerm_dev_test_linux_virtual_machine","azurerm_dev_test_policy","azurerm_dev_test_schedule","azurerm_dev_test_virtual_network","azurerm_dev_test_windows_virtual_machine","azurerm_digital_twins_instance","azurerm_disk_access","azurerm_disk_encryption_set","azurerm_disk_pool","azurerm_dns_a_record","azurerm_dns_aaaa_record","azurerm_dns_caa_record","azurerm_dns_cname_record","azurerm_dns_mx_record","azurerm_dns_ns_record","azurerm_dns_ptr_record","azurerm_dns_srv_record","azurerm_dns_txt_record","azurerm_dns_zone","azurerm_elastic_cloud_elasticsearch","azurerm_eventgrid_domain","azurerm_eventgrid_domain_topic","azurerm_eventgrid_event_subscription","azurerm_eventgrid_system_topic","azurerm_eventgrid_topic","azurerm_eventhub","azurerm_eventhub_authorization_rule","azurerm_eventhub_consumer_group","azurerm_eventhub_namespace","azurerm_eventhub_namespace_authorization_rule","azurerm_eventhub_namespace_disaster_recovery_config","azurerm_eventhub_namespace_schema_group","azurerm_express_route_circuit","azurerm_express_route_circuit_authorization","azurerm_express_route_circuit_connection","azurerm_express_route_circuit_peering","azurerm_express_route_connection","azurerm_express_route_gateway","azurerm_express_route_port","azurerm_federated_identity_credential","azurerm_firewall","azurerm_firewall_application_rule_collection","azurerm_firewall_nat_rule_collection","azurerm_firewall_network_rule_collection","azurerm_firewall_policy","azurerm_firewall_policy_rule_collection_group","azurerm_fluid_relay_server","azurerm_frontdoor","azurerm_frontdoor_custom_https_configuration","azurerm_frontdoor_firewall_policy","azurerm_frontdoor_rules_engine","azurerm_function_app","azurerm_function_app_active_slot","azurerm_function_app_function","azurerm_function_app_hybrid_connection","azurerm_function_app_slot","azurerm_gallery_application","azurerm_gallery_application_version","azurerm_hdinsight_hadoop_cluster","azurerm_hdinsight_hbase_cluster","azurerm_hdinsight_interactive_query_cluster","azurerm_hdinsight_kafka_cluster","azurerm_hdinsight_spark_cluster","azurerm_healthbot","azurerm_healthcare_dicom_service","azurerm_healthcare_fhir_service","azurerm_healthcare_medtech_service","azurerm_healthcare_medtech_service_fhir_destination","azurerm_healthcare_service","azurerm_healthcare_workspace","azurerm_hpc_cache","azurerm_hpc_cache_access_policy","azurerm_hpc_cache_blob_nfs_target","azurerm_hpc_cache_blob_target","azurerm_hpc_cache_nfs_target","azurerm_image","azurerm_integration_service_environment","azurerm_iot_security_device_group","azurerm_iot_security_solution","azurerm_iot_time_series_insights_event_source_eventhub","azurerm_iot_time_series_insights_event_source_iothub","azurerm_iot_time_series_insights_gen2_environment","azurerm_iot_time_series_insights_reference_data_set","azurerm_iot_time_series_insights_standard_environment","azurerm_iotcentral_application","azurerm_iotcentral_application_network_rule_set","azurerm_iothub","azurerm_iothub_certificate","azurerm_iothub_consumer_group","azurerm_iothub_device_update_account","azurerm_iothub_device_update_instance","azurerm_iothub_dps","azurerm_iothub_dps_certificate","azurerm_iothub_dps_shared_access_policy","azurerm_iothub_endpoint_eventhub","azurerm_iothub_endpoint_servicebus_queue","azurerm_iothub_endpoint_servicebus_topic","azurerm_iothub_endpoint_storage_container","azurerm_iothub_enrichment","azurerm_iothub_fallback_route","azurerm_iothub_route","azurerm_iothub_shared_access_policy","azurerm_ip_group","azurerm_key_vault","azurerm_key_vault_access_policy","azurerm_key_vault_certificate","azurerm_key_vault_certificate_contacts","azurerm_key_vault_certificate_issuer","azurerm_key_vault_key","azurerm_key_vault_managed_hardware_security_module","azurerm_key_vault_managed_storage_account","azurerm_key_vault_managed_storage_account_sas_token_definition","azurerm_key_vault_secret","azurerm_kubernetes_cluster","azurerm_kubernetes_cluster_extension","azurerm_kubernetes_cluster_node_pool","azurerm_kubernetes_fleet_manager","azurerm_kusto_attached_database_configuration","azurerm_kusto_cluster","azurerm_kusto_cluster_managed_private_endpoint","azurerm_kusto_cluster_principal_assignment","azurerm_kusto_database","azurerm_kusto_database_principal_assignment","azurerm_kusto_eventgrid_data_connection","azurerm_kusto_eventhub_data_connection","azurerm_kusto_iothub_data_connection","azurerm_lab_service_lab","azurerm_lab_service_plan","azurerm_lb","azurerm_lb_backend_address_pool","azurerm_lb_backend_address_pool_address","azurerm_lb_nat_pool","azurerm_lb_nat_rule","azurerm_lb_outbound_rule","azurerm_lb_probe","azurerm_lb_rule","azurerm_linux_function_app","azurerm_linux_function_app_slot","azurerm_linux_virtual_machine","azurerm_linux_virtual_machine_scale_set","azurerm_linux_web_app","azurerm_linux_web_app_slot","azurerm_load_test","azurerm_local_network_gateway","azurerm_log_analytics_data_export_rule","azurerm_log_analytics_datasource_windows_event","azurerm_log_analytics_datasource_windows_performance_counter","azurerm_log_analytics_linked_service","azurerm_log_analytics_linked_storage_account","azurerm_log_analytics_query_pack","azurerm_log_analytics_query_pack_query","azurerm_log_analytics_saved_search","azurerm_log_analytics_solution","azurerm_log_analytics_workspace","azurerm_logic_app_action_custom","azurerm_logic_app_action_http","azurerm_logic_app_integration_account","azurerm_logic_app_integration_account_batch_configuration","azurerm_logic_app_integration_account_partner","azurerm_logic_app_integration_account_schema","azurerm_logic_app_integration_account_session","azurerm_logic_app_trigger_custom","azurerm_logic_app_trigger_http_request","azurerm_logic_app_trigger_recurrence","azurerm_logic_app_workflow","azurerm_logz_monitor","azurerm_logz_sub_account","azurerm_logz_sub_account_tag_rule","azurerm_logz_tag_rule","azurerm_machine_learning_compute_cluster","azurerm_machine_learning_compute_instance","azurerm_machine_learning_synapse_spark","azurerm_machine_learning_workspace","azurerm_maintenance_assignment_dedicated_host","azurerm_maintenance_assignment_virtual_machine","azurerm_maintenance_configuration","azurerm_managed_application_definition","azurerm_managed_disk","azurerm_managed_disk_sas_token","azurerm_management_group","azurerm_management_group_subscription_association","azurerm_management_lock","azurerm_maps_account","azurerm_maps_creator","azurerm_mariadb_configuration","azurerm_mariadb_database","azurerm_mariadb_firewall_rule","azurerm_mariadb_server","azurerm_mariadb_virtual_network_rule","azurerm_marketplace_agreement","azurerm_media_asset","azurerm_media_asset_filter","azurerm_media_content_key_policy","azurerm_media_job","azurerm_media_live_event","azurerm_media_live_event_output","azurerm_media_services_account","azurerm_media_services_account_filter","azurerm_media_streaming_endpoint","azurerm_media_streaming_locator","azurerm_media_streaming_policy","azurerm_media_transform","azurerm_monitor_action_group","azurerm_monitor_action_rule_action_group","azurerm_monitor_action_rule_suppression","azurerm_monitor_activity_log_alert","azurerm_monitor_alert_processing_rule_action_group","azurerm_monitor_alert_processing_rule_suppression","azurerm_monitor_autoscale_setting","azurerm_monitor_data_collection_endpoint","azurerm_monitor_data_collection_rule","azurerm_monitor_data_collection_rule_association","azurerm_monitor_diagnostic_setting","azurerm_monitor_metric_alert","azurerm_monitor_private_link_scope","azurerm_monitor_private_link_scoped_service","azurerm_monitor_scheduled_query_rules_alert","azurerm_monitor_scheduled_query_rules_alert_v2","azurerm_monitor_scheduled_query_rules_log","azurerm_monitor_smart_detector_alert_rule","azurerm_mssql_database","azurerm_mssql_database_extended_auditing_policy","azurerm_mssql_database_vulnerability_assessment_rule_baseline","azurerm_mssql_elasticpool","azurerm_mssql_failover_group","azurerm_mssql_firewall_rule","azurerm_mssql_job_agent","azurerm_mssql_job_credential","azurerm_mssql_managed_database","azurerm_mssql_managed_instance","azurerm_mssql_managed_instance_active_directory_administrator","azurerm_mssql_managed_instance_failover_group","azurerm_mssql_managed_instance_vulnerability_assessment","azurerm_mssql_outbound_firewall_rule","azurerm_mssql_server","azurerm_mssql_server_dns_alias","azurerm_mssql_server_microsoft_support_auditing_policy","azurerm_mssql_server_security_alert_policy","azurerm_mssql_server_transparent_data_encryption","azurerm_mssql_server_vulnerability_assessment","azurerm_mssql_virtual_network_rule","azurerm_mysql_active_directory_administrator","azurerm_mysql_configuration","azurerm_mysql_database","azurerm_mysql_firewall_rule","azurerm_mysql_flexible_database","azurerm_mysql_flexible_server","azurerm_mysql_flexible_server_configuration","azurerm_mysql_flexible_server_firewall_rule","azurerm_mysql_server","azurerm_mysql_virtual_network_rule","azurerm_nat_gateway","azurerm_nat_gateway_public_ip_association","azurerm_nat_gateway_public_ip_prefix_association","azurerm_netapp_account","azurerm_netapp_pool","azurerm_netapp_snapshot","azurerm_netapp_snapshot_policy","azurerm_netapp_volume","azurerm_network_connection_monitor","azurerm_network_ddos_protection_plan","azurerm_network_interface","azurerm_network_interface_application_security_group_association","azurerm_network_interface_backend_address_pool_association","azurerm_network_interface_nat_rule_association","azurerm_network_interface_security_group_association","azurerm_network_manager","azurerm_network_manager_management_group_connection","azurerm_network_manager_network_group","azurerm_network_manager_static_member","azurerm_network_manager_subscription_connection","azurerm_network_packet_capture","azurerm_network_profile","azurerm_network_security_group","azurerm_network_security_rule","azurerm_network_watcher","azurerm_network_watcher_flow_log","azurerm_notification_hub","azurerm_notification_hub_authorization_rule","azurerm_notification_hub_namespace","azurerm_orbital_contact_profile","azurerm_orbital_spacecraft","azurerm_orchestrated_virtual_machine_scale_set","azurerm_pim_active_role_assignment","azurerm_pim_eligible_role_assignment","azurerm_point_to_site_vpn_gateway","azurerm_policy_definition","azurerm_policy_virtual_machine_configuration_assignment","azurerm_portal_dashboard","azurerm_postgresql_active_directory_administrator","azurerm_postgresql_configuration","azurerm_postgresql_database","azurerm_postgresql_firewall_rule","azurerm_postgresql_flexible_server","azurerm_postgresql_flexible_server_active_directory_administrator","azurerm_postgresql_flexible_server_configuration","azurerm_postgresql_flexible_server_database","azurerm_postgresql_flexible_server_firewall_rule","azurerm_postgresql_server","azurerm_postgresql_server_key","azurerm_postgresql_virtual_network_rule","azurerm_powerbi_embedded","azurerm_private_dns_a_record","azurerm_private_dns_aaaa_record","azurerm_private_dns_cname_record","azurerm_private_dns_mx_record","azurerm_private_dns_ptr_record","azurerm_private_dns_resolver","azurerm_private_dns_srv_record","azurerm_private_dns_txt_record","azurerm_private_dns_zone","azurerm_private_dns_zone_virtual_network_link","azurerm_private_endpoint","azurerm_private_endpoint_application_security_group_association","azurerm_private_link_service","azurerm_proximity_placement_group","azurerm_public_ip","azurerm_public_ip_prefix","azurerm_purview_account","azurerm_recovery_services_vault","azurerm_redis_cache","azurerm_redis_enterprise_cluster","azurerm_redis_enterprise_database","azurerm_redis_firewall_rule","azurerm_redis_linked_server","azurerm_relay_hybrid_connection","azurerm_relay_hybrid_connection_authorization_rule","azurerm_relay_namespace","azurerm_relay_namespace_authorization_rule","azurerm_resource_deployment_script_azure_cli","azurerm_resource_deployment_script_azure_power_shell","azurerm_resource_group","azurerm_resource_group_cost_management_export","azurerm_resource_group_policy_assignment","azurerm_resource_group_template_deployment","azurerm_resource_policy_assignment","azurerm_resource_policy_exemption","azurerm_resource_policy_remediation","azurerm_resource_provider_registration","azurerm_role_assignment","azurerm_role_definition","azurerm_route","azurerm_route_filter","azurerm_route_map","azurerm_route_server","azurerm_route_server_bgp_connection","azurerm_route_table","azurerm_search_service","azurerm_search_shared_private_link_service","azurerm_security_center_assessment","azurerm_security_center_assessment_policy","azurerm_security_center_auto_provisioning","azurerm_security_center_contact","azurerm_security_center_server_vulnerability_assessment","azurerm_security_center_server_vulnerability_assessment_virtual_machine","azurerm_security_center_setting","azurerm_security_center_storage_defender","azurerm_security_center_subscription_pricing","azurerm_security_center_workspace","azurerm_sentinel_alert_rule_fusion","azurerm_sentinel_alert_rule_machine_learning_behavior_analytics","azurerm_sentinel_alert_rule_ms_security_incident","azurerm_sentinel_automation_rule","azurerm_sentinel_data_connector_iot","azurerm_sentinel_log_analytics_workspace_onboarding","azurerm_sentinel_watchlist","azurerm_service_fabric_cluster","azurerm_service_fabric_managed_cluster","azurerm_service_plan","azurerm_servicebus_namespace","azurerm_servicebus_namespace_authorization_rule","azurerm_servicebus_namespace_disaster_recovery_config","azurerm_servicebus_namespace_network_rule_set","azurerm_servicebus_queue","azurerm_servicebus_queue_authorization_rule","azurerm_servicebus_subscription","azurerm_servicebus_subscription_rule","azurerm_servicebus_topic","azurerm_servicebus_topic_authorization_rule","azurerm_shared_image","azurerm_shared_image_gallery","azurerm_signalr_service","azurerm_signalr_service_network_acl","azurerm_signalr_shared_private_link_resource","azurerm_site_recovery_fabric","azurerm_site_recovery_network_mapping","azurerm_site_recovery_protection_container","azurerm_site_recovery_protection_container_mapping","azurerm_site_recovery_replication_policy","azurerm_snapshot","azurerm_source_control_token","azurerm_spatial_anchors_account","azurerm_spring_cloud_accelerator","azurerm_spring_cloud_active_deployment","azurerm_spring_cloud_api_portal","azurerm_spring_cloud_api_portal_custom_domain","azurerm_spring_cloud_app","azurerm_spring_cloud_app_cosmosdb_association","azurerm_spring_cloud_app_mysql_association","azurerm_spring_cloud_app_redis_association","azurerm_spring_cloud_application_live_view","azurerm_spring_cloud_build_deployment","azurerm_spring_cloud_build_pack_binding","azurerm_spring_cloud_builder","azurerm_spring_cloud_certificate","azurerm_spring_cloud_configuration_service","azurerm_spring_cloud_connection","azurerm_spring_cloud_container_deployment","azurerm_spring_cloud_custom_domain","azurerm_spring_cloud_customized_accelerator","azurerm_spring_cloud_dev_tool_portal","azurerm_spring_cloud_gateway","azurerm_spring_cloud_gateway_custom_domain","azurerm_spring_cloud_java_deployment","azurerm_spring_cloud_service","azurerm_spring_cloud_storage","azurerm_ssh_public_key","azurerm_stack_hci_cluster","azurerm_static_site","azurerm_storage_account","azurerm_storage_account_local_user","azurerm_storage_account_network_rules","azurerm_storage_blob","azurerm_storage_blob_inventory_policy","azurerm_storage_container","azurerm_storage_data_lake_gen2_filesystem","azurerm_storage_data_lake_gen2_path","azurerm_storage_encryption_scope","azurerm_storage_management_policy","azurerm_storage_object_replication","azurerm_storage_queue","azurerm_storage_share","azurerm_storage_share_directory","azurerm_storage_sync","azurerm_storage_table","azurerm_storage_table_entity","azurerm_stream_analytics_cluster","azurerm_stream_analytics_function_javascript_uda","azurerm_stream_analytics_job","azurerm_stream_analytics_managed_private_endpoint","azurerm_stream_analytics_output_blob","azurerm_stream_analytics_output_eventhub","azurerm_stream_analytics_output_function","azurerm_stream_analytics_output_mssql","azurerm_stream_analytics_output_powerbi","azurerm_stream_analytics_output_servicebus_queue","azurerm_stream_analytics_output_servicebus_topic","azurerm_stream_analytics_output_synapse","azurerm_stream_analytics_output_table","azurerm_stream_analytics_reference_input_blob","azurerm_stream_analytics_reference_input_mssql","azurerm_stream_analytics_stream_input_blob","azurerm_stream_analytics_stream_input_eventhub","azurerm_stream_analytics_stream_input_iothub","azurerm_subnet","azurerm_subnet_nat_gateway_association","azurerm_subnet_network_security_group_association","azurerm_subnet_route_table_association","azurerm_subnet_service_endpoint_storage_policy","azurerm_subscription","azurerm_subscription_cost_management_export","azurerm_subscription_policy_assignment","azurerm_subscription_policy_exemption","azurerm_subscription_policy_remediation","azurerm_subscription_template_deployment","azurerm_synapse_firewall_rule","azurerm_synapse_integration_runtime_azure","azurerm_synapse_integration_runtime_self_hosted","azurerm_synapse_linked_service","azurerm_synapse_managed_private_endpoint","azurerm_synapse_private_link_hub","azurerm_synapse_role_assignment","azurerm_synapse_spark_pool","azurerm_synapse_sql_pool","azurerm_synapse_sql_pool_extended_auditing_policy","azurerm_synapse_sql_pool_security_alert_policy","azurerm_synapse_sql_pool_workload_classifier","azurerm_synapse_sql_pool_workload_group","azurerm_synapse_workspace","azurerm_synapse_workspace_aad_admin","azurerm_synapse_workspace_extended_auditing_policy","azurerm_synapse_workspace_security_alert_policy","azurerm_synapse_workspace_sql_aad_admin","azurerm_synapse_workspace_vulnerability_assessment","azurerm_traffic_manager_azure_endpoint","azurerm_traffic_manager_external_endpoint","azurerm_traffic_manager_nested_endpoint","azurerm_traffic_manager_profile","azurerm_user_assigned_identity","azurerm_virtual_hub","azurerm_virtual_hub_connection","azurerm_virtual_hub_ip","azurerm_virtual_hub_route_table","azurerm_virtual_hub_route_table_route","azurerm_virtual_hub_security_partner_provider","azurerm_virtual_machine_data_disk_attachment","azurerm_virtual_machine_extension","azurerm_virtual_machine_run_command","azurerm_virtual_network","azurerm_virtual_network_gateway","azurerm_virtual_network_gateway_connection","azurerm_virtual_network_peering","azurerm_virtual_wan","azurerm_vpn_gateway","azurerm_vpn_gateway_connection","azurerm_vpn_server_configuration","azurerm_vpn_server_configuration_policy_group","azurerm_vpn_site","azurerm_web_app_active_slot","azurerm_web_app_hybrid_connection","azurerm_web_application_firewall_policy","azurerm_web_pubsub","azurerm_web_pubsub_hub","azurerm_web_pubsub_network_acl","azurerm_windows_function_app","azurerm_windows_function_app_slot","azurerm_windows_virtual_machine","azurerm_windows_virtual_machine_scale_set","azurerm_windows_web_app","azurerm_windows_web_app_slot"] \ No newline at end of file diff --git a/examples-generated/containerapp/v1beta1/customdomain.yaml b/examples-generated/containerapp/v1beta1/customdomain.yaml new file mode 100644 index 000000000..15764a58f --- /dev/null +++ b/examples-generated/containerapp/v1beta1/customdomain.yaml @@ -0,0 +1,163 @@ +apiVersion: containerapp.azure.upbound.io/v1beta1 +kind: CustomDomain +metadata: + annotations: + meta.upbound.io/example-id: containerapp/v1beta1/customdomain + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + certificateBindingType: SniEnabled + containerAppEnvironmentCertificateIdSelector: + matchLabels: + testing.upbound.io/example-name: example + containerAppIdSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: containerapp.azure.upbound.io/v1beta2 +kind: ContainerApp +metadata: + annotations: + meta.upbound.io/example-id: containerapp/v1beta1/customdomain + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + containerAppEnvironmentIdSelector: + matchLabels: + testing.upbound.io/example-name: example + ingress: + - allowInsecureConnections: false + externalEnabled: true + targetPort: 5000 + trafficWeight: + - latestRevision: true + percentage: 100 + transport: http + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + revisionMode: Single + template: + - container: + - cpu: 0.25 + image: mcr.microsoft.com/azuredocs/containerapps-helloworld:latest + memory: 0.5Gi + name: examplecontainerapp + +--- + +apiVersion: containerapp.azure.upbound.io/v1beta1 +kind: Environment +metadata: + annotations: + meta.upbound.io/example-id: containerapp/v1beta1/customdomain + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe + logAnalyticsWorkspaceIdSelector: + matchLabels: + testing.upbound.io/example-name: example + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: containerapp.azure.upbound.io/v1beta1 +kind: EnvironmentCertificate +metadata: + annotations: + meta.upbound.io/example-id: containerapp/v1beta1/customdomain + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + certificate_blob: ${filebase64("path/to/certificate_file.pfx")} + certificatePasswordSecretRef: + key: example-key + name: example-secret + namespace: upbound-system + containerAppEnvironmentIdSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: network.azure.upbound.io/v1beta1 +kind: DNSTXTRecord +metadata: + annotations: + meta.upbound.io/example-id: containerapp/v1beta1/customdomain + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + record: + - value: ${azurerm_container_app.example.custom_domain_verification_id} + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + ttl: 300 + zoneNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: network.azure.upbound.io/v1beta2 +kind: DNSZone +metadata: + annotations: + meta.upbound.io/example-id: containerapp/v1beta1/customdomain + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: operationalinsights.azure.upbound.io/v1beta2 +kind: Workspace +metadata: + annotations: + meta.upbound.io/example-id: containerapp/v1beta1/customdomain + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + retentionInDays: 30 + sku: PerGB2018 + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: containerapp/v1beta1/customdomain + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe diff --git a/examples-generated/containerapp/v1beta1/environmentcertificate.yaml b/examples-generated/containerapp/v1beta1/environmentcertificate.yaml new file mode 100644 index 000000000..e475e8ed4 --- /dev/null +++ b/examples-generated/containerapp/v1beta1/environmentcertificate.yaml @@ -0,0 +1,71 @@ +apiVersion: containerapp.azure.upbound.io/v1beta1 +kind: EnvironmentCertificate +metadata: + annotations: + meta.upbound.io/example-id: containerapp/v1beta1/environmentcertificate + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + certificate_blob: ${filebase64("path/to/certificate_file.pfx")} + certificatePasswordSecretRef: + key: example-key + name: example-secret + namespace: upbound-system + containerAppEnvironmentIdSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: containerapp.azure.upbound.io/v1beta1 +kind: Environment +metadata: + annotations: + meta.upbound.io/example-id: containerapp/v1beta1/environmentcertificate + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe + logAnalyticsWorkspaceIdSelector: + matchLabels: + testing.upbound.io/example-name: example + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: operationalinsights.azure.upbound.io/v1beta2 +kind: Workspace +metadata: + annotations: + meta.upbound.io/example-id: containerapp/v1beta1/environmentcertificate + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + retentionInDays: 30 + sku: PerGB2018 + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: containerapp/v1beta1/environmentcertificate + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe diff --git a/examples-generated/containerapp/v1beta1/environmentcustomdomain.yaml b/examples-generated/containerapp/v1beta1/environmentcustomdomain.yaml new file mode 100644 index 000000000..2353c5df0 --- /dev/null +++ b/examples-generated/containerapp/v1beta1/environmentcustomdomain.yaml @@ -0,0 +1,72 @@ +apiVersion: containerapp.azure.upbound.io/v1beta1 +kind: EnvironmentCustomDomain +metadata: + annotations: + meta.upbound.io/example-id: containerapp/v1beta1/environmentcustomdomain + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + certificateBlobBase64: ${filebase64("testacc.pfx")} + certificatePasswordSecretRef: + key: example-key + name: example-secret + namespace: upbound-system + containerAppEnvironmentIdSelector: + matchLabels: + testing.upbound.io/example-name: example + dnsSuffix: acceptancetest.contoso.com + +--- + +apiVersion: containerapp.azure.upbound.io/v1beta1 +kind: Environment +metadata: + annotations: + meta.upbound.io/example-id: containerapp/v1beta1/environmentcustomdomain + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe + logAnalyticsWorkspaceIdSelector: + matchLabels: + testing.upbound.io/example-name: example + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: operationalinsights.azure.upbound.io/v1beta2 +kind: Workspace +metadata: + annotations: + meta.upbound.io/example-id: containerapp/v1beta1/environmentcustomdomain + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + retentionInDays: 30 + sku: PerGB2018 + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: containerapp/v1beta1/environmentcustomdomain + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe diff --git a/examples-generated/containerapp/v1beta1/environmentdaprcomponent.yaml b/examples-generated/containerapp/v1beta1/environmentdaprcomponent.yaml new file mode 100644 index 000000000..b37c4e0af --- /dev/null +++ b/examples-generated/containerapp/v1beta1/environmentdaprcomponent.yaml @@ -0,0 +1,68 @@ +apiVersion: containerapp.azure.upbound.io/v1beta1 +kind: EnvironmentDaprComponent +metadata: + annotations: + meta.upbound.io/example-id: containerapp/v1beta1/environmentdaprcomponent + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + componentType: state.azure.blobstorage + containerAppEnvironmentIdSelector: + matchLabels: + testing.upbound.io/example-name: example + version: v1 + +--- + +apiVersion: containerapp.azure.upbound.io/v1beta1 +kind: Environment +metadata: + annotations: + meta.upbound.io/example-id: containerapp/v1beta1/environmentdaprcomponent + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe + logAnalyticsWorkspaceIdSelector: + matchLabels: + testing.upbound.io/example-name: example + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: operationalinsights.azure.upbound.io/v1beta2 +kind: Workspace +metadata: + annotations: + meta.upbound.io/example-id: containerapp/v1beta1/environmentdaprcomponent + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + retentionInDays: 30 + sku: PerGB2018 + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: containerapp/v1beta1/environmentdaprcomponent + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe diff --git a/examples-generated/containerapp/v1beta1/environmentstorage.yaml b/examples-generated/containerapp/v1beta1/environmentstorage.yaml new file mode 100644 index 000000000..59b43e5ac --- /dev/null +++ b/examples-generated/containerapp/v1beta1/environmentstorage.yaml @@ -0,0 +1,113 @@ +apiVersion: containerapp.azure.upbound.io/v1beta1 +kind: EnvironmentStorage +metadata: + annotations: + meta.upbound.io/example-id: containerapp/v1beta1/environmentstorage + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + accessKeySecretRef: + key: attribute.primary_access_key + name: example-storage-account + namespace: upbound-system + accessMode: ReadOnly + accountNameSelector: + matchLabels: + testing.upbound.io/example-name: example + containerAppEnvironmentIdSelector: + matchLabels: + testing.upbound.io/example-name: example + shareNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: containerapp.azure.upbound.io/v1beta1 +kind: Environment +metadata: + annotations: + meta.upbound.io/example-id: containerapp/v1beta1/environmentstorage + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe + logAnalyticsWorkspaceIdSelector: + matchLabels: + testing.upbound.io/example-name: example + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: operationalinsights.azure.upbound.io/v1beta2 +kind: Workspace +metadata: + annotations: + meta.upbound.io/example-id: containerapp/v1beta1/environmentstorage + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + retentionInDays: 30 + sku: PerGB2018 + +--- + +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: containerapp/v1beta1/environmentstorage + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + location: West Europe + +--- + +apiVersion: storage.azure.upbound.io/v1beta2 +kind: Account +metadata: + annotations: + meta.upbound.io/example-id: containerapp/v1beta1/environmentstorage + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + accountReplicationType: LRS + accountTier: Standard + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + +apiVersion: storage.azure.upbound.io/v1beta1 +kind: Share +metadata: + annotations: + meta.upbound.io/example-id: containerapp/v1beta1/environmentstorage + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + quota: 5 + storageAccountNameSelector: + matchLabels: + testing.upbound.io/example-name: example diff --git a/examples/containerapp/v1beta1/customdomain.yaml b/examples/containerapp/v1beta1/customdomain.yaml new file mode 100644 index 000000000..8b1f7c678 --- /dev/null +++ b/examples/containerapp/v1beta1/customdomain.yaml @@ -0,0 +1,178 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: CC0-1.0 + +apiVersion: containerapp.azure.upbound.io/v1beta1 +kind: CustomDomain +metadata: + annotations: + crossplane.io/external-name: example.upbound-example.com + meta.upbound.io/example-id: containerapp/v1beta1/customdomain + upjet.upbound.io/manual-intervention: "This resource requires a valid domain" + labels: + testing.upbound.io/example-name: example + name: example-upex +spec: + forProvider: + certificateBindingType: SniEnabled + containerAppEnvironmentCertificateIdSelector: + matchLabels: + testing.upbound.io/example-name: example + containerAppIdSelector: + matchLabels: + testing.upbound.io/example-name: example +--- +apiVersion: containerapp.azure.upbound.io/v1beta1 +kind: ContainerApp +metadata: + annotations: + meta.upbound.io/example-id: containerapp/v1beta1/customdomain + upjet.upbound.io/manual-intervention: "The parent resource requires a valid domain" + labels: + testing.upbound.io/example-name: example + name: example-ca-cd +spec: + forProvider: + containerAppEnvironmentIdSelector: + matchLabels: + testing.upbound.io/example-name: example + ingress: + - allowInsecureConnections: false + externalEnabled: true + targetPort: 5000 + trafficWeight: + - latestRevision: true + percentage: 100 + transport: http + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + revisionMode: Single + template: + - container: + - cpu: 0.25 + image: mcr.microsoft.com/azuredocs/containerapps-helloworld:latest + memory: 0.5Gi + name: examplecontainerapp +--- +apiVersion: containerapp.azure.upbound.io/v1beta1 +kind: Environment +metadata: + annotations: + meta.upbound.io/example-id: containerapp/v1beta1/customdomain + upjet.upbound.io/manual-intervention: "The parent resource requires a valid domain" + labels: + testing.upbound.io/example-name: example + name: example-e-cd +spec: + forProvider: + location: West Europe + logAnalyticsWorkspaceIdSelector: + matchLabels: + testing.upbound.io/example-name: example + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example +--- +apiVersion: containerapp.azure.upbound.io/v1beta1 +kind: EnvironmentCertificate +metadata: + annotations: + meta.upbound.io/example-id: containerapp/v1beta1/customdomain + upjet.upbound.io/manual-intervention: "The parent resource requires a valid domain" + labels: + testing.upbound.io/example-name: example + name: example-ec-cd +spec: + forProvider: + certificateBlobBase64: MIIKnwIBAzCCClUGCSqGSIb3DQEHAaCCCkYEggpCMIIKPjCCBKoGCSqGSIb3DQEHBqCCBJswggSXAgEAMIIEkAYJKoZIhvcNAQcBMF8GCSqGSIb3DQEFDTBSMDEGCSqGSIb3DQEFDDAkBBDu/lfGcfb98eUlUeJY+u2iAgIIADAMBggqhkiG9w0CCQUAMB0GCWCGSAFlAwQBKgQQebhNURq42y+AS6I4k7t8ooCCBCCAifHWks+CVGh25/ue4TN0qI7Jx14g6ONi/1nEs6wOKu/khyrskJG1Wk06R7Qf6jbTpQxhtKn+ePJu0NZCOVPi8B7SG7Bt5PLq8+2iiqtPFoM19WQ5YON13myLsHjdtpmtVQbPZsSqvgWzHmsK92J7TIR51Yy5QS/ZBePpgXSzNx5SyoNB/vJXUHZGLcrJD86eDotbPasZKLYGAiLBLVgzV9f+aTYIL0xUVkuiKmT2Eg62lYl9XRt1YKm1Wmtuaij3XmgcTbqWRXYCM/g9KvmOSR92ehhyXC6P52yc+pQOGimsV+rMyO7Lrjnn0h2MnF6Y8X5E+/gtzPc7wy49fTiQwCWmhj73g5jSxiB7Lg6Rv+AV9gMmRxuHwbej/o34yLIx69X0BwfI178xBj1//5u3NkA9Ml1NJHxjNgvbRmFa/wTldo65Pj0vgofaP9fFk6Y2pYfYgD3U1vzEUUtsuQam747JuJHmQgNsvI021PnGHfQUQzvOGI4Sib4dlTtO1q27O9ksuH6zBHTKrMdPJH7vZOODlsiRkYceGfHeTBDnTRQV+5zds4sYpePdfKTcH422ZJj1CcOYTn5LV6UFyD3+W0pj93vY0tJPf7ziAVWOVf15xlUyZimSI9HnNU/eWmsHm9AHBK2fXFcX2iLRSq/89x9dsOOaMfvbhMuJbFyJWwwnGPr+DcR+35DmWv16yJXgRdz5w3McbKhdiblyFCCgO3IlDGTjfWyydqh8F8WsP802yWdMM2x2uJS7E0bGRw2wL1j0/6QFgL+7Eu1MUlfpsFnFE5PIzLXMDKh4y3bbNS6M77R3CGwQi0hv6f/f6KycGJL20nxFiCDpOyHo2A8wjrK301bGTLSF5RE5QTbm8nt81fhPYU3VeMvgtVI1K3GDALyp9bVlrpKVAyRpxIVB0qRaXTMPFH6wKPlB2fKAdV/d9vyV+y3Z/6lWlML5RQk+4KVyxmi+gmJpEhvwHZqkibkQclpS+JlBokn9iaFKm+8DTglPZZ9QDvwEeY/AK+nRoXXiIs0+7tWp2DioEtQeMEKz5d9InuU1fGd76w8Z6uWA8ZEO6Cd8xrdhjIyb5DKykbDmmTrfu8PlUwGg445LIVPqU8ZlOUHZDMwHZxlk7h/2/FP1ZU0oT24f+FjG+pH1GhyqQ6GKRC6FVZ2aZu/0v5tdyT3/D2pEHdC/FSrfNYPHNNW9j2RxpNVkgyJV6zOO+8RS4ms+L52hjhcTU0d+AwCQgyY/Xm4evG4wJXUjCwThClfVUXz7yu65mmKzoqWrFMHOMrJcDuqHWhEY/ul8LYZO8Bm0ch4cbNEacJK7WB2QbEHF1oM08gvUAgR4NKmCWJORyCP6Uo9+kW29b1ovc8b9y5q7VvV5CyFEqyR90+y0PWIzn8E+frhzK1Ae1gowggWMBgkqhkiG9w0BBwGgggV9BIIFeTCCBXUwggVxBgsqhkiG9w0BDAoBAqCCBTkwggU1MF8GCSqGSIb3DQEFDTBSMDEGCSqGSIb3DQEFDDAkBBCIwFZ3R8bXg011GTrQMwl3AgIIADAMBggqhkiG9w0CCQUAMB0GCWCGSAFlAwQBKgQQLL5Qri6m2rfFf+zqfZwkdgSCBNA7UjWTUvsYaAIT/oYXNQplcF7v+75caXqr2Uo46hocDyExCD2VxMCsBAoA91/Q4ja1AhJWUKxIRacxhnUPqolPHVXUS1xpaLVfFMMzxx/u6Swz3vy0VYrKnItll8+xP55VFXpUuWlMYT37vqCVlXPuE46gQ2FCVdRRjQJm3GKhXBvX1aVVXD0KCdw55I7wQt0Vd5lEccmASM7Xw5JuyIpotO6a7WdFPXu01Hvrq2g975LD9hnSBb35qD2z1gKtzjwHDKinfJa8URvD6MCNMp7KOwd89xLboXzHpAzbX0QxRwfa8hIFUI+EBxHZDTgF3DR2g/QohX13YeUGklGor6ZNmlAxoVk77Cj1sU6iX6pxm3Mip/EJTGizsuyUdBWhccmIXLriO2YgksiEY7dkM7imPKEZn50T30MqlcYcQIICoP6zQ27iCb7m6j+/EXBzMD6MJtObmWg9Gs0V1mQo0M1WL8JYqFzU3+IfuyrObDkqG3R5/+NDrQU1z686X3pICmO+aLIRmTybImqMWpwgqdDpwYnJ5opQmpBc/+QRABTDMtUK532uDRA0qNTkeqKZj7wPJhdn63llgsIQytVJusQ8X2v9pJGIaeh2hm4I1reg6o6/I+s719RqNatptNN5aMUrCO9VnFFdWzQneqWcI1/Ll0kE57R5ryQylKIK7glaipGAJpo/iNf8PErlkvEGCerGi/BsoISMsu3j7p1LnkQlch9615wrSbIsGMGnGTM9uxa+WRDe51m5+VabWTjoEZPZR5+U1a1SWmgmrExJQZ9rhotnT2tCu2P3mYrFYRwPtlAZ0J/McbTZlRPiVPcGRpNc3tqm+PK/vmSYkmPXoOKpIjmlsATfDzrjQ4UE/yZNvVn+pfqlscs50Jfv5AEUI33JXM8CiGckuCQnORaLUgbTRjt0pGNUSCsxRhRqJnc1Z/CWFhWWRap/cNdEOSo850CdmgBIf1AZzcaAx8QMAAuYrls7v4DTPrduAPMo/gsAdEPHdeM6jK40kPYwxoA0rnpIrnTxs51K2t84tZnzymk1Ux9j6E2ExeK0PqBKeReSU2Y+mQKLeZ+nKm/nGHeSE+/u/jgYsrji2B+3VNrItBX2OAc1KRzSZo/5X2U114gzd6uqqKAqi4Ai9bzDFa/yxovJAFKiWIgjoUXidk0Ou3ROYK8O2UB1zKgjjgv5YBGpmHz60hZGcsrYDctj08ZJRR1TWBfbc4RLJrzQSwMYcbDzDBlmD/9IzX1VIIwdJTjuvwK3R56gijzrgV4rOI3w8/DzhH2mo33QmgWP8pGjAaMXdaXEVHsCyRgEvkyr/Y7L7g317dvfH8+8+LnBbx2TuGfTSunHSsyktw4S7oNU57mpq1cDhlQhU6OK/obVBlKjnvaCRGPk/bf0Y9HzuCHXq1CucBxM4cmFxtrjs6eGNAzJD77c6fLILkAKsRXSPkIh8xUcO0Us4r3xOyJ2WNiSjnVoi21Tcfh9u4AWjFotVT8spwIUWqUsD7p0ImjXSC/m48JhpOuJxlXYfZHH2Op/KbeIaRtsAQwvD7ODvy7o136j9ARuKd5RiLR4w3XNZrWq1UfIEHXuSmvIf5z9aS9VBE7l4dMaes0JmgYKLeNSQjAYM66Alj9BEZFx2cH7TaRmdzElMCMGCSqGSIb3DQEJFTEWBBTqemfad1osc/zTE1fagkbw89W+yzBBMDEwDQYJYIZIAWUDBAIBBQAEILcAgl4CRUjDUg2d2TXHvWeU6w2YKNUeGO+bWrlgKR8JBAhq+beQyrRBBQICCAA= + certificatePasswordSecretRef: + key: example-key + name: example-secret + namespace: upbound-system + containerAppEnvironmentIdSelector: + matchLabels: + testing.upbound.io/example-name: example +--- +apiVersion: network.azure.upbound.io/v1beta1 +kind: DNSTXTRecord +metadata: + annotations: + crossplane.io/external-name: asuid.example + meta.upbound.io/example-id: containerapp/v1beta1/customdomain + upjet.upbound.io/manual-intervention: "The parent resource requires a valid domain" + labels: + testing.upbound.io/example-name: example + name: example-dtr-cd +spec: + forProvider: + record: + - value: ${azurerm_container_app.example.custom_domain_verification_id} + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + ttl: 300 + zoneNameSelector: + matchLabels: + testing.upbound.io/example-name: example +--- +apiVersion: network.azure.upbound.io/v1beta2 +kind: DNSZone +metadata: + annotations: + crossplane.io/external-name: upbound-example.com + meta.upbound.io/example-id: containerapp/v1beta1/customdomain + upjet.upbound.io/manual-intervention: "The parent resource requires a valid domain" + labels: + testing.upbound.io/example-name: example + name: example-dz-cd +spec: + forProvider: + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example +--- +apiVersion: operationalinsights.azure.upbound.io/v1beta2 +kind: Workspace +metadata: + annotations: + meta.upbound.io/example-id: containerapp/v1beta1/customdomain + upjet.upbound.io/manual-intervention: "The parent resource requires a valid domain" + labels: + testing.upbound.io/example-name: example + name: example-w-cd +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + retentionInDays: 30 + sku: PerGB2018 +--- +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: containerapp/v1beta1/customdomain + upjet.upbound.io/manual-intervention: "The parent resource requires a valid domain" + labels: + testing.upbound.io/example-name: example + name: example-rg-cd +spec: + forProvider: + location: West Europe +--- +apiVersion: v1 +kind: Secret +metadata: + annotations: + meta.upbound.io/example-id: containerapp/v1beta1/customdomain + upjet.upbound.io/manual-intervention: "The parent resource requires a valid domain" + labels: + testing.upbound.io/example-name: example + name: example-secret + namespace: upbound-system +type: Opaque +data: + example-key: MTIzMzIxNTU= diff --git a/examples/containerapp/v1beta1/environmentcertificate.yaml b/examples/containerapp/v1beta1/environmentcertificate.yaml new file mode 100644 index 000000000..fff5aca6f --- /dev/null +++ b/examples/containerapp/v1beta1/environmentcertificate.yaml @@ -0,0 +1,82 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: CC0-1.0 + +apiVersion: containerapp.azure.upbound.io/v1beta1 +kind: EnvironmentCertificate +metadata: + annotations: + meta.upbound.io/example-id: containerapp/v1beta1/environmentcertificate + labels: + testing.upbound.io/example-name: example + name: example-ec +spec: + forProvider: + certificateBlobBase64: MIIKnwIBAzCCClUGCSqGSIb3DQEHAaCCCkYEggpCMIIKPjCCBKoGCSqGSIb3DQEHBqCCBJswggSXAgEAMIIEkAYJKoZIhvcNAQcBMF8GCSqGSIb3DQEFDTBSMDEGCSqGSIb3DQEFDDAkBBDu/lfGcfb98eUlUeJY+u2iAgIIADAMBggqhkiG9w0CCQUAMB0GCWCGSAFlAwQBKgQQebhNURq42y+AS6I4k7t8ooCCBCCAifHWks+CVGh25/ue4TN0qI7Jx14g6ONi/1nEs6wOKu/khyrskJG1Wk06R7Qf6jbTpQxhtKn+ePJu0NZCOVPi8B7SG7Bt5PLq8+2iiqtPFoM19WQ5YON13myLsHjdtpmtVQbPZsSqvgWzHmsK92J7TIR51Yy5QS/ZBePpgXSzNx5SyoNB/vJXUHZGLcrJD86eDotbPasZKLYGAiLBLVgzV9f+aTYIL0xUVkuiKmT2Eg62lYl9XRt1YKm1Wmtuaij3XmgcTbqWRXYCM/g9KvmOSR92ehhyXC6P52yc+pQOGimsV+rMyO7Lrjnn0h2MnF6Y8X5E+/gtzPc7wy49fTiQwCWmhj73g5jSxiB7Lg6Rv+AV9gMmRxuHwbej/o34yLIx69X0BwfI178xBj1//5u3NkA9Ml1NJHxjNgvbRmFa/wTldo65Pj0vgofaP9fFk6Y2pYfYgD3U1vzEUUtsuQam747JuJHmQgNsvI021PnGHfQUQzvOGI4Sib4dlTtO1q27O9ksuH6zBHTKrMdPJH7vZOODlsiRkYceGfHeTBDnTRQV+5zds4sYpePdfKTcH422ZJj1CcOYTn5LV6UFyD3+W0pj93vY0tJPf7ziAVWOVf15xlUyZimSI9HnNU/eWmsHm9AHBK2fXFcX2iLRSq/89x9dsOOaMfvbhMuJbFyJWwwnGPr+DcR+35DmWv16yJXgRdz5w3McbKhdiblyFCCgO3IlDGTjfWyydqh8F8WsP802yWdMM2x2uJS7E0bGRw2wL1j0/6QFgL+7Eu1MUlfpsFnFE5PIzLXMDKh4y3bbNS6M77R3CGwQi0hv6f/f6KycGJL20nxFiCDpOyHo2A8wjrK301bGTLSF5RE5QTbm8nt81fhPYU3VeMvgtVI1K3GDALyp9bVlrpKVAyRpxIVB0qRaXTMPFH6wKPlB2fKAdV/d9vyV+y3Z/6lWlML5RQk+4KVyxmi+gmJpEhvwHZqkibkQclpS+JlBokn9iaFKm+8DTglPZZ9QDvwEeY/AK+nRoXXiIs0+7tWp2DioEtQeMEKz5d9InuU1fGd76w8Z6uWA8ZEO6Cd8xrdhjIyb5DKykbDmmTrfu8PlUwGg445LIVPqU8ZlOUHZDMwHZxlk7h/2/FP1ZU0oT24f+FjG+pH1GhyqQ6GKRC6FVZ2aZu/0v5tdyT3/D2pEHdC/FSrfNYPHNNW9j2RxpNVkgyJV6zOO+8RS4ms+L52hjhcTU0d+AwCQgyY/Xm4evG4wJXUjCwThClfVUXz7yu65mmKzoqWrFMHOMrJcDuqHWhEY/ul8LYZO8Bm0ch4cbNEacJK7WB2QbEHF1oM08gvUAgR4NKmCWJORyCP6Uo9+kW29b1ovc8b9y5q7VvV5CyFEqyR90+y0PWIzn8E+frhzK1Ae1gowggWMBgkqhkiG9w0BBwGgggV9BIIFeTCCBXUwggVxBgsqhkiG9w0BDAoBAqCCBTkwggU1MF8GCSqGSIb3DQEFDTBSMDEGCSqGSIb3DQEFDDAkBBCIwFZ3R8bXg011GTrQMwl3AgIIADAMBggqhkiG9w0CCQUAMB0GCWCGSAFlAwQBKgQQLL5Qri6m2rfFf+zqfZwkdgSCBNA7UjWTUvsYaAIT/oYXNQplcF7v+75caXqr2Uo46hocDyExCD2VxMCsBAoA91/Q4ja1AhJWUKxIRacxhnUPqolPHVXUS1xpaLVfFMMzxx/u6Swz3vy0VYrKnItll8+xP55VFXpUuWlMYT37vqCVlXPuE46gQ2FCVdRRjQJm3GKhXBvX1aVVXD0KCdw55I7wQt0Vd5lEccmASM7Xw5JuyIpotO6a7WdFPXu01Hvrq2g975LD9hnSBb35qD2z1gKtzjwHDKinfJa8URvD6MCNMp7KOwd89xLboXzHpAzbX0QxRwfa8hIFUI+EBxHZDTgF3DR2g/QohX13YeUGklGor6ZNmlAxoVk77Cj1sU6iX6pxm3Mip/EJTGizsuyUdBWhccmIXLriO2YgksiEY7dkM7imPKEZn50T30MqlcYcQIICoP6zQ27iCb7m6j+/EXBzMD6MJtObmWg9Gs0V1mQo0M1WL8JYqFzU3+IfuyrObDkqG3R5/+NDrQU1z686X3pICmO+aLIRmTybImqMWpwgqdDpwYnJ5opQmpBc/+QRABTDMtUK532uDRA0qNTkeqKZj7wPJhdn63llgsIQytVJusQ8X2v9pJGIaeh2hm4I1reg6o6/I+s719RqNatptNN5aMUrCO9VnFFdWzQneqWcI1/Ll0kE57R5ryQylKIK7glaipGAJpo/iNf8PErlkvEGCerGi/BsoISMsu3j7p1LnkQlch9615wrSbIsGMGnGTM9uxa+WRDe51m5+VabWTjoEZPZR5+U1a1SWmgmrExJQZ9rhotnT2tCu2P3mYrFYRwPtlAZ0J/McbTZlRPiVPcGRpNc3tqm+PK/vmSYkmPXoOKpIjmlsATfDzrjQ4UE/yZNvVn+pfqlscs50Jfv5AEUI33JXM8CiGckuCQnORaLUgbTRjt0pGNUSCsxRhRqJnc1Z/CWFhWWRap/cNdEOSo850CdmgBIf1AZzcaAx8QMAAuYrls7v4DTPrduAPMo/gsAdEPHdeM6jK40kPYwxoA0rnpIrnTxs51K2t84tZnzymk1Ux9j6E2ExeK0PqBKeReSU2Y+mQKLeZ+nKm/nGHeSE+/u/jgYsrji2B+3VNrItBX2OAc1KRzSZo/5X2U114gzd6uqqKAqi4Ai9bzDFa/yxovJAFKiWIgjoUXidk0Ou3ROYK8O2UB1zKgjjgv5YBGpmHz60hZGcsrYDctj08ZJRR1TWBfbc4RLJrzQSwMYcbDzDBlmD/9IzX1VIIwdJTjuvwK3R56gijzrgV4rOI3w8/DzhH2mo33QmgWP8pGjAaMXdaXEVHsCyRgEvkyr/Y7L7g317dvfH8+8+LnBbx2TuGfTSunHSsyktw4S7oNU57mpq1cDhlQhU6OK/obVBlKjnvaCRGPk/bf0Y9HzuCHXq1CucBxM4cmFxtrjs6eGNAzJD77c6fLILkAKsRXSPkIh8xUcO0Us4r3xOyJ2WNiSjnVoi21Tcfh9u4AWjFotVT8spwIUWqUsD7p0ImjXSC/m48JhpOuJxlXYfZHH2Op/KbeIaRtsAQwvD7ODvy7o136j9ARuKd5RiLR4w3XNZrWq1UfIEHXuSmvIf5z9aS9VBE7l4dMaes0JmgYKLeNSQjAYM66Alj9BEZFx2cH7TaRmdzElMCMGCSqGSIb3DQEJFTEWBBTqemfad1osc/zTE1fagkbw89W+yzBBMDEwDQYJYIZIAWUDBAIBBQAEILcAgl4CRUjDUg2d2TXHvWeU6w2YKNUeGO+bWrlgKR8JBAhq+beQyrRBBQICCAA= + certificatePasswordSecretRef: + key: example-key + name: example-secret + namespace: upbound-system + containerAppEnvironmentIdSelector: + matchLabels: + testing.upbound.io/example-name: example +--- +apiVersion: containerapp.azure.upbound.io/v1beta1 +kind: Environment +metadata: + annotations: + meta.upbound.io/example-id: containerapp/v1beta1/environmentcertificate + labels: + testing.upbound.io/example-name: example + name: example-e-ec +spec: + forProvider: + location: West Europe + logAnalyticsWorkspaceIdSelector: + matchLabels: + testing.upbound.io/example-name: example + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example +--- +apiVersion: operationalinsights.azure.upbound.io/v1beta1 +kind: Workspace +metadata: + annotations: + meta.upbound.io/example-id: containerapp/v1beta1/environmentcertificate + labels: + testing.upbound.io/example-name: example + name: example-w-ec +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + retentionInDays: 30 + sku: PerGB2018 +--- +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: containerapp/v1beta1/environmentcertificate + labels: + testing.upbound.io/example-name: example + name: example-rg-ec +spec: + forProvider: + location: West Europe +--- +apiVersion: v1 +kind: Secret +metadata: + annotations: + meta.upbound.io/example-id: containerapp/v1beta1/environmentcertificate + labels: + testing.upbound.io/example-name: example + name: example-secret + namespace: upbound-system +type: Opaque +data: + example-key: MTIzMzIxNTU= diff --git a/examples/containerapp/v1beta1/environmentcustomdomain.yaml b/examples/containerapp/v1beta1/environmentcustomdomain.yaml new file mode 100644 index 000000000..29f7031b9 --- /dev/null +++ b/examples/containerapp/v1beta1/environmentcustomdomain.yaml @@ -0,0 +1,88 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: CC0-1.0 + +apiVersion: containerapp.azure.upbound.io/v1beta1 +kind: EnvironmentCustomDomain +metadata: + annotations: + meta.upbound.io/example-id: containerapp/v1beta1/environmentcustomdomain + upjet.upbound.io/manual-intervention: "This resource requires a valid domain" + labels: + testing.upbound.io/example-name: example + name: example-ecd +spec: + forProvider: + certificateBlobBase64: MIIKnwIBAzCCClUGCSqGSIb3DQEHAaCCCkYEggpCMIIKPjCCBKoGCSqGSIb3DQEHBqCCBJswggSXAgEAMIIEkAYJKoZIhvcNAQcBMF8GCSqGSIb3DQEFDTBSMDEGCSqGSIb3DQEFDDAkBBDu/lfGcfb98eUlUeJY+u2iAgIIADAMBggqhkiG9w0CCQUAMB0GCWCGSAFlAwQBKgQQebhNURq42y+AS6I4k7t8ooCCBCCAifHWks+CVGh25/ue4TN0qI7Jx14g6ONi/1nEs6wOKu/khyrskJG1Wk06R7Qf6jbTpQxhtKn+ePJu0NZCOVPi8B7SG7Bt5PLq8+2iiqtPFoM19WQ5YON13myLsHjdtpmtVQbPZsSqvgWzHmsK92J7TIR51Yy5QS/ZBePpgXSzNx5SyoNB/vJXUHZGLcrJD86eDotbPasZKLYGAiLBLVgzV9f+aTYIL0xUVkuiKmT2Eg62lYl9XRt1YKm1Wmtuaij3XmgcTbqWRXYCM/g9KvmOSR92ehhyXC6P52yc+pQOGimsV+rMyO7Lrjnn0h2MnF6Y8X5E+/gtzPc7wy49fTiQwCWmhj73g5jSxiB7Lg6Rv+AV9gMmRxuHwbej/o34yLIx69X0BwfI178xBj1//5u3NkA9Ml1NJHxjNgvbRmFa/wTldo65Pj0vgofaP9fFk6Y2pYfYgD3U1vzEUUtsuQam747JuJHmQgNsvI021PnGHfQUQzvOGI4Sib4dlTtO1q27O9ksuH6zBHTKrMdPJH7vZOODlsiRkYceGfHeTBDnTRQV+5zds4sYpePdfKTcH422ZJj1CcOYTn5LV6UFyD3+W0pj93vY0tJPf7ziAVWOVf15xlUyZimSI9HnNU/eWmsHm9AHBK2fXFcX2iLRSq/89x9dsOOaMfvbhMuJbFyJWwwnGPr+DcR+35DmWv16yJXgRdz5w3McbKhdiblyFCCgO3IlDGTjfWyydqh8F8WsP802yWdMM2x2uJS7E0bGRw2wL1j0/6QFgL+7Eu1MUlfpsFnFE5PIzLXMDKh4y3bbNS6M77R3CGwQi0hv6f/f6KycGJL20nxFiCDpOyHo2A8wjrK301bGTLSF5RE5QTbm8nt81fhPYU3VeMvgtVI1K3GDALyp9bVlrpKVAyRpxIVB0qRaXTMPFH6wKPlB2fKAdV/d9vyV+y3Z/6lWlML5RQk+4KVyxmi+gmJpEhvwHZqkibkQclpS+JlBokn9iaFKm+8DTglPZZ9QDvwEeY/AK+nRoXXiIs0+7tWp2DioEtQeMEKz5d9InuU1fGd76w8Z6uWA8ZEO6Cd8xrdhjIyb5DKykbDmmTrfu8PlUwGg445LIVPqU8ZlOUHZDMwHZxlk7h/2/FP1ZU0oT24f+FjG+pH1GhyqQ6GKRC6FVZ2aZu/0v5tdyT3/D2pEHdC/FSrfNYPHNNW9j2RxpNVkgyJV6zOO+8RS4ms+L52hjhcTU0d+AwCQgyY/Xm4evG4wJXUjCwThClfVUXz7yu65mmKzoqWrFMHOMrJcDuqHWhEY/ul8LYZO8Bm0ch4cbNEacJK7WB2QbEHF1oM08gvUAgR4NKmCWJORyCP6Uo9+kW29b1ovc8b9y5q7VvV5CyFEqyR90+y0PWIzn8E+frhzK1Ae1gowggWMBgkqhkiG9w0BBwGgggV9BIIFeTCCBXUwggVxBgsqhkiG9w0BDAoBAqCCBTkwggU1MF8GCSqGSIb3DQEFDTBSMDEGCSqGSIb3DQEFDDAkBBCIwFZ3R8bXg011GTrQMwl3AgIIADAMBggqhkiG9w0CCQUAMB0GCWCGSAFlAwQBKgQQLL5Qri6m2rfFf+zqfZwkdgSCBNA7UjWTUvsYaAIT/oYXNQplcF7v+75caXqr2Uo46hocDyExCD2VxMCsBAoA91/Q4ja1AhJWUKxIRacxhnUPqolPHVXUS1xpaLVfFMMzxx/u6Swz3vy0VYrKnItll8+xP55VFXpUuWlMYT37vqCVlXPuE46gQ2FCVdRRjQJm3GKhXBvX1aVVXD0KCdw55I7wQt0Vd5lEccmASM7Xw5JuyIpotO6a7WdFPXu01Hvrq2g975LD9hnSBb35qD2z1gKtzjwHDKinfJa8URvD6MCNMp7KOwd89xLboXzHpAzbX0QxRwfa8hIFUI+EBxHZDTgF3DR2g/QohX13YeUGklGor6ZNmlAxoVk77Cj1sU6iX6pxm3Mip/EJTGizsuyUdBWhccmIXLriO2YgksiEY7dkM7imPKEZn50T30MqlcYcQIICoP6zQ27iCb7m6j+/EXBzMD6MJtObmWg9Gs0V1mQo0M1WL8JYqFzU3+IfuyrObDkqG3R5/+NDrQU1z686X3pICmO+aLIRmTybImqMWpwgqdDpwYnJ5opQmpBc/+QRABTDMtUK532uDRA0qNTkeqKZj7wPJhdn63llgsIQytVJusQ8X2v9pJGIaeh2hm4I1reg6o6/I+s719RqNatptNN5aMUrCO9VnFFdWzQneqWcI1/Ll0kE57R5ryQylKIK7glaipGAJpo/iNf8PErlkvEGCerGi/BsoISMsu3j7p1LnkQlch9615wrSbIsGMGnGTM9uxa+WRDe51m5+VabWTjoEZPZR5+U1a1SWmgmrExJQZ9rhotnT2tCu2P3mYrFYRwPtlAZ0J/McbTZlRPiVPcGRpNc3tqm+PK/vmSYkmPXoOKpIjmlsATfDzrjQ4UE/yZNvVn+pfqlscs50Jfv5AEUI33JXM8CiGckuCQnORaLUgbTRjt0pGNUSCsxRhRqJnc1Z/CWFhWWRap/cNdEOSo850CdmgBIf1AZzcaAx8QMAAuYrls7v4DTPrduAPMo/gsAdEPHdeM6jK40kPYwxoA0rnpIrnTxs51K2t84tZnzymk1Ux9j6E2ExeK0PqBKeReSU2Y+mQKLeZ+nKm/nGHeSE+/u/jgYsrji2B+3VNrItBX2OAc1KRzSZo/5X2U114gzd6uqqKAqi4Ai9bzDFa/yxovJAFKiWIgjoUXidk0Ou3ROYK8O2UB1zKgjjgv5YBGpmHz60hZGcsrYDctj08ZJRR1TWBfbc4RLJrzQSwMYcbDzDBlmD/9IzX1VIIwdJTjuvwK3R56gijzrgV4rOI3w8/DzhH2mo33QmgWP8pGjAaMXdaXEVHsCyRgEvkyr/Y7L7g317dvfH8+8+LnBbx2TuGfTSunHSsyktw4S7oNU57mpq1cDhlQhU6OK/obVBlKjnvaCRGPk/bf0Y9HzuCHXq1CucBxM4cmFxtrjs6eGNAzJD77c6fLILkAKsRXSPkIh8xUcO0Us4r3xOyJ2WNiSjnVoi21Tcfh9u4AWjFotVT8spwIUWqUsD7p0ImjXSC/m48JhpOuJxlXYfZHH2Op/KbeIaRtsAQwvD7ODvy7o136j9ARuKd5RiLR4w3XNZrWq1UfIEHXuSmvIf5z9aS9VBE7l4dMaes0JmgYKLeNSQjAYM66Alj9BEZFx2cH7TaRmdzElMCMGCSqGSIb3DQEJFTEWBBTqemfad1osc/zTE1fagkbw89W+yzBBMDEwDQYJYIZIAWUDBAIBBQAEILcAgl4CRUjDUg2d2TXHvWeU6w2YKNUeGO+bWrlgKR8JBAhq+beQyrRBBQICCAA= + certificatePasswordSecretRef: + key: example-key + name: example-secret + namespace: upbound-system + containerAppEnvironmentIdSelector: + matchLabels: + testing.upbound.io/example-name: example + dnsSuffix: example.upbound-example.comx +--- +apiVersion: containerapp.azure.upbound.io/v1beta1 +kind: Environment +metadata: + annotations: + meta.upbound.io/example-id: containerapp/v1beta1/environmentcustomdomain + upjet.upbound.io/manual-intervention: "The parent resource requires a valid domain" + labels: + testing.upbound.io/example-name: example + name: example-e-ecd +spec: + forProvider: + location: West Europe + logAnalyticsWorkspaceIdSelector: + matchLabels: + testing.upbound.io/example-name: example + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example +--- +apiVersion: operationalinsights.azure.upbound.io/v1beta2 +kind: Workspace +metadata: + annotations: + meta.upbound.io/example-id: containerapp/v1beta1/environmentcustomdomain + upjet.upbound.io/manual-intervention: "The parent resource requires a valid domain" + labels: + testing.upbound.io/example-name: example + name: acctest-01 +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + retentionInDays: 30 + sku: PerGB2018 +--- +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: containerapp/v1beta1/environmentcustomdomain + upjet.upbound.io/manual-intervention: "The parent resource requires a valid domain" + labels: + testing.upbound.io/example-name: example + name: example-rg-ecd +spec: + forProvider: + location: West Europe +--- +apiVersion: v1 +kind: Secret +metadata: + annotations: + meta.upbound.io/example-id: containerapp/v1beta1/environmentcustomdomain + upjet.upbound.io/manual-intervention: "The parent resource requires a valid domain" + labels: + testing.upbound.io/example-name: example + name: example-secret + namespace: upbound-system +type: Opaque +data: + example-key: MTIzMzIxNTU= diff --git a/examples/containerapp/v1beta1/environmentdaprcomponent.yaml b/examples/containerapp/v1beta1/environmentdaprcomponent.yaml new file mode 100644 index 000000000..a50bf322d --- /dev/null +++ b/examples/containerapp/v1beta1/environmentdaprcomponent.yaml @@ -0,0 +1,66 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: CC0-1.0 + +apiVersion: containerapp.azure.upbound.io/v1beta1 +kind: EnvironmentDaprComponent +metadata: + annotations: + meta.upbound.io/example-id: containerapp/v1beta1/environmentdaprcomponent + labels: + testing.upbound.io/example-name: example + name: example-edc +spec: + forProvider: + componentType: state.azure.blobstorage + containerAppEnvironmentIdSelector: + matchLabels: + testing.upbound.io/example-name: example + version: v1 +--- +apiVersion: containerapp.azure.upbound.io/v1beta1 +kind: Environment +metadata: + annotations: + meta.upbound.io/example-id: containerapp/v1beta1/environmentdaprcomponent + labels: + testing.upbound.io/example-name: example + name: example-e-edc +spec: + forProvider: + location: West Europe + logAnalyticsWorkspaceIdSelector: + matchLabels: + testing.upbound.io/example-name: example + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example +--- +apiVersion: operationalinsights.azure.upbound.io/v1beta2 +kind: Workspace +metadata: + annotations: + meta.upbound.io/example-id: containerapp/v1beta1/environmentdaprcomponent + labels: + testing.upbound.io/example-name: example + name: example-w-edc +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + retentionInDays: 30 + sku: PerGB2018 +--- +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: containerapp/v1beta1/environmentdaprcomponent + labels: + testing.upbound.io/example-name: example + name: example-rg-edc +spec: + forProvider: + location: West Europe diff --git a/examples/containerapp/v1beta1/environmentstorage.yaml b/examples/containerapp/v1beta1/environmentstorage.yaml new file mode 100644 index 000000000..613068461 --- /dev/null +++ b/examples/containerapp/v1beta1/environmentstorage.yaml @@ -0,0 +1,110 @@ +# SPDX-FileCopyrightText: 2024 The Crossplane Authors +# +# SPDX-License-Identifier: CC0-1.0 + +apiVersion: containerapp.azure.upbound.io/v1beta1 +kind: EnvironmentStorage +metadata: + annotations: + meta.upbound.io/example-id: containerapp/v1beta1/environmentstorage + labels: + testing.upbound.io/example-name: example + name: example-es +spec: + forProvider: + accessKeySecretRef: + key: attribute.primary_access_key + name: example-storage-account + namespace: upbound-system + accessMode: ReadOnly + accountNameSelector: + matchLabels: + testing.upbound.io/example-name: example + containerAppEnvironmentIdSelector: + matchLabels: + testing.upbound.io/example-name: example + shareNameSelector: + matchLabels: + testing.upbound.io/example-name: example +--- +apiVersion: containerapp.azure.upbound.io/v1beta1 +kind: Environment +metadata: + annotations: + meta.upbound.io/example-id: containerapp/v1beta1/environmentstorage + labels: + testing.upbound.io/example-name: example + name: example-e-es +spec: + forProvider: + location: West Europe + logAnalyticsWorkspaceIdSelector: + matchLabels: + testing.upbound.io/example-name: example + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example +--- +apiVersion: operationalinsights.azure.upbound.io/v1beta2 +kind: Workspace +metadata: + annotations: + meta.upbound.io/example-id: containerapp/v1beta1/environmentstorage + labels: + testing.upbound.io/example-name: example + name: example-w-es +spec: + forProvider: + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + retentionInDays: 30 + sku: PerGB2018 +--- +apiVersion: azure.upbound.io/v1beta1 +kind: ResourceGroup +metadata: + annotations: + meta.upbound.io/example-id: containerapp/v1beta1/environmentstorage + labels: + testing.upbound.io/example-name: example + name: example-rg-es +spec: + forProvider: + location: West Europe +--- +apiVersion: storage.azure.upbound.io/v1beta2 +kind: Account +metadata: + annotations: + meta.upbound.io/example-id: containerapp/v1beta1/environmentstorage + labels: + testing.upbound.io/example-name: example + name: exampleaes545 +spec: + forProvider: + accountReplicationType: LRS + accountTier: Standard + location: West Europe + resourceGroupNameSelector: + matchLabels: + testing.upbound.io/example-name: example + writeConnectionSecretToRef: + name: example-storage-account + namespace: upbound-system +--- +apiVersion: storage.azure.upbound.io/v1beta1 +kind: Share +metadata: + annotations: + meta.upbound.io/example-id: containerapp/v1beta1/environmentstorage + labels: + testing.upbound.io/example-name: example + name: exampleses545 +spec: + forProvider: + quota: 5 + storageAccountNameSelector: + matchLabels: + testing.upbound.io/example-name: example diff --git a/internal/controller/containerapp/customdomain/zz_controller.go b/internal/controller/containerapp/customdomain/zz_controller.go new file mode 100755 index 000000000..3c915de9d --- /dev/null +++ b/internal/controller/containerapp/customdomain/zz_controller.go @@ -0,0 +1,92 @@ +// SPDX-FileCopyrightText: 2024 The Crossplane Authors +// +// SPDX-License-Identifier: Apache-2.0 + +// Code generated by upjet. DO NOT EDIT. + +package customdomain + +import ( + "time" + + "github.com/crossplane/crossplane-runtime/pkg/connection" + "github.com/crossplane/crossplane-runtime/pkg/event" + "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" + "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" + xpresource "github.com/crossplane/crossplane-runtime/pkg/resource" + "github.com/crossplane/crossplane-runtime/pkg/statemetrics" + tjcontroller "github.com/crossplane/upjet/pkg/controller" + "github.com/crossplane/upjet/pkg/controller/handler" + "github.com/crossplane/upjet/pkg/metrics" + "github.com/pkg/errors" + ctrl "sigs.k8s.io/controller-runtime" + + v1beta1 "github.com/upbound/provider-azure/apis/containerapp/v1beta1" + features "github.com/upbound/provider-azure/internal/features" +) + +// Setup adds a controller that reconciles CustomDomain managed resources. +func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { + name := managed.ControllerName(v1beta1.CustomDomain_GroupVersionKind.String()) + var initializers managed.InitializerChain + initializers = append(initializers, managed.NewNameAsExternalName(mgr.GetClient())) + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK, connection.WithTLSConfig(o.ESSOptions.TLSConfig))) + } + eventHandler := handler.NewEventHandler(handler.WithLogger(o.Logger.WithValues("gvk", v1beta1.CustomDomain_GroupVersionKind))) + ac := tjcontroller.NewAPICallbacks(mgr, xpresource.ManagedKind(v1beta1.CustomDomain_GroupVersionKind), tjcontroller.WithEventHandler(eventHandler), tjcontroller.WithStatusUpdates(false)) + opts := []managed.ReconcilerOption{ + managed.WithExternalConnecter( + tjcontroller.NewTerraformPluginSDKAsyncConnector(mgr.GetClient(), o.OperationTrackerStore, o.SetupFn, o.Provider.Resources["azurerm_container_app_custom_domain"], + tjcontroller.WithTerraformPluginSDKAsyncLogger(o.Logger), + tjcontroller.WithTerraformPluginSDKAsyncConnectorEventHandler(eventHandler), + tjcontroller.WithTerraformPluginSDKAsyncCallbackProvider(ac), + tjcontroller.WithTerraformPluginSDKAsyncMetricRecorder(metrics.NewMetricRecorder(v1beta1.CustomDomain_GroupVersionKind, mgr, o.PollInterval)), + tjcontroller.WithTerraformPluginSDKAsyncManagementPolicies(o.Features.Enabled(features.EnableBetaManagementPolicies)))), + managed.WithLogger(o.Logger.WithValues("controller", name)), + managed.WithRecorder(event.NewAPIRecorder(mgr.GetEventRecorderFor(name))), + managed.WithFinalizer(tjcontroller.NewOperationTrackerFinalizer(o.OperationTrackerStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), + managed.WithTimeout(3 * time.Minute), + managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), + managed.WithPollInterval(o.PollInterval), + } + if o.PollJitter != 0 { + opts = append(opts, managed.WithPollJitterHook(o.PollJitter)) + } + if o.Features.Enabled(features.EnableBetaManagementPolicies) { + opts = append(opts, managed.WithManagementPolicies()) + } + if o.MetricOptions != nil { + opts = append(opts, managed.WithMetricRecorder(o.MetricOptions.MRMetrics)) + } + + // register webhooks for the kind v1beta1.CustomDomain + // if they're enabled. + if o.StartWebhooks { + if err := ctrl.NewWebhookManagedBy(mgr). + For(&v1beta1.CustomDomain{}). + Complete(); err != nil { + return errors.Wrap(err, "cannot register webhook for the kind v1beta1.CustomDomain") + } + } + + if o.MetricOptions != nil && o.MetricOptions.MRStateMetrics != nil { + stateMetricsRecorder := statemetrics.NewMRStateRecorder( + mgr.GetClient(), o.Logger, o.MetricOptions.MRStateMetrics, &v1beta1.CustomDomainList{}, o.MetricOptions.PollStateMetricInterval, + ) + if err := mgr.Add(stateMetricsRecorder); err != nil { + return errors.Wrap(err, "cannot register MR state metrics recorder for kind v1beta1.CustomDomainList") + } + } + + r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1beta1.CustomDomain_GroupVersionKind), opts...) + + return ctrl.NewControllerManagedBy(mgr). + Named(name). + WithOptions(o.ForControllerRuntime()). + WithEventFilter(xpresource.DesiredStateChanged()). + Watches(&v1beta1.CustomDomain{}, eventHandler). + Complete(ratelimiter.NewReconciler(name, r, o.GlobalRateLimiter)) +} diff --git a/internal/controller/containerapp/environmentcertificate/zz_controller.go b/internal/controller/containerapp/environmentcertificate/zz_controller.go new file mode 100755 index 000000000..d02b02461 --- /dev/null +++ b/internal/controller/containerapp/environmentcertificate/zz_controller.go @@ -0,0 +1,92 @@ +// SPDX-FileCopyrightText: 2024 The Crossplane Authors +// +// SPDX-License-Identifier: Apache-2.0 + +// Code generated by upjet. DO NOT EDIT. + +package environmentcertificate + +import ( + "time" + + "github.com/crossplane/crossplane-runtime/pkg/connection" + "github.com/crossplane/crossplane-runtime/pkg/event" + "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" + "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" + xpresource "github.com/crossplane/crossplane-runtime/pkg/resource" + "github.com/crossplane/crossplane-runtime/pkg/statemetrics" + tjcontroller "github.com/crossplane/upjet/pkg/controller" + "github.com/crossplane/upjet/pkg/controller/handler" + "github.com/crossplane/upjet/pkg/metrics" + "github.com/pkg/errors" + ctrl "sigs.k8s.io/controller-runtime" + + v1beta1 "github.com/upbound/provider-azure/apis/containerapp/v1beta1" + features "github.com/upbound/provider-azure/internal/features" +) + +// Setup adds a controller that reconciles EnvironmentCertificate managed resources. +func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { + name := managed.ControllerName(v1beta1.EnvironmentCertificate_GroupVersionKind.String()) + var initializers managed.InitializerChain + initializers = append(initializers, managed.NewNameAsExternalName(mgr.GetClient())) + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK, connection.WithTLSConfig(o.ESSOptions.TLSConfig))) + } + eventHandler := handler.NewEventHandler(handler.WithLogger(o.Logger.WithValues("gvk", v1beta1.EnvironmentCertificate_GroupVersionKind))) + ac := tjcontroller.NewAPICallbacks(mgr, xpresource.ManagedKind(v1beta1.EnvironmentCertificate_GroupVersionKind), tjcontroller.WithEventHandler(eventHandler), tjcontroller.WithStatusUpdates(false)) + opts := []managed.ReconcilerOption{ + managed.WithExternalConnecter( + tjcontroller.NewTerraformPluginSDKAsyncConnector(mgr.GetClient(), o.OperationTrackerStore, o.SetupFn, o.Provider.Resources["azurerm_container_app_environment_certificate"], + tjcontroller.WithTerraformPluginSDKAsyncLogger(o.Logger), + tjcontroller.WithTerraformPluginSDKAsyncConnectorEventHandler(eventHandler), + tjcontroller.WithTerraformPluginSDKAsyncCallbackProvider(ac), + tjcontroller.WithTerraformPluginSDKAsyncMetricRecorder(metrics.NewMetricRecorder(v1beta1.EnvironmentCertificate_GroupVersionKind, mgr, o.PollInterval)), + tjcontroller.WithTerraformPluginSDKAsyncManagementPolicies(o.Features.Enabled(features.EnableBetaManagementPolicies)))), + managed.WithLogger(o.Logger.WithValues("controller", name)), + managed.WithRecorder(event.NewAPIRecorder(mgr.GetEventRecorderFor(name))), + managed.WithFinalizer(tjcontroller.NewOperationTrackerFinalizer(o.OperationTrackerStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), + managed.WithTimeout(3 * time.Minute), + managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), + managed.WithPollInterval(o.PollInterval), + } + if o.PollJitter != 0 { + opts = append(opts, managed.WithPollJitterHook(o.PollJitter)) + } + if o.Features.Enabled(features.EnableBetaManagementPolicies) { + opts = append(opts, managed.WithManagementPolicies()) + } + if o.MetricOptions != nil { + opts = append(opts, managed.WithMetricRecorder(o.MetricOptions.MRMetrics)) + } + + // register webhooks for the kind v1beta1.EnvironmentCertificate + // if they're enabled. + if o.StartWebhooks { + if err := ctrl.NewWebhookManagedBy(mgr). + For(&v1beta1.EnvironmentCertificate{}). + Complete(); err != nil { + return errors.Wrap(err, "cannot register webhook for the kind v1beta1.EnvironmentCertificate") + } + } + + if o.MetricOptions != nil && o.MetricOptions.MRStateMetrics != nil { + stateMetricsRecorder := statemetrics.NewMRStateRecorder( + mgr.GetClient(), o.Logger, o.MetricOptions.MRStateMetrics, &v1beta1.EnvironmentCertificateList{}, o.MetricOptions.PollStateMetricInterval, + ) + if err := mgr.Add(stateMetricsRecorder); err != nil { + return errors.Wrap(err, "cannot register MR state metrics recorder for kind v1beta1.EnvironmentCertificateList") + } + } + + r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1beta1.EnvironmentCertificate_GroupVersionKind), opts...) + + return ctrl.NewControllerManagedBy(mgr). + Named(name). + WithOptions(o.ForControllerRuntime()). + WithEventFilter(xpresource.DesiredStateChanged()). + Watches(&v1beta1.EnvironmentCertificate{}, eventHandler). + Complete(ratelimiter.NewReconciler(name, r, o.GlobalRateLimiter)) +} diff --git a/internal/controller/containerapp/environmentcustomdomain/zz_controller.go b/internal/controller/containerapp/environmentcustomdomain/zz_controller.go new file mode 100755 index 000000000..15023bc8d --- /dev/null +++ b/internal/controller/containerapp/environmentcustomdomain/zz_controller.go @@ -0,0 +1,91 @@ +// SPDX-FileCopyrightText: 2024 The Crossplane Authors +// +// SPDX-License-Identifier: Apache-2.0 + +// Code generated by upjet. DO NOT EDIT. + +package environmentcustomdomain + +import ( + "time" + + "github.com/crossplane/crossplane-runtime/pkg/connection" + "github.com/crossplane/crossplane-runtime/pkg/event" + "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" + "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" + xpresource "github.com/crossplane/crossplane-runtime/pkg/resource" + "github.com/crossplane/crossplane-runtime/pkg/statemetrics" + tjcontroller "github.com/crossplane/upjet/pkg/controller" + "github.com/crossplane/upjet/pkg/controller/handler" + "github.com/crossplane/upjet/pkg/metrics" + "github.com/pkg/errors" + ctrl "sigs.k8s.io/controller-runtime" + + v1beta1 "github.com/upbound/provider-azure/apis/containerapp/v1beta1" + features "github.com/upbound/provider-azure/internal/features" +) + +// Setup adds a controller that reconciles EnvironmentCustomDomain managed resources. +func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { + name := managed.ControllerName(v1beta1.EnvironmentCustomDomain_GroupVersionKind.String()) + var initializers managed.InitializerChain + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK, connection.WithTLSConfig(o.ESSOptions.TLSConfig))) + } + eventHandler := handler.NewEventHandler(handler.WithLogger(o.Logger.WithValues("gvk", v1beta1.EnvironmentCustomDomain_GroupVersionKind))) + ac := tjcontroller.NewAPICallbacks(mgr, xpresource.ManagedKind(v1beta1.EnvironmentCustomDomain_GroupVersionKind), tjcontroller.WithEventHandler(eventHandler), tjcontroller.WithStatusUpdates(false)) + opts := []managed.ReconcilerOption{ + managed.WithExternalConnecter( + tjcontroller.NewTerraformPluginSDKAsyncConnector(mgr.GetClient(), o.OperationTrackerStore, o.SetupFn, o.Provider.Resources["azurerm_container_app_environment_custom_domain"], + tjcontroller.WithTerraformPluginSDKAsyncLogger(o.Logger), + tjcontroller.WithTerraformPluginSDKAsyncConnectorEventHandler(eventHandler), + tjcontroller.WithTerraformPluginSDKAsyncCallbackProvider(ac), + tjcontroller.WithTerraformPluginSDKAsyncMetricRecorder(metrics.NewMetricRecorder(v1beta1.EnvironmentCustomDomain_GroupVersionKind, mgr, o.PollInterval)), + tjcontroller.WithTerraformPluginSDKAsyncManagementPolicies(o.Features.Enabled(features.EnableBetaManagementPolicies)))), + managed.WithLogger(o.Logger.WithValues("controller", name)), + managed.WithRecorder(event.NewAPIRecorder(mgr.GetEventRecorderFor(name))), + managed.WithFinalizer(tjcontroller.NewOperationTrackerFinalizer(o.OperationTrackerStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), + managed.WithTimeout(3 * time.Minute), + managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), + managed.WithPollInterval(o.PollInterval), + } + if o.PollJitter != 0 { + opts = append(opts, managed.WithPollJitterHook(o.PollJitter)) + } + if o.Features.Enabled(features.EnableBetaManagementPolicies) { + opts = append(opts, managed.WithManagementPolicies()) + } + if o.MetricOptions != nil { + opts = append(opts, managed.WithMetricRecorder(o.MetricOptions.MRMetrics)) + } + + // register webhooks for the kind v1beta1.EnvironmentCustomDomain + // if they're enabled. + if o.StartWebhooks { + if err := ctrl.NewWebhookManagedBy(mgr). + For(&v1beta1.EnvironmentCustomDomain{}). + Complete(); err != nil { + return errors.Wrap(err, "cannot register webhook for the kind v1beta1.EnvironmentCustomDomain") + } + } + + if o.MetricOptions != nil && o.MetricOptions.MRStateMetrics != nil { + stateMetricsRecorder := statemetrics.NewMRStateRecorder( + mgr.GetClient(), o.Logger, o.MetricOptions.MRStateMetrics, &v1beta1.EnvironmentCustomDomainList{}, o.MetricOptions.PollStateMetricInterval, + ) + if err := mgr.Add(stateMetricsRecorder); err != nil { + return errors.Wrap(err, "cannot register MR state metrics recorder for kind v1beta1.EnvironmentCustomDomainList") + } + } + + r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1beta1.EnvironmentCustomDomain_GroupVersionKind), opts...) + + return ctrl.NewControllerManagedBy(mgr). + Named(name). + WithOptions(o.ForControllerRuntime()). + WithEventFilter(xpresource.DesiredStateChanged()). + Watches(&v1beta1.EnvironmentCustomDomain{}, eventHandler). + Complete(ratelimiter.NewReconciler(name, r, o.GlobalRateLimiter)) +} diff --git a/internal/controller/containerapp/environmentdaprcomponent/zz_controller.go b/internal/controller/containerapp/environmentdaprcomponent/zz_controller.go new file mode 100755 index 000000000..99d534cda --- /dev/null +++ b/internal/controller/containerapp/environmentdaprcomponent/zz_controller.go @@ -0,0 +1,92 @@ +// SPDX-FileCopyrightText: 2024 The Crossplane Authors +// +// SPDX-License-Identifier: Apache-2.0 + +// Code generated by upjet. DO NOT EDIT. + +package environmentdaprcomponent + +import ( + "time" + + "github.com/crossplane/crossplane-runtime/pkg/connection" + "github.com/crossplane/crossplane-runtime/pkg/event" + "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" + "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" + xpresource "github.com/crossplane/crossplane-runtime/pkg/resource" + "github.com/crossplane/crossplane-runtime/pkg/statemetrics" + tjcontroller "github.com/crossplane/upjet/pkg/controller" + "github.com/crossplane/upjet/pkg/controller/handler" + "github.com/crossplane/upjet/pkg/metrics" + "github.com/pkg/errors" + ctrl "sigs.k8s.io/controller-runtime" + + v1beta1 "github.com/upbound/provider-azure/apis/containerapp/v1beta1" + features "github.com/upbound/provider-azure/internal/features" +) + +// Setup adds a controller that reconciles EnvironmentDaprComponent managed resources. +func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { + name := managed.ControllerName(v1beta1.EnvironmentDaprComponent_GroupVersionKind.String()) + var initializers managed.InitializerChain + initializers = append(initializers, managed.NewNameAsExternalName(mgr.GetClient())) + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK, connection.WithTLSConfig(o.ESSOptions.TLSConfig))) + } + eventHandler := handler.NewEventHandler(handler.WithLogger(o.Logger.WithValues("gvk", v1beta1.EnvironmentDaprComponent_GroupVersionKind))) + ac := tjcontroller.NewAPICallbacks(mgr, xpresource.ManagedKind(v1beta1.EnvironmentDaprComponent_GroupVersionKind), tjcontroller.WithEventHandler(eventHandler), tjcontroller.WithStatusUpdates(false)) + opts := []managed.ReconcilerOption{ + managed.WithExternalConnecter( + tjcontroller.NewTerraformPluginSDKAsyncConnector(mgr.GetClient(), o.OperationTrackerStore, o.SetupFn, o.Provider.Resources["azurerm_container_app_environment_dapr_component"], + tjcontroller.WithTerraformPluginSDKAsyncLogger(o.Logger), + tjcontroller.WithTerraformPluginSDKAsyncConnectorEventHandler(eventHandler), + tjcontroller.WithTerraformPluginSDKAsyncCallbackProvider(ac), + tjcontroller.WithTerraformPluginSDKAsyncMetricRecorder(metrics.NewMetricRecorder(v1beta1.EnvironmentDaprComponent_GroupVersionKind, mgr, o.PollInterval)), + tjcontroller.WithTerraformPluginSDKAsyncManagementPolicies(o.Features.Enabled(features.EnableBetaManagementPolicies)))), + managed.WithLogger(o.Logger.WithValues("controller", name)), + managed.WithRecorder(event.NewAPIRecorder(mgr.GetEventRecorderFor(name))), + managed.WithFinalizer(tjcontroller.NewOperationTrackerFinalizer(o.OperationTrackerStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), + managed.WithTimeout(3 * time.Minute), + managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), + managed.WithPollInterval(o.PollInterval), + } + if o.PollJitter != 0 { + opts = append(opts, managed.WithPollJitterHook(o.PollJitter)) + } + if o.Features.Enabled(features.EnableBetaManagementPolicies) { + opts = append(opts, managed.WithManagementPolicies()) + } + if o.MetricOptions != nil { + opts = append(opts, managed.WithMetricRecorder(o.MetricOptions.MRMetrics)) + } + + // register webhooks for the kind v1beta1.EnvironmentDaprComponent + // if they're enabled. + if o.StartWebhooks { + if err := ctrl.NewWebhookManagedBy(mgr). + For(&v1beta1.EnvironmentDaprComponent{}). + Complete(); err != nil { + return errors.Wrap(err, "cannot register webhook for the kind v1beta1.EnvironmentDaprComponent") + } + } + + if o.MetricOptions != nil && o.MetricOptions.MRStateMetrics != nil { + stateMetricsRecorder := statemetrics.NewMRStateRecorder( + mgr.GetClient(), o.Logger, o.MetricOptions.MRStateMetrics, &v1beta1.EnvironmentDaprComponentList{}, o.MetricOptions.PollStateMetricInterval, + ) + if err := mgr.Add(stateMetricsRecorder); err != nil { + return errors.Wrap(err, "cannot register MR state metrics recorder for kind v1beta1.EnvironmentDaprComponentList") + } + } + + r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1beta1.EnvironmentDaprComponent_GroupVersionKind), opts...) + + return ctrl.NewControllerManagedBy(mgr). + Named(name). + WithOptions(o.ForControllerRuntime()). + WithEventFilter(xpresource.DesiredStateChanged()). + Watches(&v1beta1.EnvironmentDaprComponent{}, eventHandler). + Complete(ratelimiter.NewReconciler(name, r, o.GlobalRateLimiter)) +} diff --git a/internal/controller/containerapp/environmentstorage/zz_controller.go b/internal/controller/containerapp/environmentstorage/zz_controller.go new file mode 100755 index 000000000..32cdf75a6 --- /dev/null +++ b/internal/controller/containerapp/environmentstorage/zz_controller.go @@ -0,0 +1,92 @@ +// SPDX-FileCopyrightText: 2024 The Crossplane Authors +// +// SPDX-License-Identifier: Apache-2.0 + +// Code generated by upjet. DO NOT EDIT. + +package environmentstorage + +import ( + "time" + + "github.com/crossplane/crossplane-runtime/pkg/connection" + "github.com/crossplane/crossplane-runtime/pkg/event" + "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" + "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" + xpresource "github.com/crossplane/crossplane-runtime/pkg/resource" + "github.com/crossplane/crossplane-runtime/pkg/statemetrics" + tjcontroller "github.com/crossplane/upjet/pkg/controller" + "github.com/crossplane/upjet/pkg/controller/handler" + "github.com/crossplane/upjet/pkg/metrics" + "github.com/pkg/errors" + ctrl "sigs.k8s.io/controller-runtime" + + v1beta1 "github.com/upbound/provider-azure/apis/containerapp/v1beta1" + features "github.com/upbound/provider-azure/internal/features" +) + +// Setup adds a controller that reconciles EnvironmentStorage managed resources. +func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { + name := managed.ControllerName(v1beta1.EnvironmentStorage_GroupVersionKind.String()) + var initializers managed.InitializerChain + initializers = append(initializers, managed.NewNameAsExternalName(mgr.GetClient())) + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK, connection.WithTLSConfig(o.ESSOptions.TLSConfig))) + } + eventHandler := handler.NewEventHandler(handler.WithLogger(o.Logger.WithValues("gvk", v1beta1.EnvironmentStorage_GroupVersionKind))) + ac := tjcontroller.NewAPICallbacks(mgr, xpresource.ManagedKind(v1beta1.EnvironmentStorage_GroupVersionKind), tjcontroller.WithEventHandler(eventHandler), tjcontroller.WithStatusUpdates(false)) + opts := []managed.ReconcilerOption{ + managed.WithExternalConnecter( + tjcontroller.NewTerraformPluginSDKAsyncConnector(mgr.GetClient(), o.OperationTrackerStore, o.SetupFn, o.Provider.Resources["azurerm_container_app_environment_storage"], + tjcontroller.WithTerraformPluginSDKAsyncLogger(o.Logger), + tjcontroller.WithTerraformPluginSDKAsyncConnectorEventHandler(eventHandler), + tjcontroller.WithTerraformPluginSDKAsyncCallbackProvider(ac), + tjcontroller.WithTerraformPluginSDKAsyncMetricRecorder(metrics.NewMetricRecorder(v1beta1.EnvironmentStorage_GroupVersionKind, mgr, o.PollInterval)), + tjcontroller.WithTerraformPluginSDKAsyncManagementPolicies(o.Features.Enabled(features.EnableBetaManagementPolicies)))), + managed.WithLogger(o.Logger.WithValues("controller", name)), + managed.WithRecorder(event.NewAPIRecorder(mgr.GetEventRecorderFor(name))), + managed.WithFinalizer(tjcontroller.NewOperationTrackerFinalizer(o.OperationTrackerStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), + managed.WithTimeout(3 * time.Minute), + managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), + managed.WithPollInterval(o.PollInterval), + } + if o.PollJitter != 0 { + opts = append(opts, managed.WithPollJitterHook(o.PollJitter)) + } + if o.Features.Enabled(features.EnableBetaManagementPolicies) { + opts = append(opts, managed.WithManagementPolicies()) + } + if o.MetricOptions != nil { + opts = append(opts, managed.WithMetricRecorder(o.MetricOptions.MRMetrics)) + } + + // register webhooks for the kind v1beta1.EnvironmentStorage + // if they're enabled. + if o.StartWebhooks { + if err := ctrl.NewWebhookManagedBy(mgr). + For(&v1beta1.EnvironmentStorage{}). + Complete(); err != nil { + return errors.Wrap(err, "cannot register webhook for the kind v1beta1.EnvironmentStorage") + } + } + + if o.MetricOptions != nil && o.MetricOptions.MRStateMetrics != nil { + stateMetricsRecorder := statemetrics.NewMRStateRecorder( + mgr.GetClient(), o.Logger, o.MetricOptions.MRStateMetrics, &v1beta1.EnvironmentStorageList{}, o.MetricOptions.PollStateMetricInterval, + ) + if err := mgr.Add(stateMetricsRecorder); err != nil { + return errors.Wrap(err, "cannot register MR state metrics recorder for kind v1beta1.EnvironmentStorageList") + } + } + + r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1beta1.EnvironmentStorage_GroupVersionKind), opts...) + + return ctrl.NewControllerManagedBy(mgr). + Named(name). + WithOptions(o.ForControllerRuntime()). + WithEventFilter(xpresource.DesiredStateChanged()). + Watches(&v1beta1.EnvironmentStorage{}, eventHandler). + Complete(ratelimiter.NewReconciler(name, r, o.GlobalRateLimiter)) +} diff --git a/internal/controller/zz_containerapp_setup.go b/internal/controller/zz_containerapp_setup.go index 811ad7edf..0c83b0673 100755 --- a/internal/controller/zz_containerapp_setup.go +++ b/internal/controller/zz_containerapp_setup.go @@ -10,7 +10,12 @@ import ( "github.com/crossplane/upjet/pkg/controller" containerapp "github.com/upbound/provider-azure/internal/controller/containerapp/containerapp" + customdomain "github.com/upbound/provider-azure/internal/controller/containerapp/customdomain" environment "github.com/upbound/provider-azure/internal/controller/containerapp/environment" + environmentcertificate "github.com/upbound/provider-azure/internal/controller/containerapp/environmentcertificate" + environmentcustomdomain "github.com/upbound/provider-azure/internal/controller/containerapp/environmentcustomdomain" + environmentdaprcomponent "github.com/upbound/provider-azure/internal/controller/containerapp/environmentdaprcomponent" + environmentstorage "github.com/upbound/provider-azure/internal/controller/containerapp/environmentstorage" ) // Setup_containerapp creates all controllers with the supplied logger and adds them to @@ -18,7 +23,12 @@ import ( func Setup_containerapp(mgr ctrl.Manager, o controller.Options) error { for _, setup := range []func(ctrl.Manager, controller.Options) error{ containerapp.Setup, + customdomain.Setup, environment.Setup, + environmentcertificate.Setup, + environmentcustomdomain.Setup, + environmentdaprcomponent.Setup, + environmentstorage.Setup, } { if err := setup(mgr, o); err != nil { return err diff --git a/internal/controller/zz_monolith_setup.go b/internal/controller/zz_monolith_setup.go index 087b80a3a..a0008c5ad 100755 --- a/internal/controller/zz_monolith_setup.go +++ b/internal/controller/zz_monolith_setup.go @@ -168,7 +168,12 @@ import ( budgetresourcegroup "github.com/upbound/provider-azure/internal/controller/consumption/budgetresourcegroup" budgetsubscription "github.com/upbound/provider-azure/internal/controller/consumption/budgetsubscription" containerapp "github.com/upbound/provider-azure/internal/controller/containerapp/containerapp" + customdomaincontainerapp "github.com/upbound/provider-azure/internal/controller/containerapp/customdomain" environment "github.com/upbound/provider-azure/internal/controller/containerapp/environment" + environmentcertificate "github.com/upbound/provider-azure/internal/controller/containerapp/environmentcertificate" + environmentcustomdomain "github.com/upbound/provider-azure/internal/controller/containerapp/environmentcustomdomain" + environmentdaprcomponent "github.com/upbound/provider-azure/internal/controller/containerapp/environmentdaprcomponent" + environmentstorage "github.com/upbound/provider-azure/internal/controller/containerapp/environmentstorage" agentpool "github.com/upbound/provider-azure/internal/controller/containerregistry/agentpool" containerconnectedregistry "github.com/upbound/provider-azure/internal/controller/containerregistry/containerconnectedregistry" registry "github.com/upbound/provider-azure/internal/controller/containerregistry/registry" @@ -907,7 +912,12 @@ func Setup_monolith(mgr ctrl.Manager, o controller.Options) error { budgetresourcegroup.Setup, budgetsubscription.Setup, containerapp.Setup, + customdomaincontainerapp.Setup, environment.Setup, + environmentcertificate.Setup, + environmentcustomdomain.Setup, + environmentdaprcomponent.Setup, + environmentstorage.Setup, agentpool.Setup, containerconnectedregistry.Setup, registry.Setup, diff --git a/package/crds/containerapp.azure.upbound.io_customdomains.yaml b/package/crds/containerapp.azure.upbound.io_customdomains.yaml new file mode 100644 index 000000000..64376137f --- /dev/null +++ b/package/crds/containerapp.azure.upbound.io_customdomains.yaml @@ -0,0 +1,591 @@ +--- +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: v0.14.0 + name: customdomains.containerapp.azure.upbound.io +spec: + group: containerapp.azure.upbound.io + names: + categories: + - crossplane + - managed + - azure + kind: CustomDomain + listKind: CustomDomainList + plural: customdomains + singular: customdomain + scope: Cluster + versions: + - additionalPrinterColumns: + - jsonPath: .status.conditions[?(@.type=='Synced')].status + name: SYNCED + type: string + - jsonPath: .status.conditions[?(@.type=='Ready')].status + name: READY + type: string + - jsonPath: .metadata.annotations.crossplane\.io/external-name + name: EXTERNAL-NAME + type: string + - jsonPath: .metadata.creationTimestamp + name: AGE + type: date + name: v1beta1 + schema: + openAPIV3Schema: + description: CustomDomain is the Schema for the CustomDomains API. Manages + a Container App Custom Domain. + properties: + apiVersion: + description: |- + APIVersion defines the versioned schema of this representation of an object. + Servers should convert recognized schemas to the latest internal value, and + may reject unrecognized values. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + type: string + kind: + description: |- + Kind is a string value representing the REST resource this object represents. + Servers may infer this from the endpoint the client submits requests to. + Cannot be updated. + In CamelCase. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + type: string + metadata: + type: object + spec: + description: CustomDomainSpec defines the desired state of CustomDomain + properties: + deletionPolicy: + default: Delete + description: |- + DeletionPolicy specifies what will happen to the underlying external + when this managed resource is deleted - either "Delete" or "Orphan" the + external resource. + This field is planned to be deprecated in favor of the ManagementPolicies + field in a future release. Currently, both could be set independently and + non-default values would be honored if the feature flag is enabled. + See the design doc for more information: https://github.com/crossplane/crossplane/blob/499895a25d1a1a0ba1604944ef98ac7a1a71f197/design/design-doc-observe-only-resources.md?plain=1#L223 + enum: + - Orphan + - Delete + type: string + forProvider: + properties: + certificateBindingType: + description: |- + The Certificate Binding type. Possible values include Disabled and SniEnabled. Required with container_app_environment_certificate_id. Changing this forces a new resource to be created. + The Binding type. Possible values include `Disabled` and `SniEnabled`. + type: string + containerAppEnvironmentCertificateId: + description: The ID of the Container App Environment Certificate + to use. Changing this forces a new resource to be created. + type: string + containerAppEnvironmentCertificateIdRef: + description: Reference to a EnvironmentCertificate in containerapp + to populate containerAppEnvironmentCertificateId. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + containerAppEnvironmentCertificateIdSelector: + description: Selector for a EnvironmentCertificate in containerapp + to populate containerAppEnvironmentCertificateId. + properties: + matchControllerRef: + description: |- + MatchControllerRef ensures an object with the same controller reference + as the selecting object is selected. + type: boolean + matchLabels: + additionalProperties: + type: string + description: MatchLabels ensures an object with matching labels + is selected. + type: object + policy: + description: Policies for selection. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + type: object + containerAppId: + description: The ID of the Container App to which this Custom + Domain should be bound. Changing this forces a new resource + to be created. + type: string + containerAppIdRef: + description: Reference to a ContainerApp in containerapp to populate + containerAppId. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + containerAppIdSelector: + description: Selector for a ContainerApp in containerapp to populate + containerAppId. + properties: + matchControllerRef: + description: |- + MatchControllerRef ensures an object with the same controller reference + as the selecting object is selected. + type: boolean + matchLabels: + additionalProperties: + type: string + description: MatchLabels ensures an object with matching labels + is selected. + type: object + policy: + description: Policies for selection. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + type: object + type: object + initProvider: + description: |- + 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. + properties: + certificateBindingType: + description: |- + The Certificate Binding type. Possible values include Disabled and SniEnabled. Required with container_app_environment_certificate_id. Changing this forces a new resource to be created. + The Binding type. Possible values include `Disabled` and `SniEnabled`. + type: string + containerAppEnvironmentCertificateId: + description: The ID of the Container App Environment Certificate + to use. Changing this forces a new resource to be created. + type: string + containerAppEnvironmentCertificateIdRef: + description: Reference to a EnvironmentCertificate in containerapp + to populate containerAppEnvironmentCertificateId. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + containerAppEnvironmentCertificateIdSelector: + description: Selector for a EnvironmentCertificate in containerapp + to populate containerAppEnvironmentCertificateId. + properties: + matchControllerRef: + description: |- + MatchControllerRef ensures an object with the same controller reference + as the selecting object is selected. + type: boolean + matchLabels: + additionalProperties: + type: string + description: MatchLabels ensures an object with matching labels + is selected. + type: object + policy: + description: Policies for selection. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + type: object + type: object + managementPolicies: + default: + - '*' + description: |- + THIS IS A BETA FIELD. It is on by default but can be opted out + through a Crossplane feature flag. + ManagementPolicies specify the array of actions Crossplane is allowed to + take on the managed and external resources. + This field is planned to replace the DeletionPolicy field in a future + release. Currently, both could be set independently and non-default + values would be honored if the feature flag is enabled. If both are + custom, the DeletionPolicy field will be ignored. + See the design doc for more information: https://github.com/crossplane/crossplane/blob/499895a25d1a1a0ba1604944ef98ac7a1a71f197/design/design-doc-observe-only-resources.md?plain=1#L223 + and this one: https://github.com/crossplane/crossplane/blob/444267e84783136daa93568b364a5f01228cacbe/design/one-pager-ignore-changes.md + items: + description: |- + A ManagementAction represents an action that the Crossplane controllers + can take on an external resource. + enum: + - Observe + - Create + - Update + - Delete + - LateInitialize + - '*' + type: string + type: array + providerConfigRef: + default: + name: default + description: |- + ProviderConfigReference specifies how the provider that will be used to + create, observe, update, and delete this managed resource should be + configured. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + publishConnectionDetailsTo: + description: |- + PublishConnectionDetailsTo specifies the connection secret config which + contains a name, metadata and a reference to secret store config to + which any connection details for this managed resource should be written. + Connection details frequently include the endpoint, username, + and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: |- + SecretStoreConfigRef specifies which secret store config should be used + for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: |- + Annotations are the annotations to be added to connection secret. + - For Kubernetes secrets, this will be used as "metadata.annotations". + - It is up to Secret Store implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: |- + Labels are the labels/tags to be added to connection secret. + - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store types. + type: object + type: + description: |- + Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object + writeConnectionSecretToRef: + description: |- + WriteConnectionSecretToReference specifies the namespace and name of a + Secret to which any connection details for this managed resource should + be written. Connection details frequently include the endpoint, username, + and password required to connect to the managed resource. + This field is planned to be replaced in a future release in favor of + PublishConnectionDetailsTo. Currently, both could be set independently + and connection details would be published to both without affecting + each other. + properties: + name: + description: Name of the secret. + type: string + namespace: + description: Namespace of the secret. + type: string + required: + - name + - namespace + type: object + required: + - forProvider + type: object + status: + description: CustomDomainStatus defines the observed state of CustomDomain. + properties: + atProvider: + properties: + certificateBindingType: + description: |- + The Certificate Binding type. Possible values include Disabled and SniEnabled. Required with container_app_environment_certificate_id. Changing this forces a new resource to be created. + The Binding type. Possible values include `Disabled` and `SniEnabled`. + type: string + containerAppEnvironmentCertificateId: + description: The ID of the Container App Environment Certificate + to use. Changing this forces a new resource to be created. + type: string + containerAppId: + description: The ID of the Container App to which this Custom + Domain should be bound. Changing this forces a new resource + to be created. + type: string + id: + type: string + type: object + conditions: + description: Conditions of the resource. + items: + description: A Condition that may apply to a resource. + properties: + lastTransitionTime: + description: |- + LastTransitionTime is the last time this condition transitioned from one + status to another. + format: date-time + type: string + message: + description: |- + A Message containing details about this condition's last transition from + one status to another, if any. + type: string + observedGeneration: + description: |- + ObservedGeneration represents the .metadata.generation that the condition was set based upon. + For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date + with respect to the current state of the instance. + format: int64 + type: integer + reason: + description: A Reason for this condition's last transition from + one status to another. + type: string + status: + description: Status of this condition; is it currently True, + False, or Unknown? + type: string + type: + description: |- + Type of this condition. At most one of each condition type may apply to + a resource at any point in time. + type: string + required: + - lastTransitionTime + - reason + - status + - type + type: object + type: array + x-kubernetes-list-map-keys: + - type + x-kubernetes-list-type: map + observedGeneration: + description: |- + ObservedGeneration is the latest metadata.generation + which resulted in either a ready state, or stalled due to error + it can not recover from without human intervention. + format: int64 + type: integer + type: object + required: + - spec + type: object + served: true + storage: true + subresources: + status: {} diff --git a/package/crds/containerapp.azure.upbound.io_environmentcertificates.yaml b/package/crds/containerapp.azure.upbound.io_environmentcertificates.yaml new file mode 100644 index 000000000..09cc54a52 --- /dev/null +++ b/package/crds/containerapp.azure.upbound.io_environmentcertificates.yaml @@ -0,0 +1,521 @@ +--- +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: v0.14.0 + name: environmentcertificates.containerapp.azure.upbound.io +spec: + group: containerapp.azure.upbound.io + names: + categories: + - crossplane + - managed + - azure + kind: EnvironmentCertificate + listKind: EnvironmentCertificateList + plural: environmentcertificates + singular: environmentcertificate + scope: Cluster + versions: + - additionalPrinterColumns: + - jsonPath: .status.conditions[?(@.type=='Synced')].status + name: SYNCED + type: string + - jsonPath: .status.conditions[?(@.type=='Ready')].status + name: READY + type: string + - jsonPath: .metadata.annotations.crossplane\.io/external-name + name: EXTERNAL-NAME + type: string + - jsonPath: .metadata.creationTimestamp + name: AGE + type: date + name: v1beta1 + schema: + openAPIV3Schema: + description: EnvironmentCertificate is the Schema for the EnvironmentCertificates + API. Manages a Container App Environment Certificate. + properties: + apiVersion: + description: |- + APIVersion defines the versioned schema of this representation of an object. + Servers should convert recognized schemas to the latest internal value, and + may reject unrecognized values. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + type: string + kind: + description: |- + Kind is a string value representing the REST resource this object represents. + Servers may infer this from the endpoint the client submits requests to. + Cannot be updated. + In CamelCase. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + type: string + metadata: + type: object + spec: + description: EnvironmentCertificateSpec defines the desired state of EnvironmentCertificate + properties: + deletionPolicy: + default: Delete + description: |- + DeletionPolicy specifies what will happen to the underlying external + when this managed resource is deleted - either "Delete" or "Orphan" the + external resource. + This field is planned to be deprecated in favor of the ManagementPolicies + field in a future release. Currently, both could be set independently and + non-default values would be honored if the feature flag is enabled. + See the design doc for more information: https://github.com/crossplane/crossplane/blob/499895a25d1a1a0ba1604944ef98ac7a1a71f197/design/design-doc-observe-only-resources.md?plain=1#L223 + enum: + - Orphan + - Delete + type: string + forProvider: + properties: + certificateBlobBase64: + description: |- + The Certificate Private Key as a base64 encoded PFX or PEM. Changing this forces a new resource to be created. + The Certificate Private Key as a base64 encoded PFX or PEM. + type: string + certificatePasswordSecretRef: + description: |- + The password for the Certificate. Changing this forces a new resource to be created. + The password for the Certificate. + properties: + key: + description: The key to select. + type: string + name: + description: Name of the secret. + type: string + namespace: + description: Namespace of the secret. + type: string + required: + - key + - name + - namespace + type: object + containerAppEnvironmentId: + description: |- + The Container App Managed Environment ID to configure this Certificate on. Changing this forces a new resource to be created. + The Container App Managed Environment ID to configure this Certificate on. + type: string + containerAppEnvironmentIdRef: + description: Reference to a Environment in containerapp to populate + containerAppEnvironmentId. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + containerAppEnvironmentIdSelector: + description: Selector for a Environment in containerapp to populate + containerAppEnvironmentId. + properties: + matchControllerRef: + description: |- + MatchControllerRef ensures an object with the same controller reference + as the selecting object is selected. + type: boolean + matchLabels: + additionalProperties: + type: string + description: MatchLabels ensures an object with matching labels + is selected. + type: object + policy: + description: Policies for selection. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + type: object + tags: + additionalProperties: + type: string + description: A mapping of tags to assign to the resource. + type: object + x-kubernetes-map-type: granular + type: object + initProvider: + description: |- + 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. + properties: + certificateBlobBase64: + description: |- + The Certificate Private Key as a base64 encoded PFX or PEM. Changing this forces a new resource to be created. + The Certificate Private Key as a base64 encoded PFX or PEM. + type: string + certificatePasswordSecretRef: + description: |- + The password for the Certificate. Changing this forces a new resource to be created. + The password for the Certificate. + properties: + key: + description: The key to select. + type: string + name: + description: Name of the secret. + type: string + namespace: + description: Namespace of the secret. + type: string + required: + - key + - name + - namespace + type: object + tags: + additionalProperties: + type: string + description: A mapping of tags to assign to the resource. + type: object + x-kubernetes-map-type: granular + required: + - certificatePasswordSecretRef + type: object + managementPolicies: + default: + - '*' + description: |- + THIS IS A BETA FIELD. It is on by default but can be opted out + through a Crossplane feature flag. + ManagementPolicies specify the array of actions Crossplane is allowed to + take on the managed and external resources. + This field is planned to replace the DeletionPolicy field in a future + release. Currently, both could be set independently and non-default + values would be honored if the feature flag is enabled. If both are + custom, the DeletionPolicy field will be ignored. + See the design doc for more information: https://github.com/crossplane/crossplane/blob/499895a25d1a1a0ba1604944ef98ac7a1a71f197/design/design-doc-observe-only-resources.md?plain=1#L223 + and this one: https://github.com/crossplane/crossplane/blob/444267e84783136daa93568b364a5f01228cacbe/design/one-pager-ignore-changes.md + items: + description: |- + A ManagementAction represents an action that the Crossplane controllers + can take on an external resource. + enum: + - Observe + - Create + - Update + - Delete + - LateInitialize + - '*' + type: string + type: array + providerConfigRef: + default: + name: default + description: |- + ProviderConfigReference specifies how the provider that will be used to + create, observe, update, and delete this managed resource should be + configured. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + publishConnectionDetailsTo: + description: |- + PublishConnectionDetailsTo specifies the connection secret config which + contains a name, metadata and a reference to secret store config to + which any connection details for this managed resource should be written. + Connection details frequently include the endpoint, username, + and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: |- + SecretStoreConfigRef specifies which secret store config should be used + for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: |- + Annotations are the annotations to be added to connection secret. + - For Kubernetes secrets, this will be used as "metadata.annotations". + - It is up to Secret Store implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: |- + Labels are the labels/tags to be added to connection secret. + - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store types. + type: object + type: + description: |- + Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object + writeConnectionSecretToRef: + description: |- + WriteConnectionSecretToReference specifies the namespace and name of a + Secret to which any connection details for this managed resource should + be written. Connection details frequently include the endpoint, username, + and password required to connect to the managed resource. + This field is planned to be replaced in a future release in favor of + PublishConnectionDetailsTo. Currently, both could be set independently + and connection details would be published to both without affecting + each other. + properties: + name: + description: Name of the secret. + type: string + namespace: + description: Namespace of the secret. + type: string + required: + - name + - namespace + type: object + required: + - forProvider + type: object + x-kubernetes-validations: + - message: spec.forProvider.certificateBlobBase64 is a required parameter + rule: '!(''*'' in self.managementPolicies || ''Create'' in self.managementPolicies + || ''Update'' in self.managementPolicies) || has(self.forProvider.certificateBlobBase64) + || (has(self.initProvider) && has(self.initProvider.certificateBlobBase64))' + - message: spec.forProvider.certificatePasswordSecretRef is a required + parameter + rule: '!(''*'' in self.managementPolicies || ''Create'' in self.managementPolicies + || ''Update'' in self.managementPolicies) || has(self.forProvider.certificatePasswordSecretRef)' + status: + description: EnvironmentCertificateStatus defines the observed state of + EnvironmentCertificate. + properties: + atProvider: + properties: + certificateBlobBase64: + description: |- + The Certificate Private Key as a base64 encoded PFX or PEM. Changing this forces a new resource to be created. + The Certificate Private Key as a base64 encoded PFX or PEM. + type: string + containerAppEnvironmentId: + description: |- + The Container App Managed Environment ID to configure this Certificate on. Changing this forces a new resource to be created. + The Container App Managed Environment ID to configure this Certificate on. + type: string + expirationDate: + description: |- + The expiration date for the Certificate. + The expiration date for the Certificate. + type: string + id: + description: The ID of the Container App Environment Certificate + type: string + issueDate: + description: |- + The date of issue for the Certificate. + The date of issue for the Certificate. + type: string + issuer: + description: |- + The Certificate Issuer. + The Certificate Issuer. + type: string + subjectName: + description: |- + The Subject Name for the Certificate. + The Subject Name for the Certificate. + type: string + tags: + additionalProperties: + type: string + description: A mapping of tags to assign to the resource. + type: object + x-kubernetes-map-type: granular + thumbprint: + description: |- + The Thumbprint of the Certificate. + The Thumbprint of the Certificate. + type: string + type: object + conditions: + description: Conditions of the resource. + items: + description: A Condition that may apply to a resource. + properties: + lastTransitionTime: + description: |- + LastTransitionTime is the last time this condition transitioned from one + status to another. + format: date-time + type: string + message: + description: |- + A Message containing details about this condition's last transition from + one status to another, if any. + type: string + observedGeneration: + description: |- + ObservedGeneration represents the .metadata.generation that the condition was set based upon. + For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date + with respect to the current state of the instance. + format: int64 + type: integer + reason: + description: A Reason for this condition's last transition from + one status to another. + type: string + status: + description: Status of this condition; is it currently True, + False, or Unknown? + type: string + type: + description: |- + Type of this condition. At most one of each condition type may apply to + a resource at any point in time. + type: string + required: + - lastTransitionTime + - reason + - status + - type + type: object + type: array + x-kubernetes-list-map-keys: + - type + x-kubernetes-list-type: map + observedGeneration: + description: |- + ObservedGeneration is the latest metadata.generation + which resulted in either a ready state, or stalled due to error + it can not recover from without human intervention. + format: int64 + type: integer + type: object + required: + - spec + type: object + served: true + storage: true + subresources: + status: {} diff --git a/package/crds/containerapp.azure.upbound.io_environmentcustomdomains.yaml b/package/crds/containerapp.azure.upbound.io_environmentcustomdomains.yaml new file mode 100644 index 000000000..cffda5484 --- /dev/null +++ b/package/crds/containerapp.azure.upbound.io_environmentcustomdomains.yaml @@ -0,0 +1,578 @@ +--- +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: v0.14.0 + name: environmentcustomdomains.containerapp.azure.upbound.io +spec: + group: containerapp.azure.upbound.io + names: + categories: + - crossplane + - managed + - azure + kind: EnvironmentCustomDomain + listKind: EnvironmentCustomDomainList + plural: environmentcustomdomains + singular: environmentcustomdomain + scope: Cluster + versions: + - additionalPrinterColumns: + - jsonPath: .status.conditions[?(@.type=='Synced')].status + name: SYNCED + type: string + - jsonPath: .status.conditions[?(@.type=='Ready')].status + name: READY + type: string + - jsonPath: .metadata.annotations.crossplane\.io/external-name + name: EXTERNAL-NAME + type: string + - jsonPath: .metadata.creationTimestamp + name: AGE + type: date + name: v1beta1 + schema: + openAPIV3Schema: + description: EnvironmentCustomDomain is the Schema for the EnvironmentCustomDomains + API. Manages a Container App Environment Custom Domain. + properties: + apiVersion: + description: |- + APIVersion defines the versioned schema of this representation of an object. + Servers should convert recognized schemas to the latest internal value, and + may reject unrecognized values. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + type: string + kind: + description: |- + Kind is a string value representing the REST resource this object represents. + Servers may infer this from the endpoint the client submits requests to. + Cannot be updated. + In CamelCase. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + type: string + metadata: + type: object + spec: + description: EnvironmentCustomDomainSpec defines the desired state of + EnvironmentCustomDomain + properties: + deletionPolicy: + default: Delete + description: |- + DeletionPolicy specifies what will happen to the underlying external + when this managed resource is deleted - either "Delete" or "Orphan" the + external resource. + This field is planned to be deprecated in favor of the ManagementPolicies + field in a future release. Currently, both could be set independently and + non-default values would be honored if the feature flag is enabled. + See the design doc for more information: https://github.com/crossplane/crossplane/blob/499895a25d1a1a0ba1604944ef98ac7a1a71f197/design/design-doc-observe-only-resources.md?plain=1#L223 + enum: + - Orphan + - Delete + type: string + forProvider: + properties: + certificateBlobBase64: + description: |- + The bundle of Private Key and Certificate for the Custom DNS Suffix as a base64 encoded PFX or PEM. + The Custom Domain Certificate Private Key as a base64 encoded PFX or PEM. + type: string + certificatePasswordSecretRef: + description: |- + The password for the Certificate bundle. + The Custom Domain Certificate password. + properties: + key: + description: The key to select. + type: string + name: + description: Name of the secret. + type: string + namespace: + description: Namespace of the secret. + type: string + required: + - key + - name + - namespace + type: object + containerAppEnvironmentId: + description: |- + The ID of the Container Apps Managed Environment. Changing this forces a new resource to be created. + The Container App Managed Environment ID to configure this Custom Domain on. + type: string + containerAppEnvironmentIdRef: + description: Reference to a Environment in containerapp to populate + containerAppEnvironmentId. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + containerAppEnvironmentIdSelector: + description: Selector for a Environment in containerapp to populate + containerAppEnvironmentId. + properties: + matchControllerRef: + description: |- + MatchControllerRef ensures an object with the same controller reference + as the selecting object is selected. + type: boolean + matchLabels: + additionalProperties: + type: string + description: MatchLabels ensures an object with matching labels + is selected. + type: object + policy: + description: Policies for selection. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + type: object + dnsSuffix: + description: |- + Custom DNS Suffix for the Container App Environment. + The Custom Domain DNS suffix for this Container App Environment. + type: string + type: object + initProvider: + description: |- + 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. + properties: + certificateBlobBase64: + description: |- + The bundle of Private Key and Certificate for the Custom DNS Suffix as a base64 encoded PFX or PEM. + The Custom Domain Certificate Private Key as a base64 encoded PFX or PEM. + type: string + certificatePasswordSecretRef: + description: |- + The password for the Certificate bundle. + The Custom Domain Certificate password. + properties: + key: + description: The key to select. + type: string + name: + description: Name of the secret. + type: string + namespace: + description: Namespace of the secret. + type: string + required: + - key + - name + - namespace + type: object + containerAppEnvironmentId: + description: |- + The ID of the Container Apps Managed Environment. Changing this forces a new resource to be created. + The Container App Managed Environment ID to configure this Custom Domain on. + type: string + containerAppEnvironmentIdRef: + description: Reference to a Environment in containerapp to populate + containerAppEnvironmentId. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + containerAppEnvironmentIdSelector: + description: Selector for a Environment in containerapp to populate + containerAppEnvironmentId. + properties: + matchControllerRef: + description: |- + MatchControllerRef ensures an object with the same controller reference + as the selecting object is selected. + type: boolean + matchLabels: + additionalProperties: + type: string + description: MatchLabels ensures an object with matching labels + is selected. + type: object + policy: + description: Policies for selection. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + type: object + dnsSuffix: + description: |- + Custom DNS Suffix for the Container App Environment. + The Custom Domain DNS suffix for this Container App Environment. + type: string + required: + - certificatePasswordSecretRef + type: object + managementPolicies: + default: + - '*' + description: |- + THIS IS A BETA FIELD. It is on by default but can be opted out + through a Crossplane feature flag. + ManagementPolicies specify the array of actions Crossplane is allowed to + take on the managed and external resources. + This field is planned to replace the DeletionPolicy field in a future + release. Currently, both could be set independently and non-default + values would be honored if the feature flag is enabled. If both are + custom, the DeletionPolicy field will be ignored. + See the design doc for more information: https://github.com/crossplane/crossplane/blob/499895a25d1a1a0ba1604944ef98ac7a1a71f197/design/design-doc-observe-only-resources.md?plain=1#L223 + and this one: https://github.com/crossplane/crossplane/blob/444267e84783136daa93568b364a5f01228cacbe/design/one-pager-ignore-changes.md + items: + description: |- + A ManagementAction represents an action that the Crossplane controllers + can take on an external resource. + enum: + - Observe + - Create + - Update + - Delete + - LateInitialize + - '*' + type: string + type: array + providerConfigRef: + default: + name: default + description: |- + ProviderConfigReference specifies how the provider that will be used to + create, observe, update, and delete this managed resource should be + configured. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + publishConnectionDetailsTo: + description: |- + PublishConnectionDetailsTo specifies the connection secret config which + contains a name, metadata and a reference to secret store config to + which any connection details for this managed resource should be written. + Connection details frequently include the endpoint, username, + and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: |- + SecretStoreConfigRef specifies which secret store config should be used + for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: |- + Annotations are the annotations to be added to connection secret. + - For Kubernetes secrets, this will be used as "metadata.annotations". + - It is up to Secret Store implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: |- + Labels are the labels/tags to be added to connection secret. + - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store types. + type: object + type: + description: |- + Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object + writeConnectionSecretToRef: + description: |- + WriteConnectionSecretToReference specifies the namespace and name of a + Secret to which any connection details for this managed resource should + be written. Connection details frequently include the endpoint, username, + and password required to connect to the managed resource. + This field is planned to be replaced in a future release in favor of + PublishConnectionDetailsTo. Currently, both could be set independently + and connection details would be published to both without affecting + each other. + properties: + name: + description: Name of the secret. + type: string + namespace: + description: Namespace of the secret. + type: string + required: + - name + - namespace + type: object + required: + - forProvider + type: object + x-kubernetes-validations: + - message: spec.forProvider.certificateBlobBase64 is a required parameter + rule: '!(''*'' in self.managementPolicies || ''Create'' in self.managementPolicies + || ''Update'' in self.managementPolicies) || has(self.forProvider.certificateBlobBase64) + || (has(self.initProvider) && has(self.initProvider.certificateBlobBase64))' + - message: spec.forProvider.certificatePasswordSecretRef is a required + parameter + rule: '!(''*'' in self.managementPolicies || ''Create'' in self.managementPolicies + || ''Update'' in self.managementPolicies) || has(self.forProvider.certificatePasswordSecretRef)' + - message: spec.forProvider.dnsSuffix is a required parameter + rule: '!(''*'' in self.managementPolicies || ''Create'' in self.managementPolicies + || ''Update'' in self.managementPolicies) || has(self.forProvider.dnsSuffix) + || (has(self.initProvider) && has(self.initProvider.dnsSuffix))' + status: + description: EnvironmentCustomDomainStatus defines the observed state + of EnvironmentCustomDomain. + properties: + atProvider: + properties: + certificateBlobBase64: + description: |- + The bundle of Private Key and Certificate for the Custom DNS Suffix as a base64 encoded PFX or PEM. + The Custom Domain Certificate Private Key as a base64 encoded PFX or PEM. + type: string + containerAppEnvironmentId: + description: |- + The ID of the Container Apps Managed Environment. Changing this forces a new resource to be created. + The Container App Managed Environment ID to configure this Custom Domain on. + type: string + dnsSuffix: + description: |- + Custom DNS Suffix for the Container App Environment. + The Custom Domain DNS suffix for this Container App Environment. + type: string + id: + type: string + type: object + conditions: + description: Conditions of the resource. + items: + description: A Condition that may apply to a resource. + properties: + lastTransitionTime: + description: |- + LastTransitionTime is the last time this condition transitioned from one + status to another. + format: date-time + type: string + message: + description: |- + A Message containing details about this condition's last transition from + one status to another, if any. + type: string + observedGeneration: + description: |- + ObservedGeneration represents the .metadata.generation that the condition was set based upon. + For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date + with respect to the current state of the instance. + format: int64 + type: integer + reason: + description: A Reason for this condition's last transition from + one status to another. + type: string + status: + description: Status of this condition; is it currently True, + False, or Unknown? + type: string + type: + description: |- + Type of this condition. At most one of each condition type may apply to + a resource at any point in time. + type: string + required: + - lastTransitionTime + - reason + - status + - type + type: object + type: array + x-kubernetes-list-map-keys: + - type + x-kubernetes-list-type: map + observedGeneration: + description: |- + ObservedGeneration is the latest metadata.generation + which resulted in either a ready state, or stalled due to error + it can not recover from without human intervention. + format: int64 + type: integer + type: object + required: + - spec + type: object + served: true + storage: true + subresources: + status: {} diff --git a/package/crds/containerapp.azure.upbound.io_environmentdaprcomponents.yaml b/package/crds/containerapp.azure.upbound.io_environmentdaprcomponents.yaml new file mode 100644 index 000000000..489cf61f8 --- /dev/null +++ b/package/crds/containerapp.azure.upbound.io_environmentdaprcomponents.yaml @@ -0,0 +1,666 @@ +--- +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: v0.14.0 + name: environmentdaprcomponents.containerapp.azure.upbound.io +spec: + group: containerapp.azure.upbound.io + names: + categories: + - crossplane + - managed + - azure + kind: EnvironmentDaprComponent + listKind: EnvironmentDaprComponentList + plural: environmentdaprcomponents + singular: environmentdaprcomponent + scope: Cluster + versions: + - additionalPrinterColumns: + - jsonPath: .status.conditions[?(@.type=='Synced')].status + name: SYNCED + type: string + - jsonPath: .status.conditions[?(@.type=='Ready')].status + name: READY + type: string + - jsonPath: .metadata.annotations.crossplane\.io/external-name + name: EXTERNAL-NAME + type: string + - jsonPath: .metadata.creationTimestamp + name: AGE + type: date + name: v1beta1 + schema: + openAPIV3Schema: + description: EnvironmentDaprComponent is the Schema for the EnvironmentDaprComponents + API. Manages a Dapr Component for a Container App Environment. + properties: + apiVersion: + description: |- + APIVersion defines the versioned schema of this representation of an object. + Servers should convert recognized schemas to the latest internal value, and + may reject unrecognized values. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + type: string + kind: + description: |- + Kind is a string value representing the REST resource this object represents. + Servers may infer this from the endpoint the client submits requests to. + Cannot be updated. + In CamelCase. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + type: string + metadata: + type: object + spec: + description: EnvironmentDaprComponentSpec defines the desired state of + EnvironmentDaprComponent + properties: + deletionPolicy: + default: Delete + description: |- + DeletionPolicy specifies what will happen to the underlying external + when this managed resource is deleted - either "Delete" or "Orphan" the + external resource. + This field is planned to be deprecated in favor of the ManagementPolicies + field in a future release. Currently, both could be set independently and + non-default values would be honored if the feature flag is enabled. + See the design doc for more information: https://github.com/crossplane/crossplane/blob/499895a25d1a1a0ba1604944ef98ac7a1a71f197/design/design-doc-observe-only-resources.md?plain=1#L223 + enum: + - Orphan + - Delete + type: string + forProvider: + properties: + componentType: + description: |- + The Dapr Component Type. For example state.azure.blobstorage. Changing this forces a new resource to be created. + The Dapr Component Type. For example `state.azure.blobstorage`. + type: string + containerAppEnvironmentId: + description: |- + The ID of the Container App Managed Environment for this Dapr Component. Changing this forces a new resource to be created. + The Container App Managed Environment ID to configure this Dapr component on. + type: string + containerAppEnvironmentIdRef: + description: Reference to a Environment in containerapp to populate + containerAppEnvironmentId. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + containerAppEnvironmentIdSelector: + description: Selector for a Environment in containerapp to populate + containerAppEnvironmentId. + properties: + matchControllerRef: + description: |- + MatchControllerRef ensures an object with the same controller reference + as the selecting object is selected. + type: boolean + matchLabels: + additionalProperties: + type: string + description: MatchLabels ensures an object with matching labels + is selected. + type: object + policy: + description: Policies for selection. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + type: object + ignoreErrors: + description: |- + Should the Dapr sidecar to continue initialisation if the component fails to load. Defaults to false + Should the Dapr sidecar to continue initialisation if the component fails to load. Defaults to `false` + type: boolean + initTimeout: + description: |- + The timeout for component initialisation as a ISO8601 formatted string. e.g. 5s, 2h, 1m. Defaults to 5s. + The component initialisation timeout in ISO8601 format. e.g. `5s`, `2h`, `1m`. Defaults to `5s`. + type: string + metadata: + description: One or more metadata blocks as detailed below. + items: + properties: + name: + description: |- + The name of the Metadata configuration item. + The name of the Metadata configuration item. + type: string + secretName: + description: |- + The name of a secret specified in the secrets block that contains the value for this metadata configuration item. + The name of a secret specified in the `secrets` block that contains the value for this metadata configuration item. + type: string + value: + description: |- + The value for this metadata configuration item. + The value for this metadata configuration item. + type: string + type: object + type: array + scopes: + description: |- + A list of scopes to which this component applies. + A list of scopes to which this component applies. e.g. a Container App's `dapr.app_id` value. + items: + type: string + type: array + secret: + description: A secret block as detailed below. + items: + properties: + identity: + description: The identity to use for accessing key vault + reference. + type: string + keyVaultSecretId: + description: |- + The ID of the Container App Environment Dapr Component + The Key Vault Secret ID. Could be either one of `id` or `versionless_id`. + type: string + name: + description: |- + The Secret name. + The secret name. + type: string + valueSecretRef: + description: |- + The value for this secret. + The value for this secret. + properties: + key: + description: The key to select. + type: string + name: + description: Name of the secret. + type: string + namespace: + description: Namespace of the secret. + type: string + required: + - key + - name + - namespace + type: object + type: object + type: array + version: + description: |- + The version of the component. + The version of the component. + type: string + type: object + initProvider: + description: |- + 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. + properties: + componentType: + description: |- + The Dapr Component Type. For example state.azure.blobstorage. Changing this forces a new resource to be created. + The Dapr Component Type. For example `state.azure.blobstorage`. + type: string + ignoreErrors: + description: |- + Should the Dapr sidecar to continue initialisation if the component fails to load. Defaults to false + Should the Dapr sidecar to continue initialisation if the component fails to load. Defaults to `false` + type: boolean + initTimeout: + description: |- + The timeout for component initialisation as a ISO8601 formatted string. e.g. 5s, 2h, 1m. Defaults to 5s. + The component initialisation timeout in ISO8601 format. e.g. `5s`, `2h`, `1m`. Defaults to `5s`. + type: string + metadata: + description: One or more metadata blocks as detailed below. + items: + properties: + name: + description: |- + The name of the Metadata configuration item. + The name of the Metadata configuration item. + type: string + secretName: + description: |- + The name of a secret specified in the secrets block that contains the value for this metadata configuration item. + The name of a secret specified in the `secrets` block that contains the value for this metadata configuration item. + type: string + value: + description: |- + The value for this metadata configuration item. + The value for this metadata configuration item. + type: string + type: object + type: array + scopes: + description: |- + A list of scopes to which this component applies. + A list of scopes to which this component applies. e.g. a Container App's `dapr.app_id` value. + items: + type: string + type: array + secret: + description: A secret block as detailed below. + items: + properties: + identity: + description: The identity to use for accessing key vault + reference. + type: string + keyVaultSecretId: + description: |- + The ID of the Container App Environment Dapr Component + The Key Vault Secret ID. Could be either one of `id` or `versionless_id`. + type: string + name: + description: |- + The Secret name. + The secret name. + type: string + valueSecretRef: + description: |- + The value for this secret. + The value for this secret. + properties: + key: + description: The key to select. + type: string + name: + description: Name of the secret. + type: string + namespace: + description: Namespace of the secret. + type: string + required: + - key + - name + - namespace + type: object + type: object + type: array + version: + description: |- + The version of the component. + The version of the component. + type: string + type: object + managementPolicies: + default: + - '*' + description: |- + THIS IS A BETA FIELD. It is on by default but can be opted out + through a Crossplane feature flag. + ManagementPolicies specify the array of actions Crossplane is allowed to + take on the managed and external resources. + This field is planned to replace the DeletionPolicy field in a future + release. Currently, both could be set independently and non-default + values would be honored if the feature flag is enabled. If both are + custom, the DeletionPolicy field will be ignored. + See the design doc for more information: https://github.com/crossplane/crossplane/blob/499895a25d1a1a0ba1604944ef98ac7a1a71f197/design/design-doc-observe-only-resources.md?plain=1#L223 + and this one: https://github.com/crossplane/crossplane/blob/444267e84783136daa93568b364a5f01228cacbe/design/one-pager-ignore-changes.md + items: + description: |- + A ManagementAction represents an action that the Crossplane controllers + can take on an external resource. + enum: + - Observe + - Create + - Update + - Delete + - LateInitialize + - '*' + type: string + type: array + providerConfigRef: + default: + name: default + description: |- + ProviderConfigReference specifies how the provider that will be used to + create, observe, update, and delete this managed resource should be + configured. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + publishConnectionDetailsTo: + description: |- + PublishConnectionDetailsTo specifies the connection secret config which + contains a name, metadata and a reference to secret store config to + which any connection details for this managed resource should be written. + Connection details frequently include the endpoint, username, + and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: |- + SecretStoreConfigRef specifies which secret store config should be used + for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: |- + Annotations are the annotations to be added to connection secret. + - For Kubernetes secrets, this will be used as "metadata.annotations". + - It is up to Secret Store implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: |- + Labels are the labels/tags to be added to connection secret. + - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store types. + type: object + type: + description: |- + Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object + writeConnectionSecretToRef: + description: |- + WriteConnectionSecretToReference specifies the namespace and name of a + Secret to which any connection details for this managed resource should + be written. Connection details frequently include the endpoint, username, + and password required to connect to the managed resource. + This field is planned to be replaced in a future release in favor of + PublishConnectionDetailsTo. Currently, both could be set independently + and connection details would be published to both without affecting + each other. + properties: + name: + description: Name of the secret. + type: string + namespace: + description: Namespace of the secret. + type: string + required: + - name + - namespace + type: object + required: + - forProvider + type: object + x-kubernetes-validations: + - message: spec.forProvider.componentType is a required parameter + rule: '!(''*'' in self.managementPolicies || ''Create'' in self.managementPolicies + || ''Update'' in self.managementPolicies) || has(self.forProvider.componentType) + || (has(self.initProvider) && has(self.initProvider.componentType))' + - message: spec.forProvider.version is a required parameter + rule: '!(''*'' in self.managementPolicies || ''Create'' in self.managementPolicies + || ''Update'' in self.managementPolicies) || has(self.forProvider.version) + || (has(self.initProvider) && has(self.initProvider.version))' + status: + description: EnvironmentDaprComponentStatus defines the observed state + of EnvironmentDaprComponent. + properties: + atProvider: + properties: + componentType: + description: |- + The Dapr Component Type. For example state.azure.blobstorage. Changing this forces a new resource to be created. + The Dapr Component Type. For example `state.azure.blobstorage`. + type: string + containerAppEnvironmentId: + description: |- + The ID of the Container App Managed Environment for this Dapr Component. Changing this forces a new resource to be created. + The Container App Managed Environment ID to configure this Dapr component on. + type: string + id: + description: The ID of the Container App Environment Dapr Component + type: string + ignoreErrors: + description: |- + Should the Dapr sidecar to continue initialisation if the component fails to load. Defaults to false + Should the Dapr sidecar to continue initialisation if the component fails to load. Defaults to `false` + type: boolean + initTimeout: + description: |- + The timeout for component initialisation as a ISO8601 formatted string. e.g. 5s, 2h, 1m. Defaults to 5s. + The component initialisation timeout in ISO8601 format. e.g. `5s`, `2h`, `1m`. Defaults to `5s`. + type: string + metadata: + description: One or more metadata blocks as detailed below. + items: + properties: + name: + description: |- + The name of the Metadata configuration item. + The name of the Metadata configuration item. + type: string + secretName: + description: |- + The name of a secret specified in the secrets block that contains the value for this metadata configuration item. + The name of a secret specified in the `secrets` block that contains the value for this metadata configuration item. + type: string + value: + description: |- + The value for this metadata configuration item. + The value for this metadata configuration item. + type: string + type: object + type: array + scopes: + description: |- + A list of scopes to which this component applies. + A list of scopes to which this component applies. e.g. a Container App's `dapr.app_id` value. + items: + type: string + type: array + secret: + description: A secret block as detailed below. + items: + properties: + identity: + description: The identity to use for accessing key vault + reference. + type: string + keyVaultSecretId: + description: |- + The ID of the Container App Environment Dapr Component + The Key Vault Secret ID. Could be either one of `id` or `versionless_id`. + type: string + name: + description: |- + The Secret name. + The secret name. + type: string + type: object + type: array + version: + description: |- + The version of the component. + The version of the component. + type: string + type: object + conditions: + description: Conditions of the resource. + items: + description: A Condition that may apply to a resource. + properties: + lastTransitionTime: + description: |- + LastTransitionTime is the last time this condition transitioned from one + status to another. + format: date-time + type: string + message: + description: |- + A Message containing details about this condition's last transition from + one status to another, if any. + type: string + observedGeneration: + description: |- + ObservedGeneration represents the .metadata.generation that the condition was set based upon. + For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date + with respect to the current state of the instance. + format: int64 + type: integer + reason: + description: A Reason for this condition's last transition from + one status to another. + type: string + status: + description: Status of this condition; is it currently True, + False, or Unknown? + type: string + type: + description: |- + Type of this condition. At most one of each condition type may apply to + a resource at any point in time. + type: string + required: + - lastTransitionTime + - reason + - status + - type + type: object + type: array + x-kubernetes-list-map-keys: + - type + x-kubernetes-list-type: map + observedGeneration: + description: |- + ObservedGeneration is the latest metadata.generation + which resulted in either a ready state, or stalled due to error + it can not recover from without human intervention. + format: int64 + type: integer + type: object + required: + - spec + type: object + served: true + storage: true + subresources: + status: {} diff --git a/package/crds/containerapp.azure.upbound.io_environmentstorages.yaml b/package/crds/containerapp.azure.upbound.io_environmentstorages.yaml new file mode 100644 index 000000000..1d535db55 --- /dev/null +++ b/package/crds/containerapp.azure.upbound.io_environmentstorages.yaml @@ -0,0 +1,802 @@ +--- +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: v0.14.0 + name: environmentstorages.containerapp.azure.upbound.io +spec: + group: containerapp.azure.upbound.io + names: + categories: + - crossplane + - managed + - azure + kind: EnvironmentStorage + listKind: EnvironmentStorageList + plural: environmentstorages + singular: environmentstorage + scope: Cluster + versions: + - additionalPrinterColumns: + - jsonPath: .status.conditions[?(@.type=='Synced')].status + name: SYNCED + type: string + - jsonPath: .status.conditions[?(@.type=='Ready')].status + name: READY + type: string + - jsonPath: .metadata.annotations.crossplane\.io/external-name + name: EXTERNAL-NAME + type: string + - jsonPath: .metadata.creationTimestamp + name: AGE + type: date + name: v1beta1 + schema: + openAPIV3Schema: + description: EnvironmentStorage is the Schema for the EnvironmentStorages + API. Manages a Container App Environment Storage. + properties: + apiVersion: + description: |- + APIVersion defines the versioned schema of this representation of an object. + Servers should convert recognized schemas to the latest internal value, and + may reject unrecognized values. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + type: string + kind: + description: |- + Kind is a string value representing the REST resource this object represents. + Servers may infer this from the endpoint the client submits requests to. + Cannot be updated. + In CamelCase. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + type: string + metadata: + type: object + spec: + description: EnvironmentStorageSpec defines the desired state of EnvironmentStorage + properties: + deletionPolicy: + default: Delete + description: |- + DeletionPolicy specifies what will happen to the underlying external + when this managed resource is deleted - either "Delete" or "Orphan" the + external resource. + This field is planned to be deprecated in favor of the ManagementPolicies + field in a future release. Currently, both could be set independently and + non-default values would be honored if the feature flag is enabled. + See the design doc for more information: https://github.com/crossplane/crossplane/blob/499895a25d1a1a0ba1604944ef98ac7a1a71f197/design/design-doc-observe-only-resources.md?plain=1#L223 + enum: + - Orphan + - Delete + type: string + forProvider: + properties: + accessKeySecretRef: + description: |- + The Storage Account Access Key. + The Storage Account Access Key. + properties: + key: + description: The key to select. + type: string + name: + description: Name of the secret. + type: string + namespace: + description: Namespace of the secret. + type: string + required: + - key + - name + - namespace + type: object + accessMode: + description: |- + The access mode to connect this storage to the Container App. Possible values include ReadOnly and ReadWrite. Changing this forces a new resource to be created. + The access mode to connect this storage to the Container App. Possible values include `ReadOnly` and `ReadWrite`. + type: string + accountName: + description: |- + The Azure Storage Account in which the Share to be used is located. Changing this forces a new resource to be created. + The Azure Storage Account in which the Share to be used is located. + type: string + accountNameRef: + description: Reference to a Account in storage to populate accountName. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + accountNameSelector: + description: Selector for a Account in storage to populate accountName. + properties: + matchControllerRef: + description: |- + MatchControllerRef ensures an object with the same controller reference + as the selecting object is selected. + type: boolean + matchLabels: + additionalProperties: + type: string + description: MatchLabels ensures an object with matching labels + is selected. + type: object + policy: + description: Policies for selection. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + type: object + containerAppEnvironmentId: + description: |- + The ID of the Container App Environment to which this storage belongs. Changing this forces a new resource to be created. + The ID of the Container App Environment to which this storage belongs. + type: string + containerAppEnvironmentIdRef: + description: Reference to a Environment in containerapp to populate + containerAppEnvironmentId. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + containerAppEnvironmentIdSelector: + description: Selector for a Environment in containerapp to populate + containerAppEnvironmentId. + properties: + matchControllerRef: + description: |- + MatchControllerRef ensures an object with the same controller reference + as the selecting object is selected. + type: boolean + matchLabels: + additionalProperties: + type: string + description: MatchLabels ensures an object with matching labels + is selected. + type: object + policy: + description: Policies for selection. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + type: object + shareName: + description: |- + The name of the Azure Storage Share to use. Changing this forces a new resource to be created. + The name of the Azure Storage Share to use. + type: string + shareNameRef: + description: Reference to a Share in storage to populate shareName. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + shareNameSelector: + description: Selector for a Share in storage to populate shareName. + properties: + matchControllerRef: + description: |- + MatchControllerRef ensures an object with the same controller reference + as the selecting object is selected. + type: boolean + matchLabels: + additionalProperties: + type: string + description: MatchLabels ensures an object with matching labels + is selected. + type: object + policy: + description: Policies for selection. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + type: object + type: object + initProvider: + description: |- + 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. + properties: + accessKeySecretRef: + description: |- + The Storage Account Access Key. + The Storage Account Access Key. + properties: + key: + description: The key to select. + type: string + name: + description: Name of the secret. + type: string + namespace: + description: Namespace of the secret. + type: string + required: + - key + - name + - namespace + type: object + accessMode: + description: |- + The access mode to connect this storage to the Container App. Possible values include ReadOnly and ReadWrite. Changing this forces a new resource to be created. + The access mode to connect this storage to the Container App. Possible values include `ReadOnly` and `ReadWrite`. + type: string + accountName: + description: |- + The Azure Storage Account in which the Share to be used is located. Changing this forces a new resource to be created. + The Azure Storage Account in which the Share to be used is located. + type: string + accountNameRef: + description: Reference to a Account in storage to populate accountName. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + accountNameSelector: + description: Selector for a Account in storage to populate accountName. + properties: + matchControllerRef: + description: |- + MatchControllerRef ensures an object with the same controller reference + as the selecting object is selected. + type: boolean + matchLabels: + additionalProperties: + type: string + description: MatchLabels ensures an object with matching labels + is selected. + type: object + policy: + description: Policies for selection. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + type: object + shareName: + description: |- + The name of the Azure Storage Share to use. Changing this forces a new resource to be created. + The name of the Azure Storage Share to use. + type: string + shareNameRef: + description: Reference to a Share in storage to populate shareName. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + shareNameSelector: + description: Selector for a Share in storage to populate shareName. + properties: + matchControllerRef: + description: |- + MatchControllerRef ensures an object with the same controller reference + as the selecting object is selected. + type: boolean + matchLabels: + additionalProperties: + type: string + description: MatchLabels ensures an object with matching labels + is selected. + type: object + policy: + description: Policies for selection. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + type: object + required: + - accessKeySecretRef + type: object + managementPolicies: + default: + - '*' + description: |- + THIS IS A BETA FIELD. It is on by default but can be opted out + through a Crossplane feature flag. + ManagementPolicies specify the array of actions Crossplane is allowed to + take on the managed and external resources. + This field is planned to replace the DeletionPolicy field in a future + release. Currently, both could be set independently and non-default + values would be honored if the feature flag is enabled. If both are + custom, the DeletionPolicy field will be ignored. + See the design doc for more information: https://github.com/crossplane/crossplane/blob/499895a25d1a1a0ba1604944ef98ac7a1a71f197/design/design-doc-observe-only-resources.md?plain=1#L223 + and this one: https://github.com/crossplane/crossplane/blob/444267e84783136daa93568b364a5f01228cacbe/design/one-pager-ignore-changes.md + items: + description: |- + A ManagementAction represents an action that the Crossplane controllers + can take on an external resource. + enum: + - Observe + - Create + - Update + - Delete + - LateInitialize + - '*' + type: string + type: array + providerConfigRef: + default: + name: default + description: |- + ProviderConfigReference specifies how the provider that will be used to + create, observe, update, and delete this managed resource should be + configured. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + publishConnectionDetailsTo: + description: |- + PublishConnectionDetailsTo specifies the connection secret config which + contains a name, metadata and a reference to secret store config to + which any connection details for this managed resource should be written. + Connection details frequently include the endpoint, username, + and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: |- + SecretStoreConfigRef specifies which secret store config should be used + for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: |- + Annotations are the annotations to be added to connection secret. + - For Kubernetes secrets, this will be used as "metadata.annotations". + - It is up to Secret Store implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: |- + Labels are the labels/tags to be added to connection secret. + - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store types. + type: object + type: + description: |- + Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object + writeConnectionSecretToRef: + description: |- + WriteConnectionSecretToReference specifies the namespace and name of a + Secret to which any connection details for this managed resource should + be written. Connection details frequently include the endpoint, username, + and password required to connect to the managed resource. + This field is planned to be replaced in a future release in favor of + PublishConnectionDetailsTo. Currently, both could be set independently + and connection details would be published to both without affecting + each other. + properties: + name: + description: Name of the secret. + type: string + namespace: + description: Namespace of the secret. + type: string + required: + - name + - namespace + type: object + required: + - forProvider + type: object + x-kubernetes-validations: + - message: spec.forProvider.accessKeySecretRef is a required parameter + rule: '!(''*'' in self.managementPolicies || ''Create'' in self.managementPolicies + || ''Update'' in self.managementPolicies) || has(self.forProvider.accessKeySecretRef)' + - message: spec.forProvider.accessMode is a required parameter + rule: '!(''*'' in self.managementPolicies || ''Create'' in self.managementPolicies + || ''Update'' in self.managementPolicies) || has(self.forProvider.accessMode) + || (has(self.initProvider) && has(self.initProvider.accessMode))' + status: + description: EnvironmentStorageStatus defines the observed state of EnvironmentStorage. + properties: + atProvider: + properties: + accessMode: + description: |- + The access mode to connect this storage to the Container App. Possible values include ReadOnly and ReadWrite. Changing this forces a new resource to be created. + The access mode to connect this storage to the Container App. Possible values include `ReadOnly` and `ReadWrite`. + type: string + accountName: + description: |- + The Azure Storage Account in which the Share to be used is located. Changing this forces a new resource to be created. + The Azure Storage Account in which the Share to be used is located. + type: string + containerAppEnvironmentId: + description: |- + The ID of the Container App Environment to which this storage belongs. Changing this forces a new resource to be created. + The ID of the Container App Environment to which this storage belongs. + type: string + id: + description: The ID of the Container App Environment Storage + type: string + shareName: + description: |- + The name of the Azure Storage Share to use. Changing this forces a new resource to be created. + The name of the Azure Storage Share to use. + type: string + type: object + conditions: + description: Conditions of the resource. + items: + description: A Condition that may apply to a resource. + properties: + lastTransitionTime: + description: |- + LastTransitionTime is the last time this condition transitioned from one + status to another. + format: date-time + type: string + message: + description: |- + A Message containing details about this condition's last transition from + one status to another, if any. + type: string + observedGeneration: + description: |- + ObservedGeneration represents the .metadata.generation that the condition was set based upon. + For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date + with respect to the current state of the instance. + format: int64 + type: integer + reason: + description: A Reason for this condition's last transition from + one status to another. + type: string + status: + description: Status of this condition; is it currently True, + False, or Unknown? + type: string + type: + description: |- + Type of this condition. At most one of each condition type may apply to + a resource at any point in time. + type: string + required: + - lastTransitionTime + - reason + - status + - type + type: object + type: array + x-kubernetes-list-map-keys: + - type + x-kubernetes-list-type: map + observedGeneration: + description: |- + ObservedGeneration is the latest metadata.generation + which resulted in either a ready state, or stalled due to error + it can not recover from without human intervention. + format: int64 + type: integer + type: object + required: + - spec + type: object + served: true + storage: true + subresources: + status: {}