Documentation ¶
Overview ¶
+kubebuilder:object:generate=true +groupName=assuredworkloads.gcp.jet.crossplane.io +versionName=v1alpha1
Index ¶
- Constants
- Variables
- type KMSSettingsObservation
- type KMSSettingsParameters
- type ResourceSettingsObservation
- type ResourceSettingsParameters
- type ResourcesObservation
- type ResourcesParameters
- type Workload
- func (in *Workload) DeepCopy() *Workload
- func (in *Workload) DeepCopyInto(out *Workload)
- func (in *Workload) DeepCopyObject() runtime.Object
- func (mg *Workload) GetCondition(ct xpv1.ConditionType) xpv1.Condition
- func (tr *Workload) GetConnectionDetailsMapping() map[string]string
- func (mg *Workload) GetDeletionPolicy() xpv1.DeletionPolicy
- func (tr *Workload) GetID() string
- func (tr *Workload) GetObservation() (map[string]interface{}, error)
- func (tr *Workload) GetParameters() (map[string]interface{}, error)
- func (mg *Workload) GetProviderConfigReference() *xpv1.Reference
- func (mg *Workload) GetProviderReference() *xpv1.Reference
- func (mg *Workload) GetTerraformResourceType() string
- func (tr *Workload) GetTerraformSchemaVersion() int
- func (mg *Workload) GetWriteConnectionSecretToReference() *xpv1.SecretReference
- func (tr *Workload) LateInitialize(attrs []byte) (bool, error)
- func (mg *Workload) SetConditions(c ...xpv1.Condition)
- func (mg *Workload) SetDeletionPolicy(r xpv1.DeletionPolicy)
- func (tr *Workload) SetObservation(obs map[string]interface{}) error
- func (tr *Workload) SetParameters(params map[string]interface{}) error
- func (mg *Workload) SetProviderConfigReference(r *xpv1.Reference)
- func (mg *Workload) SetProviderReference(r *xpv1.Reference)
- func (mg *Workload) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
- type WorkloadList
- type WorkloadObservation
- type WorkloadParameters
- type WorkloadSpec
- type WorkloadStatus
Constants ¶
const ( CRDGroup = "assuredworkloads.gcp.jet.crossplane.io" CRDVersion = "v1alpha1" )
Package type metadata.
Variables ¶
var ( // CRDGroupVersion is the API Group Version used to register the objects CRDGroupVersion = schema.GroupVersion{Group: CRDGroup, Version: CRDVersion} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: CRDGroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
var ( Workload_Kind = "Workload" Workload_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: Workload_Kind}.String() Workload_KindAPIVersion = Workload_Kind + "." + CRDGroupVersion.String() Workload_GroupVersionKind = CRDGroupVersion.WithKind(Workload_Kind) )
Repository type metadata.
Functions ¶
This section is empty.
Types ¶
type KMSSettingsObservation ¶
type KMSSettingsObservation struct { }
func (*KMSSettingsObservation) DeepCopy ¶
func (in *KMSSettingsObservation) DeepCopy() *KMSSettingsObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KMSSettingsObservation.
func (*KMSSettingsObservation) DeepCopyInto ¶
func (in *KMSSettingsObservation) DeepCopyInto(out *KMSSettingsObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KMSSettingsParameters ¶
type KMSSettingsParameters struct { // Required. Input only. Immutable. The time at which the Key Management Service will automatically create a new version of the crypto key and mark it as the primary. // +kubebuilder:validation:Required NextRotationTime *string `json:"nextRotationTime" tf:"next_rotation_time,omitempty"` // Required. Input only. Immutable. will be advanced by this period when the Key Management Service automatically rotates a key. Must be at least 24 hours and at most 876,000 hours. // +kubebuilder:validation:Required RotationPeriod *string `json:"rotationPeriod" tf:"rotation_period,omitempty"` }
func (*KMSSettingsParameters) DeepCopy ¶
func (in *KMSSettingsParameters) DeepCopy() *KMSSettingsParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KMSSettingsParameters.
func (*KMSSettingsParameters) DeepCopyInto ¶
func (in *KMSSettingsParameters) DeepCopyInto(out *KMSSettingsParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceSettingsObservation ¶
type ResourceSettingsObservation struct { }
func (*ResourceSettingsObservation) DeepCopy ¶
func (in *ResourceSettingsObservation) DeepCopy() *ResourceSettingsObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceSettingsObservation.
func (*ResourceSettingsObservation) DeepCopyInto ¶
func (in *ResourceSettingsObservation) DeepCopyInto(out *ResourceSettingsObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceSettingsParameters ¶
type ResourceSettingsParameters struct { // Resource identifier. For a project this represents project_number. If the project is already taken, the workload creation will fail. // +kubebuilder:validation:Optional ResourceID *string `json:"resourceId,omitempty" tf:"resource_id,omitempty"` // Indicates the type of resource. This field should be specified to correspond the id to the right project type (CONSUMER_PROJECT or ENCRYPTION_KEYS_PROJECT) Possible values: RESOURCE_TYPE_UNSPECIFIED, CONSUMER_PROJECT, ENCRYPTION_KEYS_PROJECT, KEYRING, CONSUMER_FOLDER // +kubebuilder:validation:Optional ResourceType *string `json:"resourceType,omitempty" tf:"resource_type,omitempty"` }
func (*ResourceSettingsParameters) DeepCopy ¶
func (in *ResourceSettingsParameters) DeepCopy() *ResourceSettingsParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceSettingsParameters.
func (*ResourceSettingsParameters) DeepCopyInto ¶
func (in *ResourceSettingsParameters) DeepCopyInto(out *ResourceSettingsParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourcesObservation ¶
type ResourcesObservation struct { ResourceID *int64 `json:"resourceId,omitempty" tf:"resource_id,omitempty"` ResourceType *string `json:"resourceType,omitempty" tf:"resource_type,omitempty"` }
func (*ResourcesObservation) DeepCopy ¶
func (in *ResourcesObservation) DeepCopy() *ResourcesObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourcesObservation.
func (*ResourcesObservation) DeepCopyInto ¶
func (in *ResourcesObservation) DeepCopyInto(out *ResourcesObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourcesParameters ¶
type ResourcesParameters struct { }
func (*ResourcesParameters) DeepCopy ¶
func (in *ResourcesParameters) DeepCopy() *ResourcesParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourcesParameters.
func (*ResourcesParameters) DeepCopyInto ¶
func (in *ResourcesParameters) DeepCopyInto(out *ResourcesParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Workload ¶
type Workload struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec WorkloadSpec `json:"spec"` Status WorkloadStatus `json:"status,omitempty"` }
Workload is the Schema for the Workloads API +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:subresource:status +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,gcpjet}
func (*Workload) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Workload.
func (*Workload) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Workload) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Workload) GetCondition ¶
func (mg *Workload) GetCondition(ct xpv1.ConditionType) xpv1.Condition
GetCondition of this Workload.
func (*Workload) GetConnectionDetailsMapping ¶
GetConnectionDetailsMapping for this Workload
func (*Workload) GetDeletionPolicy ¶
func (mg *Workload) GetDeletionPolicy() xpv1.DeletionPolicy
GetDeletionPolicy of this Workload.
func (*Workload) GetObservation ¶
GetObservation of this Workload
func (*Workload) GetParameters ¶
GetParameters of this Workload
func (*Workload) GetProviderConfigReference ¶
GetProviderConfigReference of this Workload.
func (*Workload) GetProviderReference ¶
GetProviderReference of this Workload. Deprecated: Use GetProviderConfigReference.
func (*Workload) GetTerraformResourceType ¶
GetTerraformResourceType returns Terraform resource type for this Workload
func (*Workload) GetTerraformSchemaVersion ¶
GetTerraformSchemaVersion returns the associated Terraform schema version
func (*Workload) GetWriteConnectionSecretToReference ¶
func (mg *Workload) GetWriteConnectionSecretToReference() *xpv1.SecretReference
GetWriteConnectionSecretToReference of this Workload.
func (*Workload) LateInitialize ¶
LateInitialize this Workload using its observed tfState. returns True if there are any spec changes for the resource.
func (*Workload) SetConditions ¶
SetConditions of this Workload.
func (*Workload) SetDeletionPolicy ¶
func (mg *Workload) SetDeletionPolicy(r xpv1.DeletionPolicy)
SetDeletionPolicy of this Workload.
func (*Workload) SetObservation ¶
SetObservation for this Workload
func (*Workload) SetParameters ¶
SetParameters for this Workload
func (*Workload) SetProviderConfigReference ¶
SetProviderConfigReference of this Workload.
func (*Workload) SetProviderReference ¶
SetProviderReference of this Workload. Deprecated: Use SetProviderConfigReference.
func (*Workload) SetWriteConnectionSecretToReference ¶
func (mg *Workload) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
SetWriteConnectionSecretToReference of this Workload.
type WorkloadList ¶
type WorkloadList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Workload `json:"items"` }
WorkloadList contains a list of Workloads
func (*WorkloadList) DeepCopy ¶
func (in *WorkloadList) DeepCopy() *WorkloadList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkloadList.
func (*WorkloadList) DeepCopyInto ¶
func (in *WorkloadList) DeepCopyInto(out *WorkloadList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*WorkloadList) DeepCopyObject ¶
func (in *WorkloadList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*WorkloadList) GetItems ¶
func (l *WorkloadList) GetItems() []resource.Managed
GetItems of this WorkloadList.
type WorkloadObservation ¶
type WorkloadObservation struct { CreateTime *string `json:"createTime,omitempty" tf:"create_time,omitempty"` ID *string `json:"id,omitempty" tf:"id,omitempty"` Name *string `json:"name,omitempty" tf:"name,omitempty"` Resources []ResourcesObservation `json:"resources,omitempty" tf:"resources,omitempty"` }
func (*WorkloadObservation) DeepCopy ¶
func (in *WorkloadObservation) DeepCopy() *WorkloadObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkloadObservation.
func (*WorkloadObservation) DeepCopyInto ¶
func (in *WorkloadObservation) DeepCopyInto(out *WorkloadObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WorkloadParameters ¶
type WorkloadParameters struct { // Required. Input only. The billing account used for the resources which are direct children of workload. This billing account is initially associated with the resources created as part of Workload creation. After the initial creation of these resources, the customer can change the assigned billing account. The resource name has the form `billingAccounts/{billing_account_id}`. For example, 'billingAccounts/012345-567890-ABCDEF`. // +kubebuilder:validation:Required BillingAccount *string `json:"billingAccount" tf:"billing_account,omitempty"` // Required. Immutable. Compliance Regime associated with this workload. Possible values: COMPLIANCE_REGIME_UNSPECIFIED, IL4, CJIS, FEDRAMP_HIGH, FEDRAMP_MODERATE, US_REGIONAL_ACCESS // +kubebuilder:validation:Required ComplianceRegime *string `json:"complianceRegime" tf:"compliance_regime,omitempty"` // Required. The user-assigned display name of the Workload. When present it must be between 4 to 30 characters. Allowed characters are: lowercase and uppercase letters, numbers, hyphen, and spaces. Example: My Workload // +kubebuilder:validation:Required DisplayName *string `json:"displayName" tf:"display_name,omitempty"` // Input only. Settings used to create a CMEK crypto key. When set a project with a KMS CMEK key is provisioned. This field is mandatory for a subset of Compliance Regimes. // +kubebuilder:validation:Optional KMSSettings []KMSSettingsParameters `json:"kmsSettings,omitempty" tf:"kms_settings,omitempty"` // Optional. Labels applied to the workload. // +kubebuilder:validation:Optional Labels map[string]*string `json:"labels,omitempty" tf:"labels,omitempty"` // The location for the resource // +kubebuilder:validation:Required Location *string `json:"location" tf:"location,omitempty"` // The organization for the resource // +kubebuilder:validation:Required Organization *string `json:"organization" tf:"organization,omitempty"` // Input only. The parent resource for the resources managed by this Assured Workload. May be either an organization or a folder. Must be the same or a child of the Workload parent. If not specified all resources are created under the Workload parent. Formats: folders/{folder_id}, organizations/{organization_id} // +kubebuilder:validation:Optional ProvisionedResourcesParent *string `json:"provisionedResourcesParent,omitempty" tf:"provisioned_resources_parent,omitempty"` // Input only. Resource properties that are used to customize workload resources. These properties (such as custom project id) will be used to create workload resources if possible. This field is optional. // +kubebuilder:validation:Optional ResourceSettings []ResourceSettingsParameters `json:"resourceSettings,omitempty" tf:"resource_settings,omitempty"` }
func (*WorkloadParameters) DeepCopy ¶
func (in *WorkloadParameters) DeepCopy() *WorkloadParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkloadParameters.
func (*WorkloadParameters) DeepCopyInto ¶
func (in *WorkloadParameters) DeepCopyInto(out *WorkloadParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WorkloadSpec ¶
type WorkloadSpec struct { v1.ResourceSpec `json:",inline"` ForProvider WorkloadParameters `json:"forProvider"` }
WorkloadSpec defines the desired state of Workload
func (*WorkloadSpec) DeepCopy ¶
func (in *WorkloadSpec) DeepCopy() *WorkloadSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkloadSpec.
func (*WorkloadSpec) DeepCopyInto ¶
func (in *WorkloadSpec) DeepCopyInto(out *WorkloadSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WorkloadStatus ¶
type WorkloadStatus struct { v1.ResourceStatus `json:",inline"` AtProvider WorkloadObservation `json:"atProvider,omitempty"` }
WorkloadStatus defines the observed state of Workload.
func (*WorkloadStatus) DeepCopy ¶
func (in *WorkloadStatus) DeepCopy() *WorkloadStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkloadStatus.
func (*WorkloadStatus) DeepCopyInto ¶
func (in *WorkloadStatus) DeepCopyInto(out *WorkloadStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.