v1alpha1

package
v0.6.0 Latest Latest
Warning

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

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

Documentation

Overview

Package v1alpha1 contains the v1alpha1 group eventstreamsadminv1 resources of the IBM Cloud provider. +kubebuilder:object:generate=true +groupName=container.containerv2.ibmcloud.crossplane.io +versionName=v1alpha1

Index

Constants

View Source
const (
	Group   = "container.containerv2.ibmcloud.crossplane.io"
	Version = "v1alpha1"
)

Package type metadata.

Variables

View Source
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}
)
View Source
var (
	ClusterKind             = reflect.TypeOf(Cluster{}).Name()
	ClusterGroupKind        = schema.GroupKind{Group: Group, Kind: ClusterKind}.String()
	ClusterKindAPIVersion   = ClusterKind + "." + SchemeGroupVersion.String()
	ClusterGroupVersionKind = SchemeGroupVersion.WithKind(ClusterKind)
)

types metadata.

Functions

This section is empty.

Types

type Addon

type Addon struct {
	Name    string `json:"name"`
	Version string `json:"version"`
}

Addon ...

func (*Addon) DeepCopy

func (in *Addon) DeepCopy() *Addon

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

func (*Addon) DeepCopyInto

func (in *Addon) DeepCopyInto(out *Addon)

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

type Cluster

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

	Spec   ClusterSpec   `json:"spec"`
	Status ClusterStatus `json:"status,omitempty"`
}

Cluster contains all the info (spec + status) for a cluster +kubebuilder:subresource:status +kubebuilder:printcolumn:name="STATUS",type="string",JSONPath=".status.bindingPhase" +kubebuilder:printcolumn:name="STATE",type="string",JSONPath=".status.atProvider.state" +kubebuilder:printcolumn:name="CLASS",type="string",JSONPath=".spec.classRef.name" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,ibmcloud}

func (*Cluster) DeepCopy

func (in *Cluster) DeepCopy() *Cluster

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

func (*Cluster) DeepCopyInto

func (in *Cluster) DeepCopyInto(out *Cluster)

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

func (*Cluster) DeepCopyObject

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

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

func (*Cluster) GetCondition

GetCondition of this Cluster.

func (*Cluster) GetDeletionPolicy

func (mg *Cluster) GetDeletionPolicy() runtimev1alpha1.DeletionPolicy

GetDeletionPolicy of this Cluster.

func (*Cluster) GetProviderConfigReference

func (mg *Cluster) GetProviderConfigReference() *runtimev1alpha1.Reference

GetProviderConfigReference of this Cluster.

func (*Cluster) GetProviderReference

func (mg *Cluster) GetProviderReference() *runtimev1alpha1.Reference

GetProviderReference of this Cluster. Deprecated: Use GetProviderConfigReference.

func (*Cluster) GetWriteConnectionSecretToReference

func (mg *Cluster) GetWriteConnectionSecretToReference() *runtimev1alpha1.SecretReference

GetWriteConnectionSecretToReference of this Cluster.

func (*Cluster) ResolveReferences

func (mg *Cluster) ResolveReferences(ctx context.Context, c client.Reader) error

ResolveReferences resolves the crossplane reference to the VPC

func (*Cluster) SetConditions

func (mg *Cluster) SetConditions(c ...runtimev1alpha1.Condition)

SetConditions of this Cluster.

func (*Cluster) SetDeletionPolicy

func (mg *Cluster) SetDeletionPolicy(r runtimev1alpha1.DeletionPolicy)

SetDeletionPolicy of this Cluster.

func (*Cluster) SetProviderConfigReference

func (mg *Cluster) SetProviderConfigReference(r *runtimev1alpha1.Reference)

SetProviderConfigReference of this Cluster.

func (*Cluster) SetProviderReference

func (mg *Cluster) SetProviderReference(r *runtimev1alpha1.Reference)

SetProviderReference of this Cluster. Deprecated: Use SetProviderConfigReference.

func (*Cluster) SetWriteConnectionSecretToReference

func (mg *Cluster) SetWriteConnectionSecretToReference(r *runtimev1alpha1.SecretReference)

SetWriteConnectionSecretToReference of this Cluster.

type ClusterCreateRequest

type ClusterCreateRequest struct {
	// +immutable
	DisablePublicServiceEndpoint bool `json:"disablePublicServiceEndpoint"`

	// +immutable
	KubeVersion string `json:"kubeVersion" description:"kubeversion of cluster"`

	// +immutable
	// +optional
	Billing *string `json:"billing,omitempty"`

	// +immutable
	PodSubnet string `json:"podSubnet"`

	// +immutable
	Provider string `json:"provider"`

	// +immutable
	ServiceSubnet string `json:"serviceSubnet"`

	// +immutable
	Name string `json:"name" description:"The cluster's name"`

	// +immutable
	DefaultWorkerPoolEntitlement string `json:"defaultWorkerPoolEntitlement"`

	// +immutable
	CosInstanceCRN string `json:"cosInstanceCRN"`

	// +immutable
	WorkerPools WorkerPoolConfig `json:"workerPool"`
}

ClusterCreateRequest contains the params used to create a cluster

func (*ClusterCreateRequest) DeepCopy

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

func (*ClusterCreateRequest) DeepCopyInto

func (in *ClusterCreateRequest) DeepCopyInto(out *ClusterCreateRequest)

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

type ClusterList

type ClusterList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`

	// List of clusters returned
	Items []Cluster `json:"clusters"`
}

ClusterList list of existing clusters...

func (*ClusterList) DeepCopy

func (in *ClusterList) DeepCopy() *ClusterList

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

func (*ClusterList) DeepCopyInto

func (in *ClusterList) DeepCopyInto(out *ClusterList)

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

func (*ClusterList) DeepCopyObject

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

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

func (*ClusterList) GetItems

func (l *ClusterList) GetItems() []resource.Managed

GetItems of this ClusterList.

type ClusterObservation

type ClusterObservation struct {
	CreatedDate       *metav1.Time  `json:"createdDate"`
	DataCenter        string        `json:"dataCenter"`
	ID                string        `json:"id"`
	Location          string        `json:"location"`
	Entitlement       string        `json:"entitlement"`
	MasterKubeVersion string        `json:"masterKubeVersion"`
	Name              string        `json:"name"`
	Region            string        `json:"region"`
	ResourceGroupID   string        `json:"resourceGroup"`
	State             string        `json:"state"`
	IsPaid            bool          `json:"isPaid"`
	Addons            []Addon       `json:"addons"`
	OwnerEmail        string        `json:"ownerEmail"`
	Type              string        `json:"type"`
	TargetVersion     string        `json:"targetVersion"`
	ServiceSubnet     string        `json:"serviceSubnet"`
	ResourceGroupName string        `json:"resourceGroupName"`
	Provider          string        `json:"provider"`
	PodSubnet         string        `json:"podSubnet"`
	MultiAzCapable    bool          `json:"multiAzCapable"`
	APIUser           string        `json:"apiUser"`
	ServerURL         string        `json:"serverURL"`
	MasterURL         string        `json:"masterURL"`
	MasterStatus      string        `json:"masterStatus"`
	DisableAutoUpdate bool          `json:"disableAutoUpdate"`
	WorkerZones       []string      `json:"workerZones"`
	Vpcs              []string      `json:"vpcs"`
	CRN               string        `json:"crn"`
	VersionEOS        string        `json:"versionEOS"`
	ServiceEndpoints  Endpoints     `json:"serviceEndpoints"`
	Lifecycle         LifeCycleInfo `json:"lifecycle"`
	WorkerCount       int           `json:"workerCount"`
	Ingress           IngresInfo    `json:"ingress"`
	Features          Feat          `json:"features"`
}

ClusterObservation contains the "observation" info

func (*ClusterObservation) DeepCopy

func (in *ClusterObservation) DeepCopy() *ClusterObservation

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

func (*ClusterObservation) DeepCopyInto

func (in *ClusterObservation) DeepCopyInto(out *ClusterObservation)

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

type ClusterSpec

type ClusterSpec struct {
	runtimev1alpha1.ResourceSpec `json:",inline"`
	ForProvider                  ClusterCreateRequest `json:"forProvider"`
}

ClusterSpec defines the desired state of a Cluster.

func (*ClusterSpec) DeepCopy

func (in *ClusterSpec) DeepCopy() *ClusterSpec

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

func (*ClusterSpec) DeepCopyInto

func (in *ClusterSpec) DeepCopyInto(out *ClusterSpec)

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

type ClusterStatus

type ClusterStatus struct {
	runtimev1alpha1.ResourceStatus `json:",inline"`
	AtProvider                     ClusterObservation `json:"atProvider,omitempty"`
}

ClusterStatus represents the observed state of a AccessGroup.

func (*ClusterStatus) DeepCopy

func (in *ClusterStatus) DeepCopy() *ClusterStatus

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

func (*ClusterStatus) DeepCopyInto

func (in *ClusterStatus) DeepCopyInto(out *ClusterStatus)

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

type Endpoints

type Endpoints struct {
	PrivateServiceEndpointEnabled bool   `json:"privateServiceEndpointEnabled"`
	PrivateServiceEndpointURL     string `json:"privateServiceEndpointURL"`
	PublicServiceEndpointEnabled  bool   `json:"publicServiceEndpointEnabled"`
	PublicServiceEndpointURL      string `json:"publicServiceEndpointURL"`
}

Endpoints ...

func (*Endpoints) DeepCopy

func (in *Endpoints) DeepCopy() *Endpoints

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

func (*Endpoints) DeepCopyInto

func (in *Endpoints) DeepCopyInto(out *Endpoints)

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

type Feat

type Feat struct {
	KeyProtectEnabled bool `json:"keyProtectEnabled"`
	PullSecretApplied bool `json:"pullSecretApplied"`
}

Feat ...

func (*Feat) DeepCopy

func (in *Feat) DeepCopy() *Feat

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

func (*Feat) DeepCopyInto

func (in *Feat) DeepCopyInto(out *Feat)

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

type IngresInfo

type IngresInfo struct {
	HostName   string `json:"hostname"`
	SecretName string `json:"secretName"`
}

IngresInfo ...

func (*IngresInfo) DeepCopy

func (in *IngresInfo) DeepCopy() *IngresInfo

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

func (*IngresInfo) DeepCopyInto

func (in *IngresInfo) DeepCopyInto(out *IngresInfo)

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

type LifeCycleInfo

type LifeCycleInfo struct {
	ModifiedDate             *metav1.Time `json:"modifiedDate"`
	MasterStatus             string       `json:"masterStatus"`
	MasterStatusModifiedDate *metav1.Time `json:"masterStatusModifiedDate"`
	MasterHealth             string       `json:"masterHealth"`
	MasterState              string       `json:"masterState"`
}

LifeCycleInfo ...

func (*LifeCycleInfo) DeepCopy

func (in *LifeCycleInfo) DeepCopy() *LifeCycleInfo

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

func (*LifeCycleInfo) DeepCopyInto

func (in *LifeCycleInfo) DeepCopyInto(out *LifeCycleInfo)

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

type WorkerPoolConfig

type WorkerPoolConfig struct {
	// +immutable
	// +optional
	DiskEncryption *bool `json:"diskEncryption,omitempty"`

	// +immutable
	Entitlement string `json:"entitlement"`

	// +immutable
	Flavor string `json:"flavor"`

	// +immutable
	Isolation *string `json:"isolation,omitempty"`

	// +immutable
	// +optional
	Labels *map[string]string `json:"labels,omitempty"`

	// +immutable
	Name string `json:"name" description:"The workerpool's name"`

	// +immutable
	// +optional
	VpcID *string `json:"vpcID"`

	// Crossplane reference of the VPC name
	//
	// Note:
	//    One of 'VpcID', 'VPCRef', 'VPCSelector' should be specified
	//
	// +immutable
	// +optional
	VPCRef *runtimev1alpha1.Reference `json:"vpcRef,omitempty"`

	// Selects a reference to a VPC
	//
	// +immutable
	// +optional
	VPCSelector *runtimev1alpha1.Selector `json:"vpcSelector,omitempty"`

	// +immutable
	WorkerCount int `json:"workerCount"`

	// +immutable
	Zones []Zone `json:"zones"`
}

WorkerPoolConfig is needed in order to create a cluster

func (*WorkerPoolConfig) DeepCopy

func (in *WorkerPoolConfig) DeepCopy() *WorkerPoolConfig

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

func (*WorkerPoolConfig) DeepCopyInto

func (in *WorkerPoolConfig) DeepCopyInto(out *WorkerPoolConfig)

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

type Zone

type Zone struct {
	// +immutable
	// +optional
	ID *string `json:"id,omitempty" description:"The id"`

	// +immutable
	// +optional
	SubnetID *string `json:"subnetID,omitempty"`
}

Zone info for the workes

func (*Zone) DeepCopy

func (in *Zone) DeepCopy() *Zone

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

func (*Zone) DeepCopyInto

func (in *Zone) DeepCopyInto(out *Zone)

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