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
- Variables
- func Resource(resource string) schema.GroupResource
- type Addon
- type AddonStatus
- type AddonStatusReason
- type AddonsConfiguration
- type AddonsConfigurationList
- type AddonsConfigurationPhase
- type AddonsConfigurationSpec
- type AddonsConfigurationStatus
- type ClusterAddonsConfiguration
- type ClusterAddonsConfigurationList
- type ClusterAddonsConfigurationSpec
- type ClusterAddonsConfigurationStatus
- type CommonAddonsConfigurationSpec
- type CommonAddonsConfigurationStatus
- type RepositoryStatus
- type RepositoryStatusReason
- type SpecRepository
- type StatusRepository
Constants ¶
const FinalizerAddonsConfiguration string = "addons.kyma-project.io"
FinalizerAddonsConfiguration defines the finalizer used by Controller, must be qualified name.
Variables ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Addon.
func (*Addon) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
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 ¶
func (in *AddonsConfigurationList) DeepCopy() *AddonsConfigurationList
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 ¶
func (in *AddonsConfigurationSpec) DeepCopy() *AddonsConfigurationSpec
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 ¶
func (in *AddonsConfigurationStatus) DeepCopy() *AddonsConfigurationStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AddonsConfigurationStatus.
func (*AddonsConfigurationStatus) DeepCopyInto ¶
func (in *AddonsConfigurationStatus) DeepCopyInto(out *AddonsConfigurationStatus)
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 ¶
func (in *ClusterAddonsConfiguration) DeepCopy() *ClusterAddonsConfiguration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterAddonsConfiguration.
func (*ClusterAddonsConfiguration) DeepCopyInto ¶
func (in *ClusterAddonsConfiguration) DeepCopyInto(out *ClusterAddonsConfiguration)
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 ¶
func (in *ClusterAddonsConfigurationList) DeepCopy() *ClusterAddonsConfigurationList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterAddonsConfigurationList.
func (*ClusterAddonsConfigurationList) DeepCopyInto ¶
func (in *ClusterAddonsConfigurationList) DeepCopyInto(out *ClusterAddonsConfigurationList)
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 ¶
func (in *ClusterAddonsConfigurationSpec) DeepCopy() *ClusterAddonsConfigurationSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterAddonsConfigurationSpec.
func (*ClusterAddonsConfigurationSpec) DeepCopyInto ¶
func (in *ClusterAddonsConfigurationSpec) DeepCopyInto(out *ClusterAddonsConfigurationSpec)
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 ¶
func (in *ClusterAddonsConfigurationStatus) DeepCopy() *ClusterAddonsConfigurationStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterAddonsConfigurationStatus.
func (*ClusterAddonsConfigurationStatus) DeepCopyInto ¶
func (in *ClusterAddonsConfigurationStatus) DeepCopyInto(out *ClusterAddonsConfigurationStatus)
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 ¶
func (in *CommonAddonsConfigurationSpec) DeepCopy() *CommonAddonsConfigurationSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CommonAddonsConfigurationSpec.
func (*CommonAddonsConfigurationSpec) DeepCopyInto ¶
func (in *CommonAddonsConfigurationSpec) DeepCopyInto(out *CommonAddonsConfigurationSpec)
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 ¶
func (in *CommonAddonsConfigurationStatus) DeepCopy() *CommonAddonsConfigurationStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CommonAddonsConfigurationStatus.
func (*CommonAddonsConfigurationStatus) DeepCopyInto ¶
func (in *CommonAddonsConfigurationStatus) DeepCopyInto(out *CommonAddonsConfigurationStatus)
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.