Documentation ¶
Overview ¶
Generate deepcopy object for gkehub/v1beta1 API group
Package v1beta1 contains API Schema definitions for the gkehub v1beta1 API group. +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/GoogleCloudPlatform/k8s-config-connector/pkg/apis/gkehub +k8s:defaulter-gen=TypeMeta +groupName=gkehub.cnrm.cloud.google.com
Index ¶
- Variables
- type GKEHubMembership
- type GKEHubMembershipList
- type GKEHubMembershipSpec
- type GKEHubMembershipStatus
- type MembershipAuthority
- type MembershipAuthorityStatus
- type MembershipConnectResourcesStatus
- type MembershipEndpoint
- type MembershipEndpointStatus
- type MembershipGkeCluster
- type MembershipKubernetesMetadataStatus
- type MembershipKubernetesResource
- type MembershipKubernetesResourceStatus
- type MembershipMembershipResourcesStatus
- type MembershipResourceOptions
- type MembershipStateStatus
Constants ¶
This section is empty.
Variables ¶
var ( // SchemeGroupVersion is the group version used to register these objects. SchemeGroupVersion = schema.GroupVersion{Group: "gkehub.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 GKEHubMembershipGVK = schema.GroupVersionKind{ Group: SchemeGroupVersion.Group, Version: SchemeGroupVersion.Version, Kind: reflect.TypeOf(GKEHubMembership{}).Name(), } )
Functions ¶
This section is empty.
Types ¶
type GKEHubMembership ¶
type GKEHubMembership struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec GKEHubMembershipSpec `json:"spec,omitempty"` Status GKEHubMembershipStatus `json:"status,omitempty"` }
GKEHubMembership is the Schema for the gkehub API +k8s:openapi-gen=true
func (*GKEHubMembership) DeepCopy ¶
func (in *GKEHubMembership) DeepCopy() *GKEHubMembership
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GKEHubMembership.
func (*GKEHubMembership) DeepCopyInto ¶
func (in *GKEHubMembership) DeepCopyInto(out *GKEHubMembership)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GKEHubMembership) DeepCopyObject ¶
func (in *GKEHubMembership) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type GKEHubMembershipList ¶
type GKEHubMembershipList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []GKEHubMembership `json:"items"` }
GKEHubMembershipList contains a list of GKEHubMembership
func (*GKEHubMembershipList) DeepCopy ¶
func (in *GKEHubMembershipList) DeepCopy() *GKEHubMembershipList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GKEHubMembershipList.
func (*GKEHubMembershipList) DeepCopyInto ¶
func (in *GKEHubMembershipList) DeepCopyInto(out *GKEHubMembershipList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GKEHubMembershipList) DeepCopyObject ¶
func (in *GKEHubMembershipList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type GKEHubMembershipSpec ¶
type GKEHubMembershipSpec struct { /* Optional. How to identify workloads from this Membership. See the documentation on Workload Identity for more details: https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity */ // +optional Authority *MembershipAuthority `json:"authority,omitempty"` /* Description of this membership, limited to 63 characters. Must match the regex: `*` This field is present for legacy purposes. */ // +optional Description *string `json:"description,omitempty"` /* Optional. Endpoint information to reach this member. */ // +optional Endpoint *MembershipEndpoint `json:"endpoint,omitempty"` /* Optional. An externally-generated and managed ID for this Membership. This ID may be modified after creation, but this is not recommended. The ID must match the regex: `*` If this Membership represents a Kubernetes cluster, this value should be set to the UID of the `kube-system` namespace object. */ // +optional ExternalId *string `json:"externalId,omitempty"` /* Optional. The infrastructure type this Membership is running on. Possible values: INFRASTRUCTURE_TYPE_UNSPECIFIED, ON_PREM, MULTI_CLOUD */ // +optional InfrastructureType *string `json:"infrastructureType,omitempty"` /* The location for the resource */ Location string `json:"location"` /* Immutable. Optional. The name of the resource. Used for creation and acquisition. When unset, the value of `metadata.name` is used as the default. */ // +optional ResourceID *string `json:"resourceID,omitempty"` }
func (*GKEHubMembershipSpec) DeepCopy ¶
func (in *GKEHubMembershipSpec) DeepCopy() *GKEHubMembershipSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GKEHubMembershipSpec.
func (*GKEHubMembershipSpec) DeepCopyInto ¶
func (in *GKEHubMembershipSpec) DeepCopyInto(out *GKEHubMembershipSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GKEHubMembershipStatus ¶
type GKEHubMembershipStatus struct { /* Conditions represent the latest available observations of the GKEHubMembership's current state. */ Conditions []v1alpha1.Condition `json:"conditions,omitempty"` /* */ Authority MembershipAuthorityStatus `json:"authority,omitempty"` /* Output only. When the Membership was created. */ CreateTime string `json:"createTime,omitempty"` /* Output only. When the Membership was deleted. */ DeleteTime string `json:"deleteTime,omitempty"` /* */ Endpoint MembershipEndpointStatus `json:"endpoint,omitempty"` /* Output only. For clusters using Connect, the timestamp of the most recent connection established with Google Cloud. This time is updated every several minutes, not continuously. For clusters that do not use GKE Connect, or that have never connected successfully, this field will be unset. */ LastConnectionTime string `json:"lastConnectionTime,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 int `json:"observedGeneration,omitempty"` /* Output only. State of the Membership resource. */ State MembershipStateStatus `json:"state,omitempty"` /* Output only. Google-generated UUID for this resource. This is unique across all Membership resources. If a Membership resource is deleted and another resource with the same name is created, it gets a different unique_id. */ UniqueId string `json:"uniqueId,omitempty"` /* Output only. When the Membership was last updated. */ UpdateTime string `json:"updateTime,omitempty"` }
func (*GKEHubMembershipStatus) DeepCopy ¶
func (in *GKEHubMembershipStatus) DeepCopy() *GKEHubMembershipStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GKEHubMembershipStatus.
func (*GKEHubMembershipStatus) DeepCopyInto ¶
func (in *GKEHubMembershipStatus) DeepCopyInto(out *GKEHubMembershipStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MembershipAuthority ¶
type MembershipAuthority struct { /* Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://` and be a valid URL with length <2000 characters. If set, then Google will allow valid OIDC tokens from this issuer to authenticate within the workload_identity_pool. OIDC discovery will be performed on this URI to validate tokens from the issuer. Clearing `issuer` disables Workload Identity. `issuer` cannot be directly modified; it must be cleared (and Workload Identity disabled) before using a new issuer (and re-enabling Workload Identity). */ // +optional Issuer *string `json:"issuer,omitempty"` }
func (*MembershipAuthority) DeepCopy ¶
func (in *MembershipAuthority) DeepCopy() *MembershipAuthority
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MembershipAuthority.
func (*MembershipAuthority) DeepCopyInto ¶
func (in *MembershipAuthority) DeepCopyInto(out *MembershipAuthority)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MembershipAuthorityStatus ¶
type MembershipAuthorityStatus struct { /* Output only. An identity provider that reflects the `issuer` in the workload identity pool. */ IdentityProvider string `json:"identityProvider,omitempty"` /* Output only. The name of the workload identity pool in which `issuer` will be recognized. There is a single Workload Identity Pool per Hub that is shared between all Memberships that belong to that Hub. For a Hub hosted in {PROJECT_ID}, the workload pool format is `{PROJECT_ID}.hub.id.goog`, although this is subject to change in newer versions of this API. */ WorkloadIdentityPool string `json:"workloadIdentityPool,omitempty"` }
func (*MembershipAuthorityStatus) DeepCopy ¶
func (in *MembershipAuthorityStatus) DeepCopy() *MembershipAuthorityStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MembershipAuthorityStatus.
func (*MembershipAuthorityStatus) DeepCopyInto ¶
func (in *MembershipAuthorityStatus) DeepCopyInto(out *MembershipAuthorityStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MembershipConnectResourcesStatus ¶
type MembershipConnectResourcesStatus struct { /* Whether the resource provided in the manifest is `cluster_scoped`. If unset, the manifest is assumed to be namespace scoped. This field is used for REST mapping when applying the resource in a cluster. */ ClusterScoped bool `json:"clusterScoped,omitempty"` /* YAML manifest of the resource. */ Manifest string `json:"manifest,omitempty"` }
func (*MembershipConnectResourcesStatus) DeepCopy ¶
func (in *MembershipConnectResourcesStatus) DeepCopy() *MembershipConnectResourcesStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MembershipConnectResourcesStatus.
func (*MembershipConnectResourcesStatus) DeepCopyInto ¶
func (in *MembershipConnectResourcesStatus) DeepCopyInto(out *MembershipConnectResourcesStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MembershipEndpoint ¶
type MembershipEndpoint struct { /* Optional. GKE-specific information. Only present if this Membership is a GKE cluster. */ // +optional GkeCluster *MembershipGkeCluster `json:"gkeCluster,omitempty"` /* Optional. The in-cluster Kubernetes Resources that should be applied for a correctly registered cluster, in the steady state. These resources: * Ensure that the cluster is exclusively registered to one and only one Hub Membership. * Propagate Workload Pool Information available in the Membership Authority field. * Ensure proper initial configuration of default Hub Features. */ // +optional KubernetesResource *MembershipKubernetesResource `json:"kubernetesResource,omitempty"` }
func (*MembershipEndpoint) DeepCopy ¶
func (in *MembershipEndpoint) DeepCopy() *MembershipEndpoint
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MembershipEndpoint.
func (*MembershipEndpoint) DeepCopyInto ¶
func (in *MembershipEndpoint) DeepCopyInto(out *MembershipEndpoint)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MembershipEndpointStatus ¶
type MembershipEndpointStatus struct { /* Output only. Useful Kubernetes-specific metadata. */ KubernetesMetadata MembershipKubernetesMetadataStatus `json:"kubernetesMetadata,omitempty"` /* */ KubernetesResource MembershipKubernetesResourceStatus `json:"kubernetesResource,omitempty"` }
func (*MembershipEndpointStatus) DeepCopy ¶
func (in *MembershipEndpointStatus) DeepCopy() *MembershipEndpointStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MembershipEndpointStatus.
func (*MembershipEndpointStatus) DeepCopyInto ¶
func (in *MembershipEndpointStatus) DeepCopyInto(out *MembershipEndpointStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MembershipGkeCluster ¶
type MembershipGkeCluster struct { /* */ // +optional ResourceRef *v1alpha1.ResourceRef `json:"resourceRef,omitempty"` }
func (*MembershipGkeCluster) DeepCopy ¶
func (in *MembershipGkeCluster) DeepCopy() *MembershipGkeCluster
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MembershipGkeCluster.
func (*MembershipGkeCluster) DeepCopyInto ¶
func (in *MembershipGkeCluster) DeepCopyInto(out *MembershipGkeCluster)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MembershipKubernetesMetadataStatus ¶
type MembershipKubernetesMetadataStatus struct { /* Output only. Kubernetes API server version string as reported by `/version`. */ KubernetesApiServerVersion string `json:"kubernetesApiServerVersion,omitempty"` /* Output only. The total memory capacity as reported by the sum of all Kubernetes nodes resources, defined in MB. */ MemoryMb int `json:"memoryMb,omitempty"` /* Output only. Node count as reported by Kubernetes nodes resources. */ NodeCount int `json:"nodeCount,omitempty"` /* Output only. Node providerID as reported by the first node in the list of nodes on the Kubernetes endpoint. On Kubernetes platforms that support zero-node clusters (like GKE-on-GCP), the node_count will be zero and the node_provider_id will be empty. */ NodeProviderId string `json:"nodeProviderId,omitempty"` /* Output only. The time at which these details were last updated. This update_time is different from the Membership-level update_time since EndpointDetails are updated internally for API consumers. */ UpdateTime string `json:"updateTime,omitempty"` /* Output only. vCPU count as reported by Kubernetes nodes resources. */ VcpuCount int `json:"vcpuCount,omitempty"` }
func (*MembershipKubernetesMetadataStatus) DeepCopy ¶
func (in *MembershipKubernetesMetadataStatus) DeepCopy() *MembershipKubernetesMetadataStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MembershipKubernetesMetadataStatus.
func (*MembershipKubernetesMetadataStatus) DeepCopyInto ¶
func (in *MembershipKubernetesMetadataStatus) DeepCopyInto(out *MembershipKubernetesMetadataStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MembershipKubernetesResource ¶
type MembershipKubernetesResource struct { /* Input only. The YAML representation of the Membership CR. This field is ignored for GKE clusters where Hub can read the CR directly. Callers should provide the CR that is currently present in the cluster during CreateMembership or UpdateMembership, or leave this field empty if none exists. The CR manifest is used to validate the cluster has not been registered with another Membership. */ // +optional MembershipCrManifest *string `json:"membershipCrManifest,omitempty"` /* Optional. Options for Kubernetes resource generation. */ // +optional ResourceOptions *MembershipResourceOptions `json:"resourceOptions,omitempty"` }
func (*MembershipKubernetesResource) DeepCopy ¶
func (in *MembershipKubernetesResource) DeepCopy() *MembershipKubernetesResource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MembershipKubernetesResource.
func (*MembershipKubernetesResource) DeepCopyInto ¶
func (in *MembershipKubernetesResource) DeepCopyInto(out *MembershipKubernetesResource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MembershipKubernetesResourceStatus ¶
type MembershipKubernetesResourceStatus struct { /* Output only. The Kubernetes resources for installing the GKE Connect agent This field is only populated in the Membership returned from a successful long-running operation from CreateMembership or UpdateMembership. It is not populated during normal GetMembership or ListMemberships requests. To get the resource manifest after the initial registration, the caller should make a UpdateMembership call with an empty field mask. */ ConnectResources []MembershipConnectResourcesStatus `json:"connectResources,omitempty"` /* Output only. Additional Kubernetes resources that need to be applied to the cluster after Membership creation, and after every update. This field is only populated in the Membership returned from a successful long-running operation from CreateMembership or UpdateMembership. It is not populated during normal GetMembership or ListMemberships requests. To get the resource manifest after the initial registration, the caller should make a UpdateMembership call with an empty field mask. */ MembershipResources []MembershipMembershipResourcesStatus `json:"membershipResources,omitempty"` }
func (*MembershipKubernetesResourceStatus) DeepCopy ¶
func (in *MembershipKubernetesResourceStatus) DeepCopy() *MembershipKubernetesResourceStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MembershipKubernetesResourceStatus.
func (*MembershipKubernetesResourceStatus) DeepCopyInto ¶
func (in *MembershipKubernetesResourceStatus) DeepCopyInto(out *MembershipKubernetesResourceStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MembershipMembershipResourcesStatus ¶
type MembershipMembershipResourcesStatus struct { /* Whether the resource provided in the manifest is `cluster_scoped`. If unset, the manifest is assumed to be namespace scoped. This field is used for REST mapping when applying the resource in a cluster. */ ClusterScoped bool `json:"clusterScoped,omitempty"` /* YAML manifest of the resource. */ Manifest string `json:"manifest,omitempty"` }
func (*MembershipMembershipResourcesStatus) DeepCopy ¶
func (in *MembershipMembershipResourcesStatus) DeepCopy() *MembershipMembershipResourcesStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MembershipMembershipResourcesStatus.
func (*MembershipMembershipResourcesStatus) DeepCopyInto ¶
func (in *MembershipMembershipResourcesStatus) DeepCopyInto(out *MembershipMembershipResourcesStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MembershipResourceOptions ¶
type MembershipResourceOptions struct { /* Optional. The Connect agent version to use for connect_resources. Defaults to the latest GKE Connect version. The version must be a currently supported version, obsolete versions will be rejected. */ // +optional ConnectVersion *string `json:"connectVersion,omitempty"` /* Optional. Use `apiextensions/v1beta1` instead of `apiextensions/v1` for CustomResourceDefinition resources. This option should be set for clusters with Kubernetes apiserver versions <1.16. */ // +optional V1beta1Crd *bool `json:"v1beta1Crd,omitempty"` }
func (*MembershipResourceOptions) DeepCopy ¶
func (in *MembershipResourceOptions) DeepCopy() *MembershipResourceOptions
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MembershipResourceOptions.
func (*MembershipResourceOptions) DeepCopyInto ¶
func (in *MembershipResourceOptions) DeepCopyInto(out *MembershipResourceOptions)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MembershipStateStatus ¶
type MembershipStateStatus struct { /* Output only. The current state of the Membership resource. Possible values: CODE_UNSPECIFIED, CREATING, READY, DELETING, UPDATING, SERVICE_UPDATING */ Code string `json:"code,omitempty"` }
func (*MembershipStateStatus) DeepCopy ¶
func (in *MembershipStateStatus) DeepCopy() *MembershipStateStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MembershipStateStatus.
func (*MembershipStateStatus) DeepCopyInto ¶
func (in *MembershipStateStatus) DeepCopyInto(out *MembershipStateStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.