v1beta1

package
v1.125.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

+kcc:proto=google.cloud.workstations.v1

+kubebuilder:object:generate=true +groupName=workstations.cnrm.cloud.google.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "workstations.cnrm.cloud.google.com", Version: "v1beta1"}

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

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var WorkstationClusterGVK = GroupVersion.WithKind("WorkstationCluster")

Functions

This section is empty.

Types

type WorkstationCluster

type WorkstationCluster struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   WorkstationClusterSpec   `json:"spec,omitempty"`
	Status WorkstationClusterStatus `json:"status,omitempty"`
}

WorkstationCluster is the Schema for the WorkstationCluster API +k8s:openapi-gen=true

func (*WorkstationCluster) DeepCopy

func (in *WorkstationCluster) DeepCopy() *WorkstationCluster

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

func (*WorkstationCluster) DeepCopyInto

func (in *WorkstationCluster) DeepCopyInto(out *WorkstationCluster)

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

func (*WorkstationCluster) DeepCopyObject

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

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

type WorkstationClusterAnnotation

type WorkstationClusterAnnotation struct {
	// Key for the annotation.
	Key string `json:"key,omitempty"`

	// Value for the annotation.
	Value string `json:"value,omitempty"`
}

func (*WorkstationClusterAnnotation) DeepCopy

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

func (*WorkstationClusterAnnotation) DeepCopyInto

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

type WorkstationClusterGCPCondition

type WorkstationClusterGCPCondition struct {
	// The status code, which should be an enum value of
	//  [google.rpc.Code][google.rpc.Code].
	Code *int32 `json:"code,omitempty"`

	// A developer-facing error message, which should be in English. Any
	//  user-facing error message should be localized and sent in the
	//  [google.rpc.Status.details][google.rpc.Status.details] field, or localized
	//  by the client.
	Message *string `json:"message,omitempty"`
}

+kcc:proto=google.rpc.Status

func (*WorkstationClusterGCPCondition) DeepCopy

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

func (*WorkstationClusterGCPCondition) DeepCopyInto

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

type WorkstationClusterLabel

type WorkstationClusterLabel struct {
	// Key for the annotation.
	Key string `json:"key,omitempty"`

	// Value for the annotation.
	Value string `json:"value,omitempty"`
}

func (*WorkstationClusterLabel) DeepCopy

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

func (*WorkstationClusterLabel) DeepCopyInto

func (in *WorkstationClusterLabel) DeepCopyInto(out *WorkstationClusterLabel)

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

type WorkstationClusterList

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

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object WorkstationClusterList contains a list of WorkstationCluster

func (*WorkstationClusterList) DeepCopy

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

func (*WorkstationClusterList) DeepCopyInto

func (in *WorkstationClusterList) DeepCopyInto(out *WorkstationClusterList)

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

func (*WorkstationClusterList) DeepCopyObject

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

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

type WorkstationClusterObservedState

type WorkstationClusterObservedState struct {
	// Output only. A system-assigned unique identifier for this workstation
	//  cluster.
	Uid *string `json:"uid,omitempty"`

	// Output only. Indicates whether this workstation cluster is currently being
	//  updated to match its intended state.
	Reconciling *bool `json:"reconciling,omitempty"`

	// Output only. Time when this workstation cluster was created.
	CreateTime *string `json:"createTime,omitempty"`

	// Output only. Time when this workstation cluster was most recently updated.
	UpdateTime *string `json:"updateTime,omitempty"`

	// Output only. Time when this workstation cluster was soft-deleted.
	DeleteTime *string `json:"deleteTime,omitempty"`

	// Optional. Checksum computed by the server. May be sent on update and delete
	//  requests to make sure that the client has an up-to-date value before
	//  proceeding.
	Etag *string `json:"etag,omitempty"`

	// Output only. The private IP address of the control plane for this
	//  workstation cluster. Workstation VMs need access to this IP address to work
	//  with the service, so make sure that your firewall rules allow egress from
	//  the workstation VMs to this address.
	ControlPlaneIP *string `json:"controlPlaneIP,omitempty"`

	// Output only. Hostname for the workstation cluster. This field will be
	//  populated only when private endpoint is enabled. To access workstations
	//  in the workstation cluster, create a new DNS zone mapping this domain
	//  name to an internal IP address and a forwarding rule mapping that address
	//  to the service attachment.
	ClusterHostname *string `json:"clusterHostname,omitempty"`

	// Output only. Service attachment URI for the workstation cluster. The
	//  service attachment is created when private endpoint is enabled. To access
	//  workstations in the workstation cluster, configure access to the managed
	//  service using [Private Service
	//  Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-services).
	ServiceAttachmentURI *string `json:"serviceAttachmentUri,omitempty"`

	// Output only. Whether this workstation cluster is in degraded mode, in which
	//  case it may require user action to restore full functionality. Details can
	//  be found in
	//  [conditions][google.cloud.workstations.v1.WorkstationCluster.conditions].
	Degraded *bool `json:"degraded,omitempty"`

	// Output only. Status conditions describing the workstation cluster's current
	//  state.
	GCPConditions []WorkstationClusterGCPCondition `json:"gcpConditions,omitempty"`
}

WorkstationClusterSpec defines the desired state of WorkstationCluster +kcc:proto=google.cloud.workstations.v1.WorkstationCluster

func (*WorkstationClusterObservedState) DeepCopy

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

func (*WorkstationClusterObservedState) DeepCopyInto

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

type WorkstationClusterSpec

type WorkstationClusterSpec struct {
	// Immutable. The Project that this resource belongs to.
	// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="ResourceID field is immutable"
	ProjectRef refs.ProjectRef `json:"projectRef"`

	// The location of the cluster.
	Location string `json:"location,omitempty"`

	// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="ResourceID field is immutable"
	// Immutable.
	// The WorkstationCluster name. If not given, the metadata.name will be used.
	ResourceID *string `json:"resourceID,omitempty"`

	// Optional. Human-readable name for this workstation cluster.
	DisplayName *string `json:"displayName,omitempty"`

	// Optional. Client-specified annotations.
	Annotations []WorkstationClusterAnnotation `json:"annotations,omitempty"`

	// Optional.
	//  [Labels](https://cloud.google.com/workstations/docs/label-resources) that
	//  are applied to the workstation cluster and that are also propagated to the
	//  underlying Compute Engine resources.
	Labels []WorkstationClusterLabel `json:"labels,omitempty"`

	// Immutable. Reference to the Compute Engine network in which instances associated
	//  with this workstation cluster will be created.
	// +required
	NetworkRef refs.ComputeNetworkRef `json:"networkRef"`

	// Immutable. Reference to the Compute Engine subnetwork in which instances
	//  associated with this workstation cluster will be created. Must be part of
	//  the subnetwork specified for this workstation cluster.
	// +required
	SubnetworkRef refs.ComputeSubnetworkRef `json:"subnetworkRef"`

	// Optional. Configuration for private workstation cluster.
	PrivateClusterConfig *WorkstationCluster_PrivateClusterConfig `json:"privateClusterConfig,omitempty"`
}

WorkstationClusterSpec defines the desired state of WorkstationCluster +kcc:proto=google.cloud.workstations.v1.WorkstationCluster

func (*WorkstationClusterSpec) DeepCopy

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

func (*WorkstationClusterSpec) DeepCopyInto

func (in *WorkstationClusterSpec) DeepCopyInto(out *WorkstationClusterSpec)

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

type WorkstationClusterStatus

type WorkstationClusterStatus struct {
	/* Conditions represent the latest available observations of the
	   object's current state. */
	Conditions []v1alpha1.Condition `json:"conditions,omitempty"`

	// ObservedGeneration is the generation of the resource that was most recently observed by the Config Connector controller. If this is equal to metadata.generation, then that means that the current reported status reflects the most recent desired state of the resource.
	ObservedGeneration *int64 `json:"observedGeneration,omitempty"`

	// A unique specifier for the WorkstationCluster resource in GCP.
	ExternalRef *string `json:"externalRef,omitempty"`

	// ObservedState is the state of the resource as most recently observed in GCP.
	ObservedState *WorkstationClusterObservedState `json:"observedState,omitempty"`
}

WorkstationClusterStatus defines the config connector machine state of WorkstationCluster

func (*WorkstationClusterStatus) DeepCopy

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

func (*WorkstationClusterStatus) DeepCopyInto

func (in *WorkstationClusterStatus) DeepCopyInto(out *WorkstationClusterStatus)

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

type WorkstationCluster_PrivateClusterConfig

type WorkstationCluster_PrivateClusterConfig struct {
	// Immutable. Whether Workstations endpoint is private.
	EnablePrivateEndpoint *bool `json:"enablePrivateEndpoint,omitempty"`

	// Optional. Additional projects that are allowed to attach to the
	//  workstation cluster's service attachment. By default, the workstation
	//  cluster's project and the VPC host project (if different) are allowed.
	AllowedProjects []refs.ProjectRef `json:"allowedProjects,omitempty"`
}

+kcc:proto=google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig

func (*WorkstationCluster_PrivateClusterConfig) DeepCopy

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

func (*WorkstationCluster_PrivateClusterConfig) DeepCopyInto

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

Jump to

Keyboard shortcuts

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