Documentation
¶
Overview ¶
Package v1beta1 contains API Schema definitions for the workstations v1beta1 API group. +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/pkg/apis/workstations +k8s:defaulter-gen=TypeMeta +groupName=workstations.cnrm.cloud.google.com
Index ¶
- Variables
- type WorkstationCluster
- type WorkstationClusterList
- type WorkstationClusterSpec
- type WorkstationClusterStatus
- type WorkstationclusterAllowedProjects
- type WorkstationclusterAnnotations
- type WorkstationclusterGcpConditionsStatus
- type WorkstationclusterLabels
- type WorkstationclusterObservedStateStatus
- type WorkstationclusterPrivateClusterConfig
Constants ¶
This section is empty.
Variables ¶
var ( // SchemeGroupVersion is the group version used to register these objects. SchemeGroupVersion = 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: SchemeGroupVersion} // AddToScheme is a global function that registers this API group & version to a scheme AddToScheme = SchemeBuilder.AddToScheme WorkstationClusterGVK = schema.GroupVersionKind{ Group: SchemeGroupVersion.Group, Version: SchemeGroupVersion.Version, Kind: reflect.TypeOf(WorkstationCluster{}).Name(), } )
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 workstations 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 WorkstationClusterList ¶
type WorkstationClusterList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []WorkstationCluster `json:"items"`
}
WorkstationClusterList contains a list of WorkstationCluster
func (*WorkstationClusterList) DeepCopy ¶
func (in *WorkstationClusterList) DeepCopy() *WorkstationClusterList
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 WorkstationClusterSpec ¶
type WorkstationClusterSpec struct {
/* Optional. Client-specified annotations. */
// +optional
Annotations []WorkstationclusterAnnotations `json:"annotations,omitempty"`
/* Optional. Human-readable name for this workstation cluster. */
// +optional
DisplayName *string `json:"displayName,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. */
// +optional
Labels []WorkstationclusterLabels `json:"labels,omitempty"`
/* The location of the cluster. */
// +optional
Location *string `json:"location,omitempty"`
/* Immutable. Reference to the Compute Engine network in which instances associated with this workstation cluster will be created. */
NetworkRef v1alpha1.ResourceRef `json:"networkRef"`
/* Optional. Configuration for private workstation cluster. */
// +optional
PrivateClusterConfig *WorkstationclusterPrivateClusterConfig `json:"privateClusterConfig,omitempty"`
/* Immutable. The Project that this resource belongs to. */
ProjectRef v1alpha1.ResourceRef `json:"projectRef"`
/* Immutable. The WorkstationCluster name. If not given, the metadata.name will be used. */
// +optional
ResourceID *string `json:"resourceID,omitempty"`
/* 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. */
SubnetworkRef v1alpha1.ResourceRef `json:"subnetworkRef"`
}
func (*WorkstationClusterSpec) DeepCopy ¶
func (in *WorkstationClusterSpec) DeepCopy() *WorkstationClusterSpec
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
WorkstationCluster's current state. */
Conditions []v1alpha1.Condition `json:"conditions,omitempty"`
/* A unique specifier for the WorkstationCluster resource in GCP. */
// +optional
ExternalRef *string `json:"externalRef,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. */
// +optional
ObservedGeneration *int64 `json:"observedGeneration,omitempty"`
/* ObservedState is the state of the resource as most recently observed in GCP. */
// +optional
ObservedState *WorkstationclusterObservedStateStatus `json:"observedState,omitempty"`
}
func (*WorkstationClusterStatus) DeepCopy ¶
func (in *WorkstationClusterStatus) DeepCopy() *WorkstationClusterStatus
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 WorkstationclusterAllowedProjects ¶
type WorkstationclusterAllowedProjects struct {
/* The `projectID` field of a project, when not managed by Config Connector. */
// +optional
External *string `json:"external,omitempty"`
/* The kind of the Project resource; optional but must be `Project` if provided. */
// +optional
Kind *string `json:"kind,omitempty"`
/* The `name` field of a `Project` resource. */
// +optional
Name *string `json:"name,omitempty"`
/* The `namespace` field of a `Project` resource. */
// +optional
Namespace *string `json:"namespace,omitempty"`
}
func (*WorkstationclusterAllowedProjects) DeepCopy ¶
func (in *WorkstationclusterAllowedProjects) DeepCopy() *WorkstationclusterAllowedProjects
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkstationclusterAllowedProjects.
func (*WorkstationclusterAllowedProjects) DeepCopyInto ¶
func (in *WorkstationclusterAllowedProjects) DeepCopyInto(out *WorkstationclusterAllowedProjects)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WorkstationclusterAnnotations ¶
type WorkstationclusterAnnotations struct {
/* Key for the annotation. */
// +optional
Key *string `json:"key,omitempty"`
/* Value for the annotation. */
// +optional
Value *string `json:"value,omitempty"`
}
func (*WorkstationclusterAnnotations) DeepCopy ¶
func (in *WorkstationclusterAnnotations) DeepCopy() *WorkstationclusterAnnotations
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkstationclusterAnnotations.
func (*WorkstationclusterAnnotations) DeepCopyInto ¶
func (in *WorkstationclusterAnnotations) DeepCopyInto(out *WorkstationclusterAnnotations)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WorkstationclusterGcpConditionsStatus ¶
type WorkstationclusterGcpConditionsStatus struct {
/* The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code]. */
// +optional
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. */
// +optional
Message *string `json:"message,omitempty"`
}
func (*WorkstationclusterGcpConditionsStatus) DeepCopy ¶
func (in *WorkstationclusterGcpConditionsStatus) DeepCopy() *WorkstationclusterGcpConditionsStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkstationclusterGcpConditionsStatus.
func (*WorkstationclusterGcpConditionsStatus) DeepCopyInto ¶
func (in *WorkstationclusterGcpConditionsStatus) DeepCopyInto(out *WorkstationclusterGcpConditionsStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WorkstationclusterLabels ¶
type WorkstationclusterLabels struct {
/* Key for the label. */
// +optional
Key *string `json:"key,omitempty"`
/* Value for the label. */
// +optional
Value *string `json:"value,omitempty"`
}
func (*WorkstationclusterLabels) DeepCopy ¶
func (in *WorkstationclusterLabels) DeepCopy() *WorkstationclusterLabels
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkstationclusterLabels.
func (*WorkstationclusterLabels) DeepCopyInto ¶
func (in *WorkstationclusterLabels) DeepCopyInto(out *WorkstationclusterLabels)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WorkstationclusterObservedStateStatus ¶
type WorkstationclusterObservedStateStatus struct {
/* 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. */
// +optional
ClusterHostname *string `json:"clusterHostname,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. */
// +optional
ControlPlaneIP *string `json:"controlPlaneIP,omitempty"`
/* Output only. Time when this workstation cluster was created. */
// +optional
CreateTime *string `json:"createTime,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]. */
// +optional
Degraded *bool `json:"degraded,omitempty"`
/* Output only. Time when this workstation cluster was soft-deleted. */
// +optional
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. */
// +optional
Etag *string `json:"etag,omitempty"`
/* Output only. Status conditions describing the workstation cluster's current state. */
// +optional
GcpConditions []WorkstationclusterGcpConditionsStatus `json:"gcpConditions,omitempty"`
/* Output only. Indicates whether this workstation cluster is currently being updated to match its intended state. */
// +optional
Reconciling *bool `json:"reconciling,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). */
// +optional
ServiceAttachmentUri *string `json:"serviceAttachmentUri,omitempty"`
/* Output only. A system-assigned unique identifier for this workstation cluster. */
// +optional
Uid *string `json:"uid,omitempty"`
/* Output only. Time when this workstation cluster was most recently updated. */
// +optional
UpdateTime *string `json:"updateTime,omitempty"`
}
func (*WorkstationclusterObservedStateStatus) DeepCopy ¶
func (in *WorkstationclusterObservedStateStatus) DeepCopy() *WorkstationclusterObservedStateStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkstationclusterObservedStateStatus.
func (*WorkstationclusterObservedStateStatus) DeepCopyInto ¶
func (in *WorkstationclusterObservedStateStatus) DeepCopyInto(out *WorkstationclusterObservedStateStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WorkstationclusterPrivateClusterConfig ¶
type WorkstationclusterPrivateClusterConfig struct {
/* 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. */
// +optional
AllowedProjects []WorkstationclusterAllowedProjects `json:"allowedProjects,omitempty"`
/* Immutable. Whether Workstations endpoint is private. */
// +optional
EnablePrivateEndpoint *bool `json:"enablePrivateEndpoint,omitempty"`
}
func (*WorkstationclusterPrivateClusterConfig) DeepCopy ¶
func (in *WorkstationclusterPrivateClusterConfig) DeepCopy() *WorkstationclusterPrivateClusterConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkstationclusterPrivateClusterConfig.
func (*WorkstationclusterPrivateClusterConfig) DeepCopyInto ¶
func (in *WorkstationclusterPrivateClusterConfig) DeepCopyInto(out *WorkstationclusterPrivateClusterConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.