v1alpha1

package
v1.0.0 Latest Latest
Warning

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

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

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the addons v1alpha1 API group +kubebuilder:object:generate=true +groupName=addons.cluster.x-k8s.io

Index

Constants

View Source
const (
	// VerrazzanoFleetBindingSpecsCreatedOrUpDatedCondition indicates that the VerrazzanoFleetBinding specs are up to date with the VerrazzanoFleet specs,
	// meaning that the VerrazzanoFleetBindings are created/updated, value template parsing succeeded, and the orphaned VerrazzanoFleetBindings are deleted.
	VerrazzanoFleetBindingSpecsCreatedOrUpDatedCondition clusterv1.ConditionType = "BindingsCreatedOrUpdated"

	// VerrazzanoFleetBindingCreationFailedReason indicates that the VerrazzanoFleet controller failed to create a VerrazzanoFleetBinding.
	VerrazzanoFleetBindingCreationFailedReason = "VerrazzanoFleetBindingCreationFailed"

	// VerrazzanoFleetBindingDeletionFailedReason indicates that the VerrazzanoFleet controller failed to delete a VerrazzanoFleetBinding.
	VerrazzanoFleetBindingDeletionFailedReason = "VerrazzanoFleetBindingDeletionFailed"

	// VerrazzanoFleetBindingReinstallingReason indicates that the VerrazzanoFleet controller is reinstalling a VerrazzanoFleetBinding.
	VerrazzanoFleetBindingReinstallingReason = "VerrazzanoFleetBindingReinstalling"

	// ValueParsingFailedReason indicates that the VerrazzanoFleet controller failed to parse the values.
	ValueParsingFailedReason = "ValueParsingFailed"

	// ClusterSelectionFailedReason indicates that the VerrazzanoFleet controller failed to select the workload Clusters.
	ClusterSelectionFailedReason = "ClusterSelectionFailed"

	// VerrazzanoFleetBindingsReadyCondition indicates that the VerrazzanoFleetBindings are ready, meaning that the Helm installation, upgrade
	// or deletion is complete.
	VerrazzanoFleetBindingsReadyCondition clusterv1.ConditionType = "VerrazzanoFleetBindingsReady"

	// VerrazzanoFleetBindingExistsReason indicates that the VerrazzanoFleet controller failed to create a VerrazzanoFleetBinding as it already exists
	VerrazzanoFleetBindingExistsReason clusterv1.ConditionType = "VerrazzanoFleetBindingAlreadyExists"
)

VerrazzanoFleet Conditions and Reasons.

View Source
const (
	// HelmReleaseReadyCondition indicates the current status of the underlying Helm release managed by the VerrazzanoFleetBinding.
	HelmReleaseReadyCondition clusterv1.ConditionType = "HelmReleaseReady"

	// PreparingToHelmInstallReason indicates that the VerrazzanoFleetBinding is preparing to install the Helm release.
	PreparingToHelmInstallReason = "PreparingToHelmInstall"

	// HelmReleasePendingReason indicates that the VerrazzanoFleetBinding is pending either install, upgrade, or rollback.
	HelmReleasePendingReason = "HelmReleasePending"

	// HelmInstallOrUpgradeFailedReason indicates that the VerrazzanoFleetBinding failed to install or upgrade the Helm release.
	HelmInstallOrUpgradeFailedReason = "HelmInstallOrUpgradeFailed"

	// HelmReleaseDeletionFailedReason is indicates that the VerrazzanoFleetBinding failed to delete the Helm release.
	HelmReleaseDeletionFailedReason = "HelmReleaseDeletionFailed"

	// HelmReleaseDeletedReason indicates that the VerrazzanoFleetBinding deleted the Helm release.
	HelmReleaseDeletedReason = "HelmReleaseDeleted"

	// HelmReleaseGetFailedReason indicates that the VerrazzanoFleetBinding failed to get the Helm release.
	HelmReleaseGetFailedReason = "HelmReleaseGetFailed"

	// ClusterAvailableCondition indicates that the Cluster to install the Helm release on is available.
	ClusterAvailableCondition clusterv1.ConditionType = "ClusterAvailable"

	// GetClusterFailedReason indicates that the VerrazzanoFleetBinding failed to get the Cluster.
	GetClusterFailedReason = "GetClusterFailed"

	// GetKubeconfigFailedReason indicates that the VerrazzanoFleetBinding failed to get the kubeconfig for the Cluster.
	GetKubeconfigFailedReason = "GetKubeconfigFailed"

	// VerrazzanoPlatformOperatorNotUPReason indicates that the Verrazzano Platform Operator pods are not up.
	VerrazzanoPlatformOperatorNotUPReason = "VerrazzanoPlatformOperatorPodsNotRunning"

	// VerrazzanoPlatformOperatorNotRunningReason indicates that the Verrazzano Platform Operator pods are not up.
	VerrazzanoPlatformOperatorNotRunningReason = "VerrazzanoPlatformOperatorPodsNotRunning"

	// VerrazzanoPlatformOperatorWebhookNotRunningReason indicates that the Verrazzano Platform Operator webhook pods are not up.
	VerrazzanoPlatformOperatorWebhookNotRunningReason = "VerrazzanoPlatformOperatorWebhookPodsNotRunning"

	// VerrazzanoOperatorReadyCondition indicates that the Verrazzano Platform Operator was deployed sucessfully.
	VerrazzanoOperatorReadyCondition clusterv1.ConditionType = "VerrazzanoOperatorReady"

	// VerrazzanoDeployedCondition indicates that the Verrazzano was deployed sucessfully.
	VerrazzanoDeployedCondition clusterv1.ConditionType = "VerrazzanoDeployed"
)

VerrazzanoFleetBinding Conditions and Reasons.

View Source
const (
	// VerrazzanoFleetBindingFinalizer is the finalizer used by the VerrazzanoFleetBinding controller to cleanup add-on resources when
	// a VerrazzanoFleetBinding is being deleted.
	VerrazzanoFleetBindingFinalizer = "verrazzanofleetbinding.addons.cluster.x-k8s.io"

	// VerrazzanoFleetLabelName is the label signifying which VerrazzanoFleet a VerrazzanoFleetBinding is associated with.
	VerrazzanoFleetLabelName = "verrazzanofleetbinding.addons.cluster.x-k8s.io/verrazzanofleet-name"

	// IsReleaseNameGeneratedAnnotation is the annotation signifying the Helm release name is auto-generated.
	IsReleaseNameGeneratedAnnotation = "verrazzanofleetbinding.addons.cluster.x-k8s.io/is-release-name-generated"
)
View Source
const (
	// VerrazzanoFleetFinalizer is the finalizer used by the VerrazzanoFleet controller to cleanup add-on resources when
	// a VerrazzanoFleet is being deleted.
	VerrazzanoFleetFinalizer = "verrazzanofleet.addons.cluster.x-k8s.io"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "addons.cluster.x-k8s.io", 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

This section is empty.

Types

type ClusterName

type ClusterName struct {
	// Name is name cluster where verrazzano will be installed
	// +optional
	Name string `json:"name,omitempty"`
}

func (*ClusterName) DeepCopy

func (in *ClusterName) DeepCopy() *ClusterName

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

func (*ClusterName) DeepCopyInto

func (in *ClusterName) DeepCopyInto(out *ClusterName)

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

type ImageMeta

type ImageMeta struct {
	// Repository sets the container registry to pull images from.
	// if not set, the Repository defined in OCNEMeta will be used instead.
	// +optional
	Repository string `json:"repository,omitempty"`

	// Tag allows to specify a tag for the image.
	// if not set, the Tag defined in OCNEMeta will be used instead.
	// +optional
	Tag string `json:"tag,omitempty"`

	// PullPolicy allows to specify an image pull policy for the container images.
	// if not set, the PullPolicy is IfNotPresent.
	// +optional
	PullPolicy string `json:"pullPolicy,omitempty"`
}

func (*ImageMeta) DeepCopy

func (in *ImageMeta) DeepCopy() *ImageMeta

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

func (*ImageMeta) DeepCopyInto

func (in *ImageMeta) DeepCopyInto(out *ImageMeta)

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

type PrivateRegistry

type PrivateRegistry struct {
	// Enabled sets a flag to determine if a private registry will be used when installing Verrazzano.
	// if not set, the Enabled is set to false.
	// +optional
	Enabled bool `json:"enabled,omitempty"`
}

func (*PrivateRegistry) DeepCopy

func (in *PrivateRegistry) DeepCopy() *PrivateRegistry

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

func (*PrivateRegistry) DeepCopyInto

func (in *PrivateRegistry) DeepCopyInto(out *PrivateRegistry)

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

type SecretName

type SecretName struct {
	// Name is name of the secret to be used as image pull secret
	// +optional
	Name string `json:"name,omitempty"`
}

func (*SecretName) DeepCopy

func (in *SecretName) DeepCopy() *SecretName

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

func (*SecretName) DeepCopyInto

func (in *SecretName) DeepCopyInto(out *SecretName)

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

type Verrazzano

type Verrazzano struct {
	// +kubebuilder:pruning:PreserveUnknownFields
	Spec *runtime.RawExtension `json:"spec"`
}

func (*Verrazzano) DeepCopy

func (in *Verrazzano) DeepCopy() *Verrazzano

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

func (*Verrazzano) DeepCopyInto

func (in *Verrazzano) DeepCopyInto(out *Verrazzano)

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

type VerrazzanoFleet

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

	Spec   VerrazzanoFleetSpec   `json:"spec,omitempty"`
	Status VerrazzanoFleetStatus `json:"status,omitempty"`
}

VerrazzanoFleet is the Schema for the verrazzanofleets API

func (*VerrazzanoFleet) DeepCopy

func (in *VerrazzanoFleet) DeepCopy() *VerrazzanoFleet

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

func (*VerrazzanoFleet) DeepCopyInto

func (in *VerrazzanoFleet) DeepCopyInto(out *VerrazzanoFleet)

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

func (*VerrazzanoFleet) DeepCopyObject

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

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

func (*VerrazzanoFleet) Default

func (in *VerrazzanoFleet) Default()

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

func (*VerrazzanoFleet) GetConditions

func (c *VerrazzanoFleet) GetConditions() clusterv1.Conditions

GetConditions returns the list of conditions for an VerrazzanoFleet API object.

func (*VerrazzanoFleet) SetConditions

func (c *VerrazzanoFleet) SetConditions(conditions clusterv1.Conditions)

SetConditions will set the given conditions on an VerrazzanoFleet object.

func (*VerrazzanoFleet) SetupWebhookWithManager

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

func (*VerrazzanoFleet) ValidateCreate

func (in *VerrazzanoFleet) ValidateCreate() (admission.Warnings, error)

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

func (*VerrazzanoFleet) ValidateDelete

func (r *VerrazzanoFleet) ValidateDelete() (admission.Warnings, error)

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

func (*VerrazzanoFleet) ValidateUpdate

func (in *VerrazzanoFleet) ValidateUpdate(old runtime.Object) (admission.Warnings, error)

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

type VerrazzanoFleetBinding

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

	Spec   VerrazzanoFleetBindingSpec   `json:"spec,omitempty"`
	Status VerrazzanoFleetBindingStatus `json:"status,omitempty"`
}

VerrazzanoFleetBinding is the Schema for the verrazzanofleetbindings API

func (*VerrazzanoFleetBinding) DeepCopy

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

func (*VerrazzanoFleetBinding) DeepCopyInto

func (in *VerrazzanoFleetBinding) DeepCopyInto(out *VerrazzanoFleetBinding)

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

func (*VerrazzanoFleetBinding) DeepCopyObject

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

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

func (*VerrazzanoFleetBinding) Default

func (in *VerrazzanoFleetBinding) Default()

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

func (*VerrazzanoFleetBinding) GetConditions

func (r *VerrazzanoFleetBinding) GetConditions() clusterv1.Conditions

GetConditions returns the list of conditions for an VerrazzanoFleetBinding API object.

func (*VerrazzanoFleetBinding) SetConditions

func (r *VerrazzanoFleetBinding) SetConditions(conditions clusterv1.Conditions)

SetConditions will set the given conditions on an VerrazzanoFleetBinding object.

func (*VerrazzanoFleetBinding) SetReleaseRevision

func (r *VerrazzanoFleetBinding) SetReleaseRevision(version int)

SetReleaseRevision will set the given revision on an VerrazzanoFleetBinding object.

func (*VerrazzanoFleetBinding) SetReleaseStatus

func (r *VerrazzanoFleetBinding) SetReleaseStatus(status string)

SetReleaseStatus will set the given status on an VerrazzanoFleetBinding object.

func (*VerrazzanoFleetBinding) SetupWebhookWithManager

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

func (*VerrazzanoFleetBinding) ValidateCreate

func (in *VerrazzanoFleetBinding) ValidateCreate() (admission.Warnings, error)

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

func (*VerrazzanoFleetBinding) ValidateDelete

func (r *VerrazzanoFleetBinding) ValidateDelete() (admission.Warnings, error)

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

func (*VerrazzanoFleetBinding) ValidateUpdate

func (in *VerrazzanoFleetBinding) ValidateUpdate(old runtime.Object) (admission.Warnings, error)

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

type VerrazzanoFleetBindingList

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

VerrazzanoFleetBindingList contains a list of VerrazzanoFleetBinding

func (*VerrazzanoFleetBindingList) DeepCopy

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

func (*VerrazzanoFleetBindingList) DeepCopyInto

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

func (*VerrazzanoFleetBindingList) DeepCopyObject

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

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

type VerrazzanoFleetBindingSpec

type VerrazzanoFleetBindingSpec struct {
	// ClusterRef is a reference to the Cluster to install the Helm release on.
	ClusterRef corev1.ObjectReference `json:"clusterRef"`

	// Image is used to set various attributes regarding a specific module.
	// If not set, they are set as per the ImageMeta definitions.
	// +optional
	Image *ImageMeta `json:"image,omitempty"`

	// ImagePullSecrets allows to specify secrets if the image is being pulled from an authenticated private registry.
	// if not set, it will be assumed the images are public.
	// +optional
	ImagePullSecrets []SecretName `json:"imagePullSecrets,omitempty"`

	// Verrazzano is a verrazzano spec for installation on remote cluster.
	Verrazzano *Verrazzano `json:"verrazzano"`

	// PrivateRegistry sets the private registry settings for installing Verrazzano.
	// +optional
	PrivateRegistry *PrivateRegistry `json:"privateRegistry,omitempty"`
}

VerrazzanoFleetBindingSpec defines the desired state of VerrazzanoFleetBinding.

func (*VerrazzanoFleetBindingSpec) DeepCopy

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

func (*VerrazzanoFleetBindingSpec) DeepCopyInto

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

type VerrazzanoFleetBindingStatus

type VerrazzanoFleetBindingStatus struct {
	// Conditions defines current state of the VerrazzanoFleetBinding.
	// +optional
	Conditions clusterv1.Conditions `json:"conditions,omitempty"`

	// Status is the current status of the Helm release.
	// +optional
	Status string `json:"status,omitempty"`

	// Revision is the current revision of the Helm release.
	// +optional
	Revision int `json:"revision,omitempty"`

	// VerrazzanoStatus objects displays verrazzano specific status
	Verrazzano VerrazzanoStatus `json:"verrazzano,omitempty"`
}

VerrazzanoFleetBindingStatus defines the observed state of VerrazzanoFleetBinding.

func (*VerrazzanoFleetBindingStatus) DeepCopy

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

func (*VerrazzanoFleetBindingStatus) DeepCopyInto

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

type VerrazzanoFleetList

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

VerrazzanoFleetList contains a list of VerrazzanoFleet

func (*VerrazzanoFleetList) DeepCopy

func (in *VerrazzanoFleetList) DeepCopy() *VerrazzanoFleetList

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

func (*VerrazzanoFleetList) DeepCopyInto

func (in *VerrazzanoFleetList) DeepCopyInto(out *VerrazzanoFleetList)

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

func (*VerrazzanoFleetList) DeepCopyObject

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

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

type VerrazzanoFleetSpec

type VerrazzanoFleetSpec struct {
	// ClusterSelector selects a single Cluster in the same namespace with specified cluster name.
	ClusterSelector *ClusterName `json:"clusterSelector"`

	// Image is used to set various attributes regarding a specific module.
	// If not set, they are set as per the ImageMeta definitions.
	// +optional
	Image *ImageMeta `json:"image,omitempty"`

	// ImagePullSecrets allows to specify secrets if the image is being pulled from an authenticated private registry.
	// if not set, it will be assumed the images are public.
	// +optional
	ImagePullSecrets []SecretName `json:"imagePullSecrets,omitempty"`

	// Verrazzano is a verrazzano spec for installation on remote cluster.
	Verrazzano *Verrazzano `json:"verrazzano"`

	// PrivateRegistry sets the private registry settings for installing Verrazzano.
	// +optional
	PrivateRegistry *PrivateRegistry `json:"privateRegistry,omitempty"`
}

VerrazzanoFleetSpec defines the desired state of VerrazzanoFleet.

func (*VerrazzanoFleetSpec) DeepCopy

func (in *VerrazzanoFleetSpec) DeepCopy() *VerrazzanoFleetSpec

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

func (*VerrazzanoFleetSpec) DeepCopyInto

func (in *VerrazzanoFleetSpec) DeepCopyInto(out *VerrazzanoFleetSpec)

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

type VerrazzanoFleetStatus

type VerrazzanoFleetStatus struct {
	// Conditions defines current state of the VerrazzanoFleet.
	// +optional
	Conditions clusterv1.Conditions `json:"conditions,omitempty"`
}

VerrazzanoFleetStatus defines the observed state of VerrazzanoFleet.

func (*VerrazzanoFleetStatus) DeepCopy

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

func (*VerrazzanoFleetStatus) DeepCopyInto

func (in *VerrazzanoFleetStatus) DeepCopyInto(out *VerrazzanoFleetStatus)

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

type VerrazzanoStatus

type VerrazzanoStatus struct {
	// ComponentsAvailable displays the health of Verrazzano component
	ComponentsAvailable string `json:"componentsAvailable,omitempty"`

	// Version depicts the version of Verrazzano installed on the cluster.
	Version string `json:"version,omitempty"`

	// Stats depicts the state of  the Verrazzano installed on the cluster.
	State string `json:"state,omitempty"`
}

func (*VerrazzanoStatus) DeepCopy

func (in *VerrazzanoStatus) DeepCopy() *VerrazzanoStatus

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

func (*VerrazzanoStatus) DeepCopyInto

func (in *VerrazzanoStatus) DeepCopyInto(out *VerrazzanoStatus)

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