v1alpha1

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2020 License: Apache-2.0 Imports: 5 Imported by: 8

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the addons v1alpha1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:defaulter-gen=TypeMeta +groupName=addons.kyma-project.io

Package v1 contains API Schema definitions for the addons v1 API group +kubebuilder:object:generate=true +groupName=addons.kyma-project.io

Index

Constants

View Source
const FinalizerAddonsConfiguration string = "addons.kyma-project.io"

FinalizerAddonsConfiguration defines the finalizer used by Controller, must be qualified name.

Variables

View Source
var (
	// SchemeGroupVersion is group version used to register these objects
	SchemeGroupVersion = schema.GroupVersion{Group: "addons.kyma-project.io", Version: "v1alpha1"}

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

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

Functions

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type Addon

type Addon struct {
	Name    string            `json:"name"`
	Version string            `json:"version"`
	Status  AddonStatus       `json:"status,omitempty"`
	Reason  AddonStatusReason `json:"reason,omitempty"`
	Message string            `json:"message,omitempty"`
}

Addon holds information about single 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.

func (*Addon) Key

func (a *Addon) Key() string

Key returns a key for an addon

type AddonStatus

type AddonStatus string

AddonStatus define the addon status +kubebuilder:validation:Enum=Ready;Failed

const (
	// AddonStatusReady means that given addon is correct
	AddonStatusReady AddonStatus = "Ready"
	// AddonStatusFailed means that there is some problem with the given addon
	AddonStatusFailed AddonStatus = "Failed"
)

type AddonStatusReason

type AddonStatusReason string
const (
	AddonLoadingError                        AddonStatusReason = "LoadingError"
	AddonFetchingError                       AddonStatusReason = "FetchingError"
	AddonConflictInSpecifiedRepositories     AddonStatusReason = "ConflictInSpecifiedRepositories"
	AddonConflictWithAlreadyRegisteredAddons AddonStatusReason = "ConflictWithAlreadyRegisteredAddon"
	AddonUnregisteringError                  AddonStatusReason = "UnregisteringError"
	AddonRegisteringError                    AddonStatusReason = "RegisteringError"
)

func (AddonStatusReason) Message

func (r AddonStatusReason) Message() string

func (AddonStatusReason) String

func (r AddonStatusReason) String() string

type AddonsConfiguration

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

	Spec   AddonsConfigurationSpec   `json:"spec,omitempty"`
	Status AddonsConfigurationStatus `json:"status,omitempty"`
}

AddonsConfiguration is the Schema for the addonsconfigurations API

+genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +kubebuilder:resource:categories=all;addons +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Phase",type=string,JSONPath=`.status.phase` +kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp`

func (*AddonsConfiguration) DeepCopy

func (in *AddonsConfiguration) DeepCopy() *AddonsConfiguration

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

func (*AddonsConfiguration) DeepCopyInto

func (in *AddonsConfiguration) DeepCopyInto(out *AddonsConfiguration)

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

func (*AddonsConfiguration) DeepCopyObject

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

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

type AddonsConfigurationList

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

AddonsConfigurationList contains a list of AddonsConfiguration

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*AddonsConfigurationList) DeepCopy

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

func (*AddonsConfigurationList) DeepCopyInto

func (in *AddonsConfigurationList) DeepCopyInto(out *AddonsConfigurationList)

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

func (*AddonsConfigurationList) DeepCopyObject

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

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

type AddonsConfigurationPhase

type AddonsConfigurationPhase string

AddonsConfigurationPhase defines the addons configuration phase

const (
	// AddonsConfigurationReady means that Configuration was processed successfully
	AddonsConfigurationReady AddonsConfigurationPhase = "Ready"
	// AddonsConfigurationPending means that Configuration was not yet processed
	AddonsConfigurationPending AddonsConfigurationPhase = "Pending"
	// AddonsConfigurationFailed means that Configuration has some errors
	AddonsConfigurationFailed AddonsConfigurationPhase = "Failed"
)

type AddonsConfigurationSpec

type AddonsConfigurationSpec struct {
	CommonAddonsConfigurationSpec `json:",inline"`
}

AddonsConfigurationSpec defines the desired state of AddonsConfiguration

func (*AddonsConfigurationSpec) DeepCopy

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

func (*AddonsConfigurationSpec) DeepCopyInto

func (in *AddonsConfigurationSpec) DeepCopyInto(out *AddonsConfigurationSpec)

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

type AddonsConfigurationStatus

type AddonsConfigurationStatus struct {
	CommonAddonsConfigurationStatus `json:",inline"`
}

AddonsConfigurationStatus defines the observed state of AddonsConfiguration

func (*AddonsConfigurationStatus) DeepCopy

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

func (*AddonsConfigurationStatus) DeepCopyInto

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

type ClusterAddonsConfiguration

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

	Spec   ClusterAddonsConfigurationSpec   `json:"spec,omitempty"`
	Status ClusterAddonsConfigurationStatus `json:"status,omitempty"`
}

ClusterAddonsConfiguration is the Schema for the addonsconfigurations API

+genclient +genclient:nonNamespaced +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +kubebuilder:categories=all,addons +kubebuilder:subresource:status +kubebuilder:resource:scope=Cluster +kubebuilder:printcolumn:name="Phase",type=string,JSONPath=`.status.phase` +kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp`

func (*ClusterAddonsConfiguration) DeepCopy

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

func (*ClusterAddonsConfiguration) DeepCopyInto

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

func (*ClusterAddonsConfiguration) DeepCopyObject

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

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

type ClusterAddonsConfigurationList

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

ClusterAddonsConfigurationList contains a list of ClusterAddonsConfiguration +genclient:nonNamespaced +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*ClusterAddonsConfigurationList) DeepCopy

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

func (*ClusterAddonsConfigurationList) DeepCopyInto

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

func (*ClusterAddonsConfigurationList) DeepCopyObject

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

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

type ClusterAddonsConfigurationSpec

type ClusterAddonsConfigurationSpec struct {
	CommonAddonsConfigurationSpec `json:",inline"`
}

ClusterAddonsConfigurationSpec defines the desired state of ClusterAddonsConfiguration

func (*ClusterAddonsConfigurationSpec) DeepCopy

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

func (*ClusterAddonsConfigurationSpec) DeepCopyInto

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

type ClusterAddonsConfigurationStatus

type ClusterAddonsConfigurationStatus struct {
	CommonAddonsConfigurationStatus `json:",inline"`
}

ClusterAddonsConfigurationStatus defines the observed state of ClusterAddonsConfiguration

func (*ClusterAddonsConfigurationStatus) DeepCopy

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

func (*ClusterAddonsConfigurationStatus) DeepCopyInto

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

type CommonAddonsConfigurationSpec

type CommonAddonsConfigurationSpec struct {
	// ReprocessRequest is strictly increasing, non-negative integer counter
	// that can be incremented by a user to manually trigger the reprocessing action of given CR.
	// TODO: Use validation webhook to block negative values, explanation:
	// https://github.com/kubernetes/community/blob/db7f270f2d04b497767ebbc59c5aea595d67ea2c/contributors/devel/sig-architecture/api-conventions.md#primitive-types
	ReprocessRequest int64            `json:"reprocessRequest,omitempty"`
	Repositories     []SpecRepository `json:"repositories"`
}

CommonAddonsConfigurationSpec defines the desired state of (Cluster)AddonsConfiguration

func (*CommonAddonsConfigurationSpec) DeepCopy

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

func (*CommonAddonsConfigurationSpec) DeepCopyInto

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

type CommonAddonsConfigurationStatus

type CommonAddonsConfigurationStatus struct {
	Phase              AddonsConfigurationPhase `json:"phase"`
	LastProcessedTime  *metav1.Time             `json:"lastProcessedTime,omitempty"`
	ObservedGeneration int64                    `json:"observedGeneration,omitempty"`
	Repositories       []StatusRepository       `json:"repositories,omitempty"`
}

CommonAddonsConfigurationStatus defines the observed state of AddonsConfiguration

func (*CommonAddonsConfigurationStatus) DeepCopy

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

func (*CommonAddonsConfigurationStatus) DeepCopyInto

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

type RepositoryStatus

type RepositoryStatus string

RepositoryStatus define the repository status

const (
	// RepositoryStatusFailed means that there is some problem with the given repository
	RepositoryStatusFailed RepositoryStatus = "Failed"

	// RepositoryStatusFailed means that given repository is correct
	RepositoryStatusReady RepositoryStatus = "Ready"
)

type RepositoryStatusReason

type RepositoryStatusReason string
const (
	RepositoryURLFetchingError   RepositoryStatusReason = "FetchingIndexError"
	RepositoryURLTemplatingError RepositoryStatusReason = "TemplatingURLError"
)

func (RepositoryStatusReason) Message

func (r RepositoryStatusReason) Message() string

func (RepositoryStatusReason) String

func (r RepositoryStatusReason) String() string

type SpecRepository

type SpecRepository struct {
	URL       string              `json:"url"`
	SecretRef *v1.SecretReference `json:"secretRef,omitempty"`
}

SpecRepository define the addon repository

func (*SpecRepository) DeepCopy

func (in *SpecRepository) DeepCopy() *SpecRepository

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

func (*SpecRepository) DeepCopyInto

func (in *SpecRepository) DeepCopyInto(out *SpecRepository)

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

type StatusRepository

type StatusRepository struct {
	URL     string                 `json:"url"`
	Status  RepositoryStatus       `json:"status,omitempty"`
	Reason  RepositoryStatusReason `json:"reason,omitempty"`
	Message string                 `json:"message,omitempty"`
	Addons  []Addon                `json:"addons"`
}

StatusRepository define the addon repository

func (*StatusRepository) DeepCopy

func (in *StatusRepository) DeepCopy() *StatusRepository

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

func (*StatusRepository) DeepCopyInto

func (in *StatusRepository) DeepCopyInto(out *StatusRepository)

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