v1alpha1

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

+groupName=assured.google.kubeform.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api.
	// localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes.
	SchemeBuilder runtime.SchemeBuilder

	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: assured.GroupName, Version: "v1alpha1"}

Functions

func GetDecoder

func GetDecoder() map[string]jsoniter.ValDecoder

func GetEncoder

func GetEncoder() map[string]jsoniter.ValEncoder

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type WorkloadsWorkload

type WorkloadsWorkload struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              WorkloadsWorkloadSpec   `json:"spec,omitempty"`
	Status            WorkloadsWorkloadStatus `json:"status,omitempty"`
}

func (*WorkloadsWorkload) DeepCopy

func (in *WorkloadsWorkload) DeepCopy() *WorkloadsWorkload

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

func (*WorkloadsWorkload) DeepCopyInto

func (in *WorkloadsWorkload) DeepCopyInto(out *WorkloadsWorkload)

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

func (*WorkloadsWorkload) DeepCopyObject

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

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

func (*WorkloadsWorkload) SetupWebhookWithManager

func (r *WorkloadsWorkload) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*WorkloadsWorkload) ValidateCreate

func (r *WorkloadsWorkload) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*WorkloadsWorkload) ValidateDelete

func (r *WorkloadsWorkload) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*WorkloadsWorkload) ValidateUpdate

func (r *WorkloadsWorkload) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type WorkloadsWorkloadList

type WorkloadsWorkloadList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	// Items is a list of WorkloadsWorkload CRD objects
	Items []WorkloadsWorkload `json:"items,omitempty"`
}

WorkloadsWorkloadList is a list of WorkloadsWorkloads

func (*WorkloadsWorkloadList) DeepCopy

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

func (*WorkloadsWorkloadList) DeepCopyInto

func (in *WorkloadsWorkloadList) DeepCopyInto(out *WorkloadsWorkloadList)

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

func (*WorkloadsWorkloadList) DeepCopyObject

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

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

type WorkloadsWorkloadSpec

type WorkloadsWorkloadSpec struct {
	State *WorkloadsWorkloadSpecResource `json:"state,omitempty" tf:"-"`

	Resource WorkloadsWorkloadSpecResource `json:"resource" tf:"resource"`

	UpdatePolicy base.UpdatePolicy `json:"updatePolicy,omitempty" tf:"-"`

	TerminationPolicy base.TerminationPolicy `json:"terminationPolicy,omitempty" tf:"-"`

	ProviderRef core.LocalObjectReference `json:"providerRef" tf:"-"`

	BackendRef *core.LocalObjectReference `json:"backendRef,omitempty" tf:"-"`
}

func (*WorkloadsWorkloadSpec) DeepCopy

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

func (*WorkloadsWorkloadSpec) DeepCopyInto

func (in *WorkloadsWorkloadSpec) DeepCopyInto(out *WorkloadsWorkloadSpec)

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

type WorkloadsWorkloadSpecKmsSettings

type WorkloadsWorkloadSpecKmsSettings 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.
	NextRotationTime *string `json:"nextRotationTime" tf:"next_rotation_time"`
	// 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.
	RotationPeriod *string `json:"rotationPeriod" tf:"rotation_period"`
}

func (*WorkloadsWorkloadSpecKmsSettings) DeepCopy

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

func (*WorkloadsWorkloadSpecKmsSettings) DeepCopyInto

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

type WorkloadsWorkloadSpecKmsSettingsCodec

type WorkloadsWorkloadSpecKmsSettingsCodec struct {
}

+k8s:deepcopy-gen=false

func (WorkloadsWorkloadSpecKmsSettingsCodec) Decode

func (WorkloadsWorkloadSpecKmsSettingsCodec) Encode

func (WorkloadsWorkloadSpecKmsSettingsCodec) IsEmpty

type WorkloadsWorkloadSpecResource

type WorkloadsWorkloadSpecResource struct {
	Timeouts *base.ResourceTimeout `json:"timeouts,omitempty" tf:"timeouts"`

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

	// 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`.
	BillingAccount *string `json:"billingAccount" tf:"billing_account"`
	// Required. Immutable. Compliance Regime associated with this workload. Possible values: COMPLIANCE_REGIME_UNSPECIFIED, IL4, CJIS, FEDRAMP_HIGH, FEDRAMP_MODERATE, US_REGIONAL_ACCESS
	ComplianceRegime *string `json:"complianceRegime" tf:"compliance_regime"`
	// Output only. Immutable. The Workload creation timestamp.
	// +optional
	CreateTime *string `json:"createTime,omitempty" tf:"create_time"`
	// 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
	DisplayName *string `json:"displayName" tf:"display_name"`
	// 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.
	// +optional
	KmsSettings *WorkloadsWorkloadSpecKmsSettings `json:"kmsSettings,omitempty" tf:"kms_settings"`
	// Optional. Labels applied to the workload.
	// +optional
	Labels *map[string]string `json:"labels,omitempty" tf:"labels"`
	// The location for the resource
	Location *string `json:"location" tf:"location"`
	// Output only. The resource name of the workload.
	// +optional
	Name *string `json:"name,omitempty" tf:"name"`
	// The organization for the resource
	Organization *string `json:"organization" tf:"organization"`
	// 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}
	// +optional
	ProvisionedResourcesParent *string `json:"provisionedResourcesParent,omitempty" tf:"provisioned_resources_parent"`
	// 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.
	// +optional
	ResourceSettings []WorkloadsWorkloadSpecResourceSettings `json:"resourceSettings,omitempty" tf:"resource_settings"`
	// Output only. The resources associated with this workload. These resources will be created when creating the workload. If any of the projects already exist, the workload creation will fail. Always read only.
	// +optional
	Resources []WorkloadsWorkloadSpecResources `json:"resources,omitempty" tf:"resources"`
}

func (*WorkloadsWorkloadSpecResource) DeepCopy

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

func (*WorkloadsWorkloadSpecResource) DeepCopyInto

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

type WorkloadsWorkloadSpecResourceSettings

type WorkloadsWorkloadSpecResourceSettings struct {
	// Resource identifier. For a project this represents project_number. If the project is already taken, the workload creation will fail.
	// +optional
	ResourceID *string `json:"resourceID,omitempty" tf:"resource_id"`
	// 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
	// +optional
	ResourceType *string `json:"resourceType,omitempty" tf:"resource_type"`
}

func (*WorkloadsWorkloadSpecResourceSettings) DeepCopy

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

func (*WorkloadsWorkloadSpecResourceSettings) DeepCopyInto

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

type WorkloadsWorkloadSpecResources

type WorkloadsWorkloadSpecResources struct {
	// Resource identifier. For a project this represents project_number.
	// +optional
	ResourceID *int64 `json:"resourceID,omitempty" tf:"resource_id"`
	// Indicates the type of resource. Possible values: RESOURCE_TYPE_UNSPECIFIED, CONSUMER_PROJECT, ENCRYPTION_KEYS_PROJECT, KEYRING, CONSUMER_FOLDER
	// +optional
	ResourceType *string `json:"resourceType,omitempty" tf:"resource_type"`
}

func (*WorkloadsWorkloadSpecResources) DeepCopy

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

func (*WorkloadsWorkloadSpecResources) DeepCopyInto

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

type WorkloadsWorkloadStatus

type WorkloadsWorkloadStatus struct {
	// Resource generation, which is updated on mutation by the API Server.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
	// +optional
	Phase status.Status `json:"phase,omitempty"`
	// +optional
	Conditions []kmapi.Condition `json:"conditions,omitempty"`
}

func (*WorkloadsWorkloadStatus) DeepCopy

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

func (*WorkloadsWorkloadStatus) DeepCopyInto

func (in *WorkloadsWorkloadStatus) DeepCopyInto(out *WorkloadsWorkloadStatus)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL