Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the config v1alpha1 API group +kubebuilder:object:generate=true +groupName=config.undistro.io
Index ¶
- Constants
- Variables
- type Provider
- func (in *Provider) DeepCopy() *Provider
- func (in *Provider) DeepCopyInto(out *Provider)
- func (in *Provider) DeepCopyObject() runtime.Object
- func (r *Provider) Default()
- func (p *Provider) GetNamespace() string
- func (p *Provider) GetStatusConditions() *[]metav1.Condition
- func (r *Provider) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *Provider) ValidateCreate() error
- func (r *Provider) ValidateDelete() error
- func (r *Provider) ValidateUpdate(old runtime.Object) error
- type ProviderList
- type ProviderSpec
- type ProviderStatus
- type ProviderType
- type Repository
Constants ¶
const ( CoreProviderType = ProviderType("core") InfraProviderType = ProviderType("infra") )
Variables ¶
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 ¶
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 ¶
ProviderNotReady registers a failed reconciliation of the given Provider.
func ProviderProgressing ¶
ProviderProgressing resets any failures and registers progress toward reconciling the given Provider by setting the meta.ReadyCondition to 'Unknown' for meta.ProgressingReason.
func ProviderReady ¶
ProviderReady registers a successful reconciliation of the given Provider.
func (*Provider) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Provider.
func (*Provider) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Provider) DeepCopyObject ¶
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 (*Provider) GetStatusConditions ¶
func (*Provider) SetupWebhookWithManager ¶
func (*Provider) ValidateCreate ¶
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*Provider) ValidateDelete ¶
ValidateDelete 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.