Documentation
¶
Overview ¶
Package v1alpha3 contains managed resources for GCP compute services such as GKE. +kubebuilder:object:generate=true +groupName=compute.gcp.crossplane.io +versionName=v1alpha3
Index ¶
- Constants
- Variables
- type GKECluster
- func (in *GKECluster) DeepCopy() *GKECluster
- func (in *GKECluster) DeepCopyInto(out *GKECluster)
- func (in *GKECluster) DeepCopyObject() runtime.Object
- func (mg *GKECluster) GetBindingPhase() runtimev1alpha1.BindingPhase
- func (mg *GKECluster) GetClaimReference() *corev1.ObjectReference
- func (mg *GKECluster) GetClassReference() *corev1.ObjectReference
- func (mg *GKECluster) GetCondition(ct runtimev1alpha1.ConditionType) runtimev1alpha1.Condition
- func (mg *GKECluster) GetReclaimPolicy() runtimev1alpha1.ReclaimPolicy
- func (mg *GKECluster) GetWriteConnectionSecretToReference() *runtimev1alpha1.SecretReference
- func (mg *GKECluster) SetBindingPhase(p runtimev1alpha1.BindingPhase)
- func (mg *GKECluster) SetClaimReference(r *corev1.ObjectReference)
- func (mg *GKECluster) SetClassReference(r *corev1.ObjectReference)
- func (mg *GKECluster) SetConditions(c ...runtimev1alpha1.Condition)
- func (mg *GKECluster) SetReclaimPolicy(r runtimev1alpha1.ReclaimPolicy)
- func (mg *GKECluster) SetWriteConnectionSecretToReference(r *runtimev1alpha1.SecretReference)
- type GKEClusterClass
- func (in *GKEClusterClass) DeepCopy() *GKEClusterClass
- func (in *GKEClusterClass) DeepCopyInto(out *GKEClusterClass)
- func (in *GKEClusterClass) DeepCopyObject() runtime.Object
- func (cs *GKEClusterClass) GetReclaimPolicy() runtimev1alpha1.ReclaimPolicy
- func (cs *GKEClusterClass) SetReclaimPolicy(r runtimev1alpha1.ReclaimPolicy)
- type GKEClusterClassList
- type GKEClusterClassSpecTemplate
- type GKEClusterList
- type GKEClusterParameters
- type GKEClusterSpec
- type GKEClusterStatus
- type NetworkURIReferencerForGKECluster
- type SubnetworkURIReferencerForGKECluster
- func (v *SubnetworkURIReferencerForGKECluster) Assign(res resource.CanReference, value string) error
- func (in *SubnetworkURIReferencerForGKECluster) DeepCopy() *SubnetworkURIReferencerForGKECluster
- func (in *SubnetworkURIReferencerForGKECluster) DeepCopyInto(out *SubnetworkURIReferencerForGKECluster)
Constants ¶
const ( ClusterStateProvisioning = "PROVISIONING" ClusterStateRunning = "RUNNING" ClusterStateError = "ERROR" )
Cluster states.
const ( DefaultReclaimPolicy = runtimev1alpha1.ReclaimRetain DefaultNumberOfNodes = int64(1) )
Defaults for GKE resources.
const ( Group = "compute.gcp.crossplane.io" Version = "v1alpha3" )
Package type metadata.
Variables ¶
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: Group, Version: Version} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion} )
var ( GKEClusterKind = reflect.TypeOf(GKECluster{}).Name() GKEClusterGroupKind = schema.GroupKind{Group: Group, Kind: GKEClusterKind}.String() GKEClusterKindAPIVersion = GKEClusterKind + "." + SchemeGroupVersion.String() GKEClusterGroupVersionKind = SchemeGroupVersion.WithKind(GKEClusterKind) )
GKECluster type metadata.
var ( GKEClusterClassKind = reflect.TypeOf(GKEClusterClass{}).Name() GKEClusterClassGroupKind = schema.GroupKind{Group: Group, Kind: GKEClusterClassKind}.String() GKEClusterClassKindAPIVersion = GKEClusterClassKind + "." + SchemeGroupVersion.String() GKEClusterClassGroupVersionKind = SchemeGroupVersion.WithKind(GKEClusterClassKind) )
GKEClusterClass type metadata.
Functions ¶
This section is empty.
Types ¶
type GKECluster ¶
type GKECluster struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec GKEClusterSpec `json:"spec"` Status GKEClusterStatus `json:"status,omitempty"` }
A GKECluster is a managed resource that represents a Google Kubernetes Engine cluster. +kubebuilder:printcolumn:name="STATUS",type="string",JSONPath=".status.bindingPhase" +kubebuilder:printcolumn:name="STATE",type="string",JSONPath=".status.state" +kubebuilder:printcolumn:name="CLUSTER-NAME",type="string",JSONPath=".status.clusterName" +kubebuilder:printcolumn:name="ENDPOINT",type="string",JSONPath=".status.endpoint" +kubebuilder:printcolumn:name="CLUSTER-CLASS",type="string",JSONPath=".spec.classRef.name" +kubebuilder:printcolumn:name="LOCATION",type="string",JSONPath=".spec.zone" +kubebuilder:printcolumn:name="RECLAIM-POLICY",type="string",JSONPath=".spec.reclaimPolicy" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:resource:scope=Cluster
func (*GKECluster) DeepCopy ¶
func (in *GKECluster) DeepCopy() *GKECluster
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GKECluster.
func (*GKECluster) DeepCopyInto ¶
func (in *GKECluster) DeepCopyInto(out *GKECluster)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GKECluster) DeepCopyObject ¶
func (in *GKECluster) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*GKECluster) GetBindingPhase ¶
func (mg *GKECluster) GetBindingPhase() runtimev1alpha1.BindingPhase
GetBindingPhase of this GKECluster.
func (*GKECluster) GetClaimReference ¶
func (mg *GKECluster) GetClaimReference() *corev1.ObjectReference
GetClaimReference of this GKECluster.
func (*GKECluster) GetClassReference ¶
func (mg *GKECluster) GetClassReference() *corev1.ObjectReference
GetClassReference of this GKECluster.
func (*GKECluster) GetCondition ¶
func (mg *GKECluster) GetCondition(ct runtimev1alpha1.ConditionType) runtimev1alpha1.Condition
GetCondition of this GKECluster.
func (*GKECluster) GetReclaimPolicy ¶
func (mg *GKECluster) GetReclaimPolicy() runtimev1alpha1.ReclaimPolicy
GetReclaimPolicy of this GKECluster.
func (*GKECluster) GetWriteConnectionSecretToReference ¶
func (mg *GKECluster) GetWriteConnectionSecretToReference() *runtimev1alpha1.SecretReference
GetWriteConnectionSecretToReference of this GKECluster.
func (*GKECluster) SetBindingPhase ¶
func (mg *GKECluster) SetBindingPhase(p runtimev1alpha1.BindingPhase)
SetBindingPhase of this GKECluster.
func (*GKECluster) SetClaimReference ¶
func (mg *GKECluster) SetClaimReference(r *corev1.ObjectReference)
SetClaimReference of this GKECluster.
func (*GKECluster) SetClassReference ¶
func (mg *GKECluster) SetClassReference(r *corev1.ObjectReference)
SetClassReference of this GKECluster.
func (*GKECluster) SetConditions ¶
func (mg *GKECluster) SetConditions(c ...runtimev1alpha1.Condition)
SetConditions of this GKECluster.
func (*GKECluster) SetReclaimPolicy ¶
func (mg *GKECluster) SetReclaimPolicy(r runtimev1alpha1.ReclaimPolicy)
SetReclaimPolicy of this GKECluster.
func (*GKECluster) SetWriteConnectionSecretToReference ¶
func (mg *GKECluster) SetWriteConnectionSecretToReference(r *runtimev1alpha1.SecretReference)
SetWriteConnectionSecretToReference of this GKECluster.
type GKEClusterClass ¶
type GKEClusterClass struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` // SpecTemplate is a template for the spec of a dynamically provisioned // GKECluster. SpecTemplate GKEClusterClassSpecTemplate `json:"specTemplate"` }
A GKEClusterClass is a resource class. It defines the desired spec of resource claims that use it to dynamically provision a managed resource. +kubebuilder:printcolumn:name="PROVIDER-REF",type="string",JSONPath=".specTemplate.providerRef.name" +kubebuilder:printcolumn:name="RECLAIM-POLICY",type="string",JSONPath=".specTemplate.reclaimPolicy" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:resource:scope=Cluster
func (*GKEClusterClass) DeepCopy ¶
func (in *GKEClusterClass) DeepCopy() *GKEClusterClass
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GKEClusterClass.
func (*GKEClusterClass) DeepCopyInto ¶
func (in *GKEClusterClass) DeepCopyInto(out *GKEClusterClass)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GKEClusterClass) DeepCopyObject ¶
func (in *GKEClusterClass) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*GKEClusterClass) GetReclaimPolicy ¶
func (cs *GKEClusterClass) GetReclaimPolicy() runtimev1alpha1.ReclaimPolicy
GetReclaimPolicy of this GKEClusterClass.
func (*GKEClusterClass) SetReclaimPolicy ¶
func (cs *GKEClusterClass) SetReclaimPolicy(r runtimev1alpha1.ReclaimPolicy)
SetReclaimPolicy of this GKEClusterClass.
type GKEClusterClassList ¶
type GKEClusterClassList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []GKEClusterClass `json:"items"` }
GKEClusterClassList contains a list of cloud memorystore resource classes.
func (*GKEClusterClassList) DeepCopy ¶
func (in *GKEClusterClassList) DeepCopy() *GKEClusterClassList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GKEClusterClassList.
func (*GKEClusterClassList) DeepCopyInto ¶
func (in *GKEClusterClassList) DeepCopyInto(out *GKEClusterClassList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GKEClusterClassList) DeepCopyObject ¶
func (in *GKEClusterClassList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type GKEClusterClassSpecTemplate ¶
type GKEClusterClassSpecTemplate struct { runtimev1alpha1.ClassSpecTemplate `json:",inline"` GKEClusterParameters `json:",inline"` }
A GKEClusterClassSpecTemplate is a template for the spec of a dynamically provisioned GKECluster.
func (*GKEClusterClassSpecTemplate) DeepCopy ¶
func (in *GKEClusterClassSpecTemplate) DeepCopy() *GKEClusterClassSpecTemplate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GKEClusterClassSpecTemplate.
func (*GKEClusterClassSpecTemplate) DeepCopyInto ¶
func (in *GKEClusterClassSpecTemplate) DeepCopyInto(out *GKEClusterClassSpecTemplate)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GKEClusterList ¶
type GKEClusterList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []GKECluster `json:"items"` }
GKEClusterList contains a list of GKECluster items
func (*GKEClusterList) DeepCopy ¶
func (in *GKEClusterList) DeepCopy() *GKEClusterList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GKEClusterList.
func (*GKEClusterList) DeepCopyInto ¶
func (in *GKEClusterList) DeepCopyInto(out *GKEClusterList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GKEClusterList) DeepCopyObject ¶
func (in *GKEClusterList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type GKEClusterParameters ¶
type GKEClusterParameters struct { // ClusterVersion is the initial Kubernetes version for this cluster. // Users may specify either explicit versions offered by Kubernetes Engine // or version aliases, for example "latest", "1.X", or "1.X.Y". Leave unset // to use the default version. // +optional ClusterVersion string `json:"clusterVersion,omitempty"` // Labels for the cluster to use to annotate any related Google Compute // Engine resources. // +optional Labels map[string]string `json:"labels,omitempty"` // MachineType is the name of a Google Compute Engine machine type (e.g. // n1-standard-1). If unspecified the default machine type is n1-standard-1. // +optional MachineType string `json:"machineType,omitempty"` // NumNodes is the number of nodes to create in this cluster. You must // ensure that your Compute Engine resource quota is sufficient for this // number of instances. You must also have available firewall and routes // quota. NumNodes int64 `json:"numNodes"` // Zone specifies the name of the Google Compute Engine zone in which this // cluster resides. // +optional Zone string `json:"zone,omitempty"` // Scopes are the set of Google API scopes to be made available on all of // the node VMs under the "default" service account. // +optional Scopes []string `json:"scopes,omitempty"` // Network is the name of the Google Compute Engine network to which the // cluster is connected. If left unspecified, the default network will be // used. // +optional Network string `json:"network,omitempty"` // NetworkRef references to a Network and retrieves its URI NetworkRef *NetworkURIReferencerForGKECluster `json:"networkRef,omitempty" resource:"attributereferencer"` // Subnetwork is the name of the Google Compute Engine subnetwork to which // the cluster is connected. // +optional Subnetwork string `json:"subnetwork,omitempty"` // SubnetworkRef references to a Subnetwork and retrieves its URI SubnetworkRef *SubnetworkURIReferencerForGKECluster `json:"subnetworkRef,omitempty" resource:"attributereferencer"` // EnableIPAlias determines whether Alias IPs will be used for pod IPs in // the cluster. // +optional EnableIPAlias bool `json:"enableIPAlias,omitempty"` // CreateSubnetwork determines whether a new subnetwork will be created // automatically for the cluster. Only applicable when EnableIPAlias is // true. // +optional CreateSubnetwork bool `json:"createSubnetwork,omitempty"` // NodeIPV4CIDR specifies the IP address range of the instance IPs in this // cluster. This is applicable only if CreateSubnetwork is true. Omit this // field to have a range chosen with the default size. Set it to a netmask // (e.g. /24) to have a range chosen with a specific netmask. // +optional NodeIPV4CIDR string `json:"nodeIPV4CIDR,omitempty"` // ClusterIPV4CIDR specifies the IP address range of the pod IPs in this // cluster. This is applicable only if EnableIPAlias is true. Omit this // field to have a range chosen with the default size. Set it to a netmask // (e.g. /24) to have a range chosen with a specific netmask. // +optional ClusterIPV4CIDR string `json:"clusterIPV4CIDR,omitempty"` // ClusterSecondaryRangeName specifies the name of the secondary range to be // used for the cluster CIDR block. The secondary range will be used for pod // IP addresses. This must be an existing secondary range associated with // the cluster subnetwork. // +optional ClusterSecondaryRangeName string `json:"clusterSecondaryRangeName,omitempty"` // ServiceIPV4CIDR specifies the IP address range of service IPs in this // cluster. This is applicable only if EnableIPAlias is true. Omit this // field to have a range chosen with the default size. Set it to a netmask // (e.g. /24) to have a range chosen with a specific netmask. // +optional ServiceIPV4CIDR string `json:"serviceIPV4CIDR,omitempty"` // ServicesSecondaryRangeName specifies the name of the secondary range to // be used as for the services CIDR block. The secondary range will be used // for service ClusterIPs. This must be an existing secondary range // associated with the cluster subnetwork. ServicesSecondaryRangeName string `json:"servicesSecondaryRangeName,omitempty"` }
GKEClusterParameters define the desired state of a Google Kubernetes Engine cluster.
func (*GKEClusterParameters) DeepCopy ¶
func (in *GKEClusterParameters) DeepCopy() *GKEClusterParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GKEClusterParameters.
func (*GKEClusterParameters) DeepCopyInto ¶
func (in *GKEClusterParameters) DeepCopyInto(out *GKEClusterParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GKEClusterSpec ¶
type GKEClusterSpec struct { runtimev1alpha1.ResourceSpec `json:",inline"` GKEClusterParameters `json:",inline"` }
A GKEClusterSpec defines the desired state of a GKECluster.
func (*GKEClusterSpec) DeepCopy ¶
func (in *GKEClusterSpec) DeepCopy() *GKEClusterSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GKEClusterSpec.
func (*GKEClusterSpec) DeepCopyInto ¶
func (in *GKEClusterSpec) DeepCopyInto(out *GKEClusterSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GKEClusterStatus ¶
type GKEClusterStatus struct { runtimev1alpha1.ResourceStatus `json:",inline"` // ClusterName is the name of this GKE cluster. The name is automatically // generated by Crossplane. ClusterName string `json:"clusterName,omitempty"` // Endpoint of the GKE cluster used in connection strings. Endpoint string `json:"endpoint,omitempty"` // State of this GKE cluster. State string `json:"state,omitempty"` }
A GKEClusterStatus represents the observed state of a GKECluster.
func (*GKEClusterStatus) DeepCopy ¶
func (in *GKEClusterStatus) DeepCopy() *GKEClusterStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GKEClusterStatus.
func (*GKEClusterStatus) DeepCopyInto ¶
func (in *GKEClusterStatus) DeepCopyInto(out *GKEClusterStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NetworkURIReferencerForGKECluster ¶
type NetworkURIReferencerForGKECluster struct {
v1beta1.NetworkURIReferencer `json:",inline"`
}
NetworkURIReferencerForGKECluster is an attribute referencer that resolves network uri from a referenced Network and assigns it to a GKECluster
func (*NetworkURIReferencerForGKECluster) Assign ¶
func (v *NetworkURIReferencerForGKECluster) Assign(res resource.CanReference, value string) error
Assign assigns the retrieved network uri to GKECluster
func (*NetworkURIReferencerForGKECluster) DeepCopy ¶
func (in *NetworkURIReferencerForGKECluster) DeepCopy() *NetworkURIReferencerForGKECluster
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkURIReferencerForGKECluster.
func (*NetworkURIReferencerForGKECluster) DeepCopyInto ¶
func (in *NetworkURIReferencerForGKECluster) DeepCopyInto(out *NetworkURIReferencerForGKECluster)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SubnetworkURIReferencerForGKECluster ¶
type SubnetworkURIReferencerForGKECluster struct {
v1beta1.SubnetworkURIReferencer `json:",inline"`
}
SubnetworkURIReferencerForGKECluster is an attribute referencer that resolves subnetwork uri from a referenced Subnetwork and assigns it to a GKECluster
func (*SubnetworkURIReferencerForGKECluster) Assign ¶
func (v *SubnetworkURIReferencerForGKECluster) Assign(res resource.CanReference, value string) error
Assign assigns the retrieved subnetwork uri to a GKECluster
func (*SubnetworkURIReferencerForGKECluster) DeepCopy ¶
func (in *SubnetworkURIReferencerForGKECluster) DeepCopy() *SubnetworkURIReferencerForGKECluster
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubnetworkURIReferencerForGKECluster.
func (*SubnetworkURIReferencerForGKECluster) DeepCopyInto ¶
func (in *SubnetworkURIReferencerForGKECluster) DeepCopyInto(out *SubnetworkURIReferencerForGKECluster)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.