Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the container v1alpha1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/crossplaneio/crossplane/pkg/apis/gcp/compute +k8s:defaulter-gen=TypeMeta +groupName=compute.gcp.crossplane.io
Package v1alpha1 contains API Schema definitions for the container v1alpha1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/crossplaneio/crossplane/pkg/gcp/apis/gcp/compute +k8s:defaulter-gen=TypeMeta +groupName=compute.gcp.crossplane.io
Index ¶
- Constants
- Variables
- type GKECluster
- func (g *GKECluster) ConnectionSecret() *corev1.Secret
- func (g *GKECluster) ConnectionSecretName() string
- func (in *GKECluster) DeepCopy() *GKECluster
- func (in *GKECluster) DeepCopyInto(out *GKECluster)
- func (in *GKECluster) DeepCopyObject() runtime.Object
- func (g *GKECluster) Endpoint() string
- func (g *GKECluster) IsAvailable() bool
- func (g *GKECluster) IsBound() bool
- func (g *GKECluster) ObjectReference() *corev1.ObjectReference
- func (g *GKECluster) OwnerReference() metav1.OwnerReference
- func (g *GKECluster) SetBound(state bool)
- func (g *GKECluster) State() string
- type GKEClusterList
- type GKEClusterSpec
- type GKEClusterStatus
Constants ¶
const ( Group = "compute.gcp.crossplane.io" Version = "v1alpha1" APIVersion = Group + "/" + Version GKEClusterKind = "gkecluster" GKEClusterKindAPIVersion = GKEClusterKind + "." + APIVersion )
const ( ClusterStateProvisioning = "PROVISIONING" ClusterStateRunning = "RUNNING" DefaultReclaimPolicy = corev1alpha1.ReclaimRetain DefaultNumberOfNodes = int64(1) )
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} )
Functions ¶
This section is empty.
Types ¶
type GKECluster ¶
type GKECluster struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec GKEClusterSpec `json:"spec,omitempty"` Status GKEClusterStatus `json:"status,omitempty"` }
GKECluster is the Schema for the instances API +k8s:openapi-gen=true +groupName=compute.gcp
func (*GKECluster) ConnectionSecret ¶
func (g *GKECluster) ConnectionSecret() *corev1.Secret
func (*GKECluster) ConnectionSecretName ¶
func (g *GKECluster) ConnectionSecretName() string
ConnectionSecretName returns a secret name from the reference
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) Endpoint ¶
func (g *GKECluster) Endpoint() string
func (*GKECluster) IsAvailable ¶
func (g *GKECluster) IsAvailable() bool
IsAvailable for usage/binding
func (*GKECluster) ObjectReference ¶
func (g *GKECluster) ObjectReference() *corev1.ObjectReference
ObjectReference to this RDSInstance
func (*GKECluster) OwnerReference ¶
func (g *GKECluster) OwnerReference() metav1.OwnerReference
OwnerReference to use this instance as an owner
func (*GKECluster) State ¶
func (g *GKECluster) State() string
State returns rds instance state value saved in the status (could be empty)
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 GKEClusterSpec ¶
type GKEClusterSpec struct { Addons []string `json:"addons,omitempty"` //--adons Async bool `json:"async,omitempty"` //--async ClusterIPV4CIDR string `json:"clusterIPV4CIDR,omitempty"` //--cluster-ipv4-cidr ClusterSecondaryRangeName string `json:"clusterSecondaryRangeName,omitempty"` //--cluster-secondary-range-name ClusterVersion string `json:"clusterVersion,omitempty"` //--cluster-version ClusterSubnetwork map[string]string `json:"createSubnetwork,omitempty"` //--create-subnetwork DiskSize string `json:"diskSize,omitempty"` //--disk-size EnableAutorepair bool `json:"enableAutorepair,omitempty"` //--enable-autorepair EnableAutoupgrade bool `json:"enableAutoupgrade,omitempty"` //--enable-autoupgrade EnableCloudLogging bool `json:"enableCloudLogging,omitempty"` //--no-enable-cloud-logging] EnableCloudMonitoring bool `json:"enableCloudMonitoring,omitempty"` //--no-enable-cloud-monitoring EnableIPAlias bool `json:"enableIPAlias,omitempty"` //--enable-ip-alias EnableKubernetesAlpha bool `json:"enableKubernetesAlpha,omitempty"` //--enable-kubernetes-alpha EnableLegacyAuthorization bool `json:"enableLegacyAuthorization,omitempty"` //--enable-legacy-authorization EnableNetworkPolicy bool `json:"enableNetworkPolicy,omitempty"` //--enable-network-policy ImageType string `json:"imageType,omitempty"` //--image-type NoIssueClientCertificates bool `json:"noIssueClientCertificates,omitempty"` //--no-issue-client-certificate Labels map[string]string `json:"labels,omitempty"` //--labels LocalSSDCount int64 `json:"localSSDCount,omitempty"` //--local-ssd-count MachineType string `json:"machineType,omitempty"` //--machine-types MaintenanceWindow string `json:"maintenanceWindow,omitempty"` //--maintenance-window, example: '12:43' MaxNodesPerPool int64 `json:"maxNodesPerPool,omitempty"` //--max-nodes-per-pool MinCPUPlatform string `json:"minCPUPlatform,omitempty"` //--min-cpu-platform Network string `json:"network,omitempty"` //--network NodeLabels []string `json:"nodeLabels,omitempty"` //--node-labels [NODE_LABEL,…] NodeLocations []string `json:"nodeLocations,omitempty"` //--node-locations=ZONE,[ZONE,…] NodeTaints []string `json:"nodeTaints,omitempty"` //--node-taints=[NODE_TAINT,…] NodeVersion []string `json:"nodeVersion,omitempty"` //--node-version=NODE_VERSION NumNodes int64 `json:"numNodes,omitempty"` //--num-nodes=NUM_NODES; default=3 Preemtible bool `json:"preemtible,omitempty"` //--preemptible ServiceIPV4CIDR string `json:"serviceIPV4CIDR,omitempty"` //--services-ipv4-cidr=CIDR ServiceSecondaryRangeName string `json:"serviceSecondaryRangeName,omitempty"` //--services-secondary-range-name=NAME Subnetwork string `json:"subnetwork,omitempty"` //--subnetwork=SUBNETWORK Tags []string `json:"tags,omitempty"` //--tags=TAG,[TAG,…] Zone string `json:"zone,omitempty"` //--zone // Cluster Autoscaling EnableAutoscaling bool `json:"enableAutoscaling,omitempty"` //--enable-autoscaling MaxNodes int64 `json:"maxNodes,omitempty"` //--max-nodes MinNodes int64 `json:"minNodes,omitempty"` //--min-nodes // Basic Auth Password string `json:"password,omitempty"` //--password EnableBasicAuth bool `json:"enableBasicAuth,omitempty"` //--enable-basic-auth Username string `json:"username,omitempty"` //--username (-u) default:"admin" // Node Identity ServiceAccount string `json:"serviceAccount,omitempty,omitempty"` //--service-account EnableCloudEndpoints bool `json:"enableCloudEndpoints,omitempty"` //--enable-cloud-endpoints Scopes []string `json:"scopes,omitempty"` //--scopes=[SCOPE,…]; default="gke-default" // Kubernetes object references ClaimRef *corev1.ObjectReference `json:"claimRef,omitempty"` ClassRef *corev1.ObjectReference `json:"classRef,omitempty"` ConnectionSecretRef *corev1.LocalObjectReference `json:"connectionSecretRef,omitempty"` ProviderRef corev1.LocalObjectReference `json:"providerRef,omitempty"` // ReclaimPolicy identifies how to handle the cloud resource after the deletion of this type ReclaimPolicy corev1alpha1.ReclaimPolicy `json:"reclaimPolicy,omitempty"` }
GKEClusterSpec
func NewGKEClusterSpec ¶
func NewGKEClusterSpec(properties map[string]string) *GKEClusterSpec
NewGKEClusterSpec from properties map
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 { corev1alpha1.ConditionedStatus corev1alpha1.BindingStatusPhase ClusterName string `json:"clusterName"` Endpoint string `json:"endpoint"` State string `json:"state,omitempty"` }
GKEClusterStatus
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.