v1alpha1

package
v0.31.4 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the config v1alpha1 API group +kubebuilder:object:generate=true +groupName=config.undistro.io

Index

Constants

View Source
const (
	CoreProviderType  = ProviderType("core")
	InfraProviderType = ProviderType("infra")
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "config.undistro.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 Provider

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

	Spec   ProviderSpec   `json:"spec,omitempty"`
	Status ProviderStatus `json:"status,omitempty"`
}

Provider is the Schema for the providers API

func ProviderAttempted

func ProviderAttempted(p Provider, releaseName, version string) Provider

ProviderAttempted registers an attempt of the given Provider with the given state. and returns the modified Provider and a boolean indicating a state change.

func ProviderNotReady

func ProviderNotReady(p Provider, reason, message string) Provider

ProviderNotReady registers a failed reconciliation of the given Provider.

func ProviderProgressing

func ProviderProgressing(p Provider) Provider

ProviderProgressing resets any failures and registers progress toward reconciling the given Provider by setting the meta.ReadyCondition to 'Unknown' for meta.ProgressingReason.

func ProviderReady

func ProviderReady(p Provider) Provider

ProviderReady registers a successful reconciliation of the given Provider.

func (*Provider) DeepCopy

func (in *Provider) DeepCopy() *Provider

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

func (*Provider) DeepCopyInto

func (in *Provider) DeepCopyInto(out *Provider)

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

func (*Provider) DeepCopyObject

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

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

func (*Provider) Default

func (r *Provider) Default()

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

func (*Provider) GetNamespace

func (p *Provider) GetNamespace() string

func (*Provider) GetStatusConditions

func (p *Provider) GetStatusConditions() *[]metav1.Condition

func (*Provider) SetupWebhookWithManager

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

func (*Provider) ValidateCreate

func (r *Provider) ValidateCreate() error

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

func (*Provider) ValidateDelete

func (r *Provider) ValidateDelete() error

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

func (*Provider) ValidateUpdate

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

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

type ProviderList

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

ProviderList contains a list of Provider

func (*ProviderList) DeepCopy

func (in *ProviderList) DeepCopy() *ProviderList

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

func (*ProviderList) DeepCopyInto

func (in *ProviderList) DeepCopyInto(out *ProviderList)

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

func (*ProviderList) DeepCopyObject

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

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

type ProviderSpec

type ProviderSpec struct {
	// +kubebuilder:default=false
	Paused            bool                          `json:"paused,omitempty"`
	ProviderName      string                        `json:"providerName,omitempty"`
	ProviderVersion   string                        `json:"providerVersion,omitempty"`
	ProviderType      string                        `json:"providerType,omitempty"`
	Repository        Repository                    `json:"repository,omitempty"`
	ConfigurationFrom []appv1alpha1.ValuesReference `json:"configurationFrom,omitempty"`
	Configuration     *apiextensionsv1.JSON         `json:"configuration,omitempty"`
	// +kubebuilder:default=false
	AutoUpgrade bool `json:"autoUpgrade,omitempty"`
}

ProviderSpec defines the desired state of Provider

func (*ProviderSpec) DeepCopy

func (in *ProviderSpec) DeepCopy() *ProviderSpec

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

func (*ProviderSpec) DeepCopyInto

func (in *ProviderSpec) DeepCopyInto(out *ProviderSpec)

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

type ProviderStatus

type ProviderStatus struct {
	// ObservedGeneration is the last observed generation.
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
	// +patchMergeKey=type
	// +patchStrategy=merge
	// +listType=map
	// +listMapKey=type
	Conditions           []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"`
	HelmReleaseName      string             `json:"helmReleaseName,omitempty"`
	LastAppliedVersion   string             `json:"lastAppliedVersion,omitempty"`
	LastAttemptedVersion string             `json:"lastAttemptedVersion,omitempty"`
}

ProviderStatus defines the observed state of Provider

func (*ProviderStatus) DeepCopy

func (in *ProviderStatus) DeepCopy() *ProviderStatus

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

func (*ProviderStatus) DeepCopyInto

func (in *ProviderStatus) DeepCopyInto(out *ProviderStatus)

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

type ProviderType added in v0.26.0

type ProviderType string

type Repository

type Repository struct {
	// +kubebuilder:default="https://registry.undistro.io/chartrepo/library"
	URL       string                       `json:"url,omitempty"`
	SecretRef *corev1.LocalObjectReference `json:"secretRef,omitempty"`
}

func (*Repository) DeepCopy

func (in *Repository) DeepCopy() *Repository

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

func (*Repository) DeepCopyInto

func (in *Repository) DeepCopyInto(out *Repository)

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