v1alpha1

package
v0.0.0-...-5897a89 Latest Latest
Warning

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

Go to latest
Published: May 20, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the paas v1alpha1 API group +kubebuilder:object:generate=true +groupName=paas.dcas.dev

Index

Constants

View Source
const (
	LabelClusterID     = "paas.dcas.dev/cluster-id"
	LabelClusterDomain = "paas.dcas.dev/cluster-domain"
)
View Source
const (
	LabelClusterRef      = "paas.dcas.dev/cluster-name"
	LabelClusterAddonRef = "paas.dcas.dev/cluster-addon-name"
)
View Source
const (
	KindAppliedClusterVersion = "AppliedClusterVersion"
	KindCluster               = "Cluster"
	KindClusterAddon          = "ClusterAddon"
	KindClusterAddonBinding   = "ClusterAddonBinding"
	KindClusterVersion        = "ClusterVersion"
	KindTenant                = "Tenant"
)
View Source
const LabelTrackRef = "paas.dcas.dev/release-track"

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "paas.dcas.dev", Version: "v1alpha1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

func ConfigMapDigestKey

func ConfigMapDigestKey(name string) string

func OciDigestKey

func OciDigestKey(name string) string

func SecretDigestKey

func SecretDigestKey(name string) string

func UriDigestKey

func UriDigestKey(name string) string

Types

type AccessRef

type AccessRef struct {
	// ReadOnly indicates that the user/group should only have view access
	// to the virtual cluster.
	//
	// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Read Only",xDescriptors="urn:alm:descriptor:com.tectonic.ui:booleanSwitch"
	ReadOnly bool `json:"readOnly,omitempty"`
	// User binds a user to the virtual cluster. Mutually-exclusive with, and preferred over Group.
	//
	// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="User",xDescriptors="urn:alm:descriptor:com.tectonic.ui:text"
	User string `json:"user,omitempty"`
	// Group binds a group to the virtual cluster.
	// Using groups should be preferred as it allows you to manage
	// membership outside of Kubernetes. Mutually-exclusive with User.
	//
	// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Group",xDescriptors="urn:alm:descriptor:com.tectonic.ui:text"
	Group string `json:"group,omitempty"`
}

func (*AccessRef) DeepCopy

func (in *AccessRef) DeepCopy() *AccessRef

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

func (*AccessRef) DeepCopyInto

func (in *AccessRef) DeepCopyInto(out *AccessRef)

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

type AddonPhase

type AddonPhase string
const (
	AddonPhaseInstalling AddonPhase = "Installing"
	AddonPhaseInstalled  AddonPhase = "Installed"
	AddonPhaseDeleting   AddonPhase = "Deleting"
)

type AddonSource

type AddonSource string
const (
	SourceOfficial  AddonSource = "Official"
	SourcePlatform  AddonSource = "Platform"
	SourceCommunity AddonSource = "Community"
	SourceUnknown   AddonSource = "Unknown"
)

type AppliedClusterVersion

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

	Spec   AppliedClusterVersionSpec   `json:"spec,omitempty"`
	Status AppliedClusterVersionStatus `json:"status,omitempty"`
}

AppliedClusterVersion is the Schema for the appliedclusterversions API +kubebuilder:printcolumn:name="Version",type=string,JSONPath=`.status.versionRef.name`

func (*AppliedClusterVersion) DeepCopy

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

func (*AppliedClusterVersion) DeepCopyInto

func (in *AppliedClusterVersion) DeepCopyInto(out *AppliedClusterVersion)

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

func (*AppliedClusterVersion) DeepCopyObject

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

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

func (*AppliedClusterVersion) Default

func (r *AppliedClusterVersion) Default()

Default implements webhook.Defaulter so a webhook will be registered for the type

func (*AppliedClusterVersion) SetupWebhookWithManager

func (r *AppliedClusterVersion) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*AppliedClusterVersion) ValidateCreate

func (r *AppliedClusterVersion) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*AppliedClusterVersion) ValidateDelete

func (r *AppliedClusterVersion) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*AppliedClusterVersion) ValidateUpdate

func (r *AppliedClusterVersion) ValidateUpdate(runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type AppliedClusterVersionList

type AppliedClusterVersionList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []AppliedClusterVersion `json:"items"`
}

AppliedClusterVersionList contains a list of AppliedClusterVersion

func (*AppliedClusterVersionList) DeepCopy

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

func (*AppliedClusterVersionList) DeepCopyInto

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

func (*AppliedClusterVersionList) DeepCopyObject

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

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

type AppliedClusterVersionSpec

type AppliedClusterVersionSpec struct {
	ClusterRef corev1.LocalObjectReference `json:"clusterRef"`
	//+kubebuilder:default:="* * * * *"
	MaintenanceWindow string `json:"maintenanceWindow,omitempty"`
}

AppliedClusterVersionSpec defines the desired state of AppliedClusterVersion

func (*AppliedClusterVersionSpec) DeepCopy

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

func (*AppliedClusterVersionSpec) DeepCopyInto

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

type AppliedClusterVersionStatus

type AppliedClusterVersionStatus struct {
	VersionRef corev1.LocalObjectReference `json:"versionRef,omitempty"`
	Conditions []metav1.Condition          `json:"conditions,omitempty"`
}

AppliedClusterVersionStatus defines the observed state of AppliedClusterVersion

func (*AppliedClusterVersionStatus) DeepCopy

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

func (*AppliedClusterVersionStatus) DeepCopyInto

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,omitempty"`
	Status ClusterStatus `json:"status,omitempty"`
}

Cluster is the Schema for the clusters API +kubebuilder:printcolumn:name="Version",type=string,JSONPath=`.status.kubeVersion` +kubebuilder:printcolumn:name="API URL",type=string,JSONPath=`.status.kubeURL` +kubebuilder:printcolumn:name="Phase",type=string,JSONPath=`.status.phase`

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) Default

func (r *Cluster) Default()

Default implements webhook.Defaulter so a webhook will be registered for the type

func (*Cluster) SetupWebhookWithManager

func (r *Cluster) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*Cluster) ValidateCreate

func (r *Cluster) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*Cluster) ValidateDelete

func (r *Cluster) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*Cluster) ValidateUpdate

func (r *Cluster) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type ClusterAddon

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

	Spec   ClusterAddonSpec   `json:"spec,omitempty"`
	Status ClusterAddonStatus `json:"status,omitempty"`
}

ClusterAddon is the Schema for the clusteraddons API

func (*ClusterAddon) DeepCopy

func (in *ClusterAddon) DeepCopy() *ClusterAddon

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

func (*ClusterAddon) DeepCopyInto

func (in *ClusterAddon) DeepCopyInto(out *ClusterAddon)

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

func (*ClusterAddon) DeepCopyObject

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

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

func (*ClusterAddon) Default

func (r *ClusterAddon) Default()

Default implements webhook.Defaulter so a webhook will be registered for the type

func (*ClusterAddon) SetupWebhookWithManager

func (r *ClusterAddon) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*ClusterAddon) ValidateCreate

func (r *ClusterAddon) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*ClusterAddon) ValidateDelete

func (r *ClusterAddon) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*ClusterAddon) ValidateUpdate

func (r *ClusterAddon) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type ClusterAddonBinding

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

	Spec   ClusterAddonBindingSpec   `json:"spec,omitempty"`
	Status ClusterAddonBindingStatus `json:"status,omitempty"`
}

ClusterAddonBinding is the Schema for the clusteraddonbindings API

func (*ClusterAddonBinding) DeepCopy

func (in *ClusterAddonBinding) DeepCopy() *ClusterAddonBinding

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

func (*ClusterAddonBinding) DeepCopyInto

func (in *ClusterAddonBinding) DeepCopyInto(out *ClusterAddonBinding)

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

func (*ClusterAddonBinding) DeepCopyObject

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

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

func (*ClusterAddonBinding) Default

func (r *ClusterAddonBinding) Default()

Default implements webhook.Defaulter so a webhook will be registered for the type

func (*ClusterAddonBinding) SetupWebhookWithManager

func (r *ClusterAddonBinding) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*ClusterAddonBinding) ValidateCreate

func (r *ClusterAddonBinding) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*ClusterAddonBinding) ValidateDelete

func (r *ClusterAddonBinding) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*ClusterAddonBinding) ValidateUpdate

func (r *ClusterAddonBinding) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type ClusterAddonBindingList

type ClusterAddonBindingList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []ClusterAddonBinding `json:"items"`
}

ClusterAddonBindingList contains a list of ClusterAddonBinding

func (*ClusterAddonBindingList) DeepCopy

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

func (*ClusterAddonBindingList) DeepCopyInto

func (in *ClusterAddonBindingList) DeepCopyInto(out *ClusterAddonBindingList)

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

func (*ClusterAddonBindingList) DeepCopyObject

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

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

type ClusterAddonBindingSpec

type ClusterAddonBindingSpec struct {
	//+kubebuilder:validation:Required
	ClusterRef corev1.LocalObjectReference `json:"clusterRef"`
	//+kubebuilder:validation:Required
	ClusterAddonRef corev1.LocalObjectReference `json:"clusterAddonRef"`
}

ClusterAddonBindingSpec defines the desired state of ClusterAddonBinding

func (*ClusterAddonBindingSpec) DeepCopy

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

func (*ClusterAddonBindingSpec) DeepCopyInto

func (in *ClusterAddonBindingSpec) DeepCopyInto(out *ClusterAddonBindingSpec)

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

type ClusterAddonBindingStatus

type ClusterAddonBindingStatus struct {
	Phase AddonPhase `json:"phase,omitempty"`
}

ClusterAddonBindingStatus defines the observed state of ClusterAddonBinding

func (*ClusterAddonBindingStatus) DeepCopy

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

func (*ClusterAddonBindingStatus) DeepCopyInto

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

type ClusterAddonList

type ClusterAddonList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []ClusterAddon `json:"items"`
}

ClusterAddonList contains a list of ClusterAddon

func (*ClusterAddonList) DeepCopy

func (in *ClusterAddonList) DeepCopy() *ClusterAddonList

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

func (*ClusterAddonList) DeepCopyInto

func (in *ClusterAddonList) DeepCopyInto(out *ClusterAddonList)

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

func (*ClusterAddonList) DeepCopyObject

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

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

type ClusterAddonSpec

type ClusterAddonSpec struct {
	// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Resources"
	//+kubebuilder:validation:MinItems:=1
	Resources []RemoteRef `json:"resources"`

	// DisplayName is the human-readable name of the addon shown in
	// the addon marketplace.
	//
	// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Display name",xDescriptors="urn:alm:descriptor:com.tectonic.ui:text"
	DisplayName string `json:"displayName"`
	// Maintainer is the name/contact information of the addon.
	//
	// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Maintainer",xDescriptors="urn:alm:descriptor:com.tectonic.ui:text"
	Maintainer string `json:"maintainer"`

	// shown in the addon marketplace for this addon.
	Logo string `json:"logo,omitempty"`
	// Description is the human-readable description of the addon
	// shown in the addon marketplace.
	//
	// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Description",xDescriptors="urn:alm:descriptor:com.tectonic.ui:text"
	Description string `json:"description,omitempty"`
	// Source indicates where the addon came from and how
	// trustworthy it should be considered.
	//
	// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Source"
	//+kubebuilder:validation:Enum=Official;Platform;Community;Unknown
	Source AddonSource `json:"source,omitempty"`
	// SourceURL is an external HTTP address that can be used by users
	// to find more information about an addon.
	//
	// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Source URL",xDescriptors="urn:alm:descriptor:com.tectonic.ui:text"
	SourceURL string `json:"sourceURL,omitempty"`
}

ClusterAddonSpec defines the desired state of ClusterAddon

func (*ClusterAddonSpec) DeepCopy

func (in *ClusterAddonSpec) DeepCopy() *ClusterAddonSpec

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

func (*ClusterAddonSpec) DeepCopyInto

func (in *ClusterAddonSpec) DeepCopyInto(out *ClusterAddonSpec)

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

type ClusterAddonStatus

type ClusterAddonStatus struct {
	ResourceDigests map[string]string  `json:"resourceDigests,omitempty"`
	Conditions      []metav1.Condition `json:"conditions,omitempty"`
}

ClusterAddonStatus defines the observed state of ClusterAddon

func (*ClusterAddonStatus) DeepCopy

func (in *ClusterAddonStatus) DeepCopy() *ClusterAddonStatus

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

func (*ClusterAddonStatus) DeepCopyInto

func (in *ClusterAddonStatus) DeepCopyInto(out *ClusterAddonStatus)

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"`
	Items           []Cluster `json:"items"`
}

ClusterList contains a list of Cluster

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.

type ClusterSpec

type ClusterSpec struct {
	HA      HighAvailability `json:"ha,omitempty"`
	Storage Storage          `json:"storage,omitempty"`

	// Track defines the frequency of system updates.
	//+kubebuilder:validation:Enum=Stable;Regular;Rapid;Beta
	Track ReleaseTrack `json:"track,omitempty"`

	// Accessors define who is authorised to interact with the cluster.
	// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Accessors"
	Accessors []AccessRef `json:"accessors,omitempty"`
}

ClusterSpec defines the desired state of 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 {
	// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Cluster conditions",xDescriptors="urn:alm:descriptor:io.kubernetes.conditions"
	Conditions []metav1.Condition `json:"conditions,omitempty"`

	KubeVersion     string `json:"kubeVersion,omitempty"`
	PlatformVersion string `json:"platformVersion,omitempty"`

	// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Kubernetes API URL",xDescriptors="urn:alm:descriptor:org.w3:link"
	KubeURL string `json:"kubeURL,omitempty"`
	// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Dashboard URL",xDescriptors="urn:alm:descriptor:org.w3:link"
	WebURL string `json:"webURL,omitempty"`

	// Deprecated
	ClusterID string `json:"clusterID,omitempty"`
	// Deprecated
	ClusterDomain   string `json:"clusterDomain,omitempty"`
	ClusterDatabase string `json:"clusterDatabase,omitempty"`

	Inventory NestedInventory `json:"inventory,omitempty"`

	Phase vclusterv1alpha1.VirtualClusterPhase `json:"phase,omitempty"`
}

ClusterStatus defines the observed state of Cluster

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 ClusterVersion

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

	Spec   ClusterVersionSpec   `json:"spec,omitempty"`
	Status ClusterVersionStatus `json:"status,omitempty"`
}

ClusterVersion is the Schema for the clusterversions API +kubebuilder:printcolumn:name="Tag",type=string,JSONPath=`.spec.image.tag`

func (*ClusterVersion) DeepCopy

func (in *ClusterVersion) DeepCopy() *ClusterVersion

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

func (*ClusterVersion) DeepCopyInto

func (in *ClusterVersion) DeepCopyInto(out *ClusterVersion)

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

func (*ClusterVersion) DeepCopyObject

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

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

func (*ClusterVersion) Default

func (r *ClusterVersion) Default()

Default implements webhook.Defaulter so a webhook will be registered for the type

func (*ClusterVersion) SetupWebhookWithManager

func (r *ClusterVersion) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*ClusterVersion) ValidateCreate

func (r *ClusterVersion) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*ClusterVersion) ValidateDelete

func (r *ClusterVersion) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*ClusterVersion) ValidateUpdate

func (r *ClusterVersion) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type ClusterVersionChart

type ClusterVersionChart struct {
	Repository string `json:"repository,omitempty"`
	Name       string `json:"name,omitempty"`
	Version    string `json:"version,omitempty"`
}

func (*ClusterVersionChart) DeepCopy

func (in *ClusterVersionChart) DeepCopy() *ClusterVersionChart

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

func (*ClusterVersionChart) DeepCopyInto

func (in *ClusterVersionChart) DeepCopyInto(out *ClusterVersionChart)

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

type ClusterVersionImage

type ClusterVersionImage struct {
	Registry string `json:"registry,omitempty"`
	//+kubebuilder:validation:Required
	Repository string `json:"repository"`
	//+kubebuilder:validation:Required
	Tag string `json:"tag"`
}

func (*ClusterVersionImage) DeepCopy

func (in *ClusterVersionImage) DeepCopy() *ClusterVersionImage

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

func (*ClusterVersionImage) DeepCopyInto

func (in *ClusterVersionImage) DeepCopyInto(out *ClusterVersionImage)

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

func (*ClusterVersionImage) String

func (in *ClusterVersionImage) String() string

type ClusterVersionList

type ClusterVersionList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []ClusterVersion `json:"items"`
}

ClusterVersionList contains a list of ClusterVersion

func (*ClusterVersionList) DeepCopy

func (in *ClusterVersionList) DeepCopy() *ClusterVersionList

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

func (*ClusterVersionList) DeepCopyInto

func (in *ClusterVersionList) DeepCopyInto(out *ClusterVersionList)

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

func (*ClusterVersionList) DeepCopyObject

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

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

type ClusterVersionNumber

type ClusterVersionNumber struct {
	Major int64 `json:"major,omitempty"`
	Minor int64 `json:"minor,omitempty"`
	Patch int64 `json:"patch,omitempty"`
}

func (*ClusterVersionNumber) DeepCopy

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

func (*ClusterVersionNumber) DeepCopyInto

func (in *ClusterVersionNumber) DeepCopyInto(out *ClusterVersionNumber)

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

func (*ClusterVersionNumber) String

func (in *ClusterVersionNumber) String() string

type ClusterVersionSpec

type ClusterVersionSpec struct {
	//+kubebuilder:validation:Required
	Image ClusterVersionImage `json:"image"`
	Chart ClusterVersionChart `json:"chart,omitempty"`
	//+kubebuilder:validation:Required
	//+kubebuilder:validation:Enum=Stable;Regular;Rapid;Beta
	Track ReleaseTrack `json:"track"`
}

ClusterVersionSpec defines the desired state of ClusterVersion

func (*ClusterVersionSpec) DeepCopy

func (in *ClusterVersionSpec) DeepCopy() *ClusterVersionSpec

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

func (*ClusterVersionSpec) DeepCopyInto

func (in *ClusterVersionSpec) DeepCopyInto(out *ClusterVersionSpec)

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

type ClusterVersionStatus

type ClusterVersionStatus struct {
	VersionNumber ClusterVersionNumber `json:"versionNumber,omitempty"`
	Conditions    []metav1.Condition   `json:"conditions,omitempty"`
}

ClusterVersionStatus defines the observed state of ClusterVersion

func (*ClusterVersionStatus) DeepCopy

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

func (*ClusterVersionStatus) DeepCopyInto

func (in *ClusterVersionStatus) DeepCopyInto(out *ClusterVersionStatus)

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

type HighAvailability

type HighAvailability struct {
	// Enabled sets whether the Virtual Control Plane is run in high-availability mode. Cannot be changed once set.
	//
	// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Enabled",xDescriptors="urn:alm:descriptor:com.tectonic.ui:booleanSwitch"
	Enabled bool `json:"enabled,omitempty"`
}

func (*HighAvailability) DeepCopy

func (in *HighAvailability) DeepCopy() *HighAvailability

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

func (*HighAvailability) DeepCopyInto

func (in *HighAvailability) DeepCopyInto(out *HighAvailability)

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

type NamespaceStrategy

type NamespaceStrategy string
const (
	StrategySingle   NamespaceStrategy = "Single"
	StrategyMultiple NamespaceStrategy = "Multiple"
)

type NamespacedName

type NamespacedName struct {
	Namespace string `json:"namespace"`
	Name      string `json:"name"`
}

func (*NamespacedName) DeepCopy

func (in *NamespacedName) DeepCopy() *NamespacedName

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

func (*NamespacedName) DeepCopyInto

func (in *NamespacedName) DeepCopyInto(out *NamespacedName)

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

type NestedInventory

type NestedInventory struct {
	AccessorRoles []string `json:"accessorRoles,omitempty"`
}

func (*NestedInventory) DeepCopy

func (in *NestedInventory) DeepCopy() *NestedInventory

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

func (*NestedInventory) DeepCopyInto

func (in *NestedInventory) DeepCopyInto(out *NestedInventory)

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

type OCIRemoteRef

type OCIRemoteRef struct {
	// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Image name",xDescriptors="urn:alm:descriptor:com.tectonic.ui:text"
	Name string `json:"name,omitempty"`
	// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Image Pull Secret",xDescriptors="urn:alm:descriptor:io.kubernetes:Secret"
	ImagePullSecret corev1.LocalObjectReference `json:"imagePullSecret,omitempty"`
}

func (*OCIRemoteRef) DeepCopy

func (in *OCIRemoteRef) DeepCopy() *OCIRemoteRef

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

func (*OCIRemoteRef) DeepCopyInto

func (in *OCIRemoteRef) DeepCopyInto(out *OCIRemoteRef)

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

type ReleaseTrack

type ReleaseTrack string
const (
	TrackStable  ReleaseTrack = "Stable"
	TrackRegular ReleaseTrack = "Regular"
	TrackRapid   ReleaseTrack = "Rapid"
	TrackBeta    ReleaseTrack = "Beta"
)

type RemoteRef

type RemoteRef struct {
	// URL is a Kustomize-compatible HTTPS URL to a Kustomize directory. Mutually-exclusive with ConfigMap and Secret.
	// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="URL",xDescriptors="urn:alm:descriptor:com.tectonic.ui:text"
	URL string `json:"url,omitempty"`
	// ConfigMap is a v1.ConfigMap that contains a number of Kustomize files. Mutually-exclusive with URL and Secret.
	// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="ConfigMap",xDescriptors="urn:alm:descriptor:io.kubernetes:ConfigMap"
	ConfigMap corev1.LocalObjectReference `json:"configMap,omitempty"`
	// Secret is a v1.Secret that contains a number of Kustomize files. Mutually-exclusive with URL and ConfigMap.
	// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Secret",xDescriptors="urn:alm:descriptor:io.kubernetes:Secret"
	Secret corev1.LocalObjectReference `json:"secret,omitempty"`
	// OCI is an OCI-compliant container image that contains a Kustomize directory.
	// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="OCI",xDescriptors="urn:alm:descriptor:com.tectonic.ui:text"
	OCI OCIRemoteRef `json:"oci,omitempty"`
}

func (*RemoteRef) DeepCopy

func (in *RemoteRef) DeepCopy() *RemoteRef

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

func (*RemoteRef) DeepCopyInto

func (in *RemoteRef) DeepCopyInto(out *RemoteRef)

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

type Storage

type Storage struct {
	// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Storage class",xDescriptors="urn:alm:descriptor:io.kubernetes:StorageClass"
	StorageClassName string `json:"storageClassName,omitempty"`
	// Size in Gi of the clusters backing disk.
	//
	// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Size (Gi)",xDescriptors="urn:alm:descriptor:com.tectonic.ui:number"
	//+kubebuilder:validation:Minimum:=1
	Size int `json:"size,omitempty"`
}

func (*Storage) DeepCopy

func (in *Storage) DeepCopy() *Storage

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

func (*Storage) DeepCopyInto

func (in *Storage) DeepCopyInto(out *Storage)

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

type Tenant

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

	Spec   TenantSpec   `json:"spec,omitempty"`
	Status TenantStatus `json:"status,omitempty"`
}

Tenant is the Schema for the tenants API +kubebuilder:printcolumn:name="Owner",type=string,JSONPath=`.spec.owner` +kubebuilder:printcolumn:name="Phase",type=string,JSONPath=`.status.phase`

func (*Tenant) DeepCopy

func (in *Tenant) DeepCopy() *Tenant

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

func (*Tenant) DeepCopyInto

func (in *Tenant) DeepCopyInto(out *Tenant)

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

func (*Tenant) DeepCopyObject

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

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

func (*Tenant) Default

func (r *Tenant) Default()

Default implements webhook.Defaulter so a webhook will be registered for the type

func (*Tenant) SetupWebhookWithManager

func (r *Tenant) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*Tenant) ValidateCreate

func (r *Tenant) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*Tenant) ValidateDelete

func (r *Tenant) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*Tenant) ValidateUpdate

func (r *Tenant) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type TenantList

type TenantList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Tenant `json:"items"`
}

TenantList contains a list of Tenant

func (*TenantList) DeepCopy

func (in *TenantList) DeepCopy() *TenantList

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

func (*TenantList) DeepCopyInto

func (in *TenantList) DeepCopyInto(out *TenantList)

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

func (*TenantList) DeepCopyObject

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

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

type TenantPhase

type TenantPhase string
const (
	PhasePendingApproval TenantPhase = "PendingApproval"
	PhaseReady           TenantPhase = "Ready"
)

type TenantSpec

type TenantSpec struct {
	// Owner is the human user that owns the tenant.
	// They will have special privileges that will not be given
	// to Accessors (e.g. ability to delete the tenant).
	//
	// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Owner",xDescriptors="urn:alm:descriptor:com.tectonic.ui:text"
	Owner             string            `json:"owner"`
	NamespaceStrategy NamespaceStrategy `json:"namespaceStrategy"`
	// Accessors define who is authorised to interact with the tenant.
	//
	// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Accessors"
	Accessors []AccessRef `json:"accessors,omitempty"`
}

TenantSpec defines the desired state of Tenant

func (*TenantSpec) DeepCopy

func (in *TenantSpec) DeepCopy() *TenantSpec

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

func (*TenantSpec) DeepCopyInto

func (in *TenantSpec) DeepCopyInto(out *TenantSpec)

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

type TenantStatus

type TenantStatus struct {
	ObservedClusters   []NamespacedName   `json:"observedClusters,omitempty"`
	ObservedNamespaces []string           `json:"observedNamespaces,omitempty"`
	Phase              TenantPhase        `json:"phase,omitempty"`
	Conditions         []metav1.Condition `json:"conditions,omitempty"`
}

TenantStatus defines the observed state of Tenant

func (*TenantStatus) DeepCopy

func (in *TenantStatus) DeepCopy() *TenantStatus

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

func (*TenantStatus) DeepCopyInto

func (in *TenantStatus) DeepCopyInto(out *TenantStatus)

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