Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the core v1alpha1 API group +kubebuilder:object:generate=true +groupName=core.rukpak.io
Index ¶
- Constants
- Variables
- type Bundle
- func (in *Bundle) DeepCopy() *Bundle
- func (in *Bundle) DeepCopyInto(out *Bundle)
- func (in *Bundle) DeepCopyObject() runtime.Object
- func (r *Bundle) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *Bundle) ValidateCreate() error
- func (r *Bundle) ValidateDelete() error
- func (r *Bundle) ValidateUpdate(old runtime.Object) error
- type BundleConditionType
- type BundleInfo
- type BundleInstance
- type BundleInstanceList
- type BundleInstanceSpec
- type BundleInstanceStatus
- type BundleList
- type BundleObject
- type BundleSource
- type BundleSpec
- type BundleStatus
- type GitRef
- type GitSource
- type ImageSource
- type ProvisionerID
Constants ¶
const ( SourceTypeImage = "image" SourceTypeGit = "git" TypeUnpacked = "Unpacked" ReasonUnpackPending = "UnpackPending" ReasonUnpacking = "Unpacking" ReasonUnpackSuccessful = "UnpackSuccessful" ReasonUnpackFailed = "UnpackFailed" PhasePending = "Pending" PhaseUnpacking = "Unpacking" PhaseFailing = "Failing" PhaseUnpacked = "Unpacked" )
const ( TypeHasValidBundle = "HasValidBundle" TypeInvalidBundleContent = "InvalidBundleContent" TypeInstalled = "Installed" ReasonBundleLookupFailed = "BundleLookupFailed" ReasonBundleLoadFailed = "BundleLoadFailed" ReasonReadingContentFailed = "ReadingContentFailed" ReasonErrorGettingClient = "ErrorGettingClient" ReasonErrorGettingReleaseState = "ErrorGettingReleaseState" ReasonInstallFailed = "InstallFailed" ReasonUpgradeFailed = "UpgradeFailed" ReasonReconcileFailed = "ReconcileFailed" ReasonCreateDynamicWatchFailed = "CreateDynamicWatchFailed" ReasonInstallationSucceeded = "InstallationSucceeded" )
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "core.rukpak.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 Bundle ¶
type Bundle struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec BundleSpec `json:"spec"`
Status BundleStatus `json:"status,omitempty"`
}
Bundle is the Schema for the bundles API
func (*Bundle) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Bundle.
func (*Bundle) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Bundle) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Bundle) SetupWebhookWithManager ¶ added in v0.2.0
func (*Bundle) ValidateCreate ¶ added in v0.2.0
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*Bundle) ValidateDelete ¶ added in v0.2.0
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
type BundleConditionType ¶
type BundleConditionType string
type BundleInfo ¶
type BundleInfo struct {
Package string `json:"package"`
Name string `json:"name"`
Version string `json:"version"`
Objects []BundleObject `json:"objects,omitempty"`
}
func (*BundleInfo) DeepCopy ¶
func (in *BundleInfo) DeepCopy() *BundleInfo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BundleInfo.
func (*BundleInfo) DeepCopyInto ¶
func (in *BundleInfo) DeepCopyInto(out *BundleInfo)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BundleInstance ¶
type BundleInstance struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec BundleInstanceSpec `json:"spec"`
Status BundleInstanceStatus `json:"status,omitempty"`
}
BundleInstance is the Schema for the bundleinstances API
func (*BundleInstance) DeepCopy ¶
func (in *BundleInstance) DeepCopy() *BundleInstance
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BundleInstance.
func (*BundleInstance) DeepCopyInto ¶
func (in *BundleInstance) DeepCopyInto(out *BundleInstance)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BundleInstance) DeepCopyObject ¶
func (in *BundleInstance) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type BundleInstanceList ¶
type BundleInstanceList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []BundleInstance `json:"items"`
}
BundleInstanceList contains a list of BundleInstance
func (*BundleInstanceList) DeepCopy ¶
func (in *BundleInstanceList) DeepCopy() *BundleInstanceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BundleInstanceList.
func (*BundleInstanceList) DeepCopyInto ¶
func (in *BundleInstanceList) DeepCopyInto(out *BundleInstanceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BundleInstanceList) DeepCopyObject ¶
func (in *BundleInstanceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type BundleInstanceSpec ¶
type BundleInstanceSpec struct {
// ProvisionerClassName sets the name of the provisioner that should reconcile this BundleInstance.
ProvisionerClassName string `json:"provisionerClassName"`
// BundleName is the name of the bundle that this instance is managing on the cluster.
BundleName string `json:"bundleName"`
}
BundleInstanceSpec defines the desired state of BundleInstance
func (*BundleInstanceSpec) DeepCopy ¶
func (in *BundleInstanceSpec) DeepCopy() *BundleInstanceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BundleInstanceSpec.
func (*BundleInstanceSpec) DeepCopyInto ¶
func (in *BundleInstanceSpec) DeepCopyInto(out *BundleInstanceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BundleInstanceStatus ¶
type BundleInstanceStatus struct {
// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
// Important: Run "make" to regenerate code after modifying this file
Conditions []metav1.Condition `json:"conditions,omitempty"`
InstalledBundleName string `json:"installedBundleName,omitempty"`
}
BundleInstanceStatus defines the observed state of BundleInstance
func (*BundleInstanceStatus) DeepCopy ¶
func (in *BundleInstanceStatus) DeepCopy() *BundleInstanceStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BundleInstanceStatus.
func (*BundleInstanceStatus) DeepCopyInto ¶
func (in *BundleInstanceStatus) DeepCopyInto(out *BundleInstanceStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BundleList ¶
type BundleList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Bundle `json:"items"`
}
BundleList contains a list of Bundle
func (*BundleList) DeepCopy ¶
func (in *BundleList) DeepCopy() *BundleList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BundleList.
func (*BundleList) DeepCopyInto ¶
func (in *BundleList) DeepCopyInto(out *BundleList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BundleList) DeepCopyObject ¶
func (in *BundleList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type BundleObject ¶
type BundleObject struct {
Group string `json:"group"`
Version string `json:"version"`
Kind string `json:"kind"`
Name string `json:"name"`
Namespace string `json:"namespace"`
}
func (*BundleObject) DeepCopy ¶
func (in *BundleObject) DeepCopy() *BundleObject
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BundleObject.
func (*BundleObject) DeepCopyInto ¶
func (in *BundleObject) DeepCopyInto(out *BundleObject)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BundleSource ¶ added in v0.2.0
type BundleSource struct {
// Type defines the kind of Bundle content being sourced.
Type string `json:"type"`
// Image is the bundle image that backs the content of this bundle.
Image *ImageSource `json:"image,omitempty"`
// Git is the git repository that backs the content of this Bundle.
Git *GitSource `json:"git,omitempty"`
}
func (*BundleSource) DeepCopy ¶ added in v0.2.0
func (in *BundleSource) DeepCopy() *BundleSource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BundleSource.
func (*BundleSource) DeepCopyInto ¶ added in v0.2.0
func (in *BundleSource) DeepCopyInto(out *BundleSource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BundleSpec ¶
type BundleSpec struct {
// ProvisionerClassName sets the name of the provisioner that should reconcile this BundleInstance.
ProvisionerClassName string `json:"provisionerClassName"`
// Source defines the configuration for the underlying Bundle content.
Source BundleSource `json:"source"`
}
BundleSpec defines the desired state of Bundle
func (*BundleSpec) DeepCopy ¶
func (in *BundleSpec) DeepCopy() *BundleSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BundleSpec.
func (*BundleSpec) DeepCopyInto ¶
func (in *BundleSpec) DeepCopyInto(out *BundleSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BundleStatus ¶
type BundleStatus struct {
Info *BundleInfo `json:"info,omitempty"`
Phase string `json:"phase,omitempty"`
Digest string `json:"digest,omitempty"`
ObservedGeneration int64 `json:"observedGeneration,omitempty"`
Conditions []metav1.Condition `json:"conditions,omitempty"`
}
BundleStatus defines the observed state of Bundle
func (*BundleStatus) DeepCopy ¶
func (in *BundleStatus) DeepCopy() *BundleStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BundleStatus.
func (*BundleStatus) DeepCopyInto ¶
func (in *BundleStatus) DeepCopyInto(out *BundleStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitRef ¶ added in v0.2.0
type GitRef struct {
// Branch refers to the branch to checkout from the repository.
// The Branch should contain the bundle manifests in the specified directory.
Branch string `json:"branch,omitempty"`
// Tag refers to the tag to checkout from the repository.
// The Tag should contain the bundle manifests in the specified directory.
Tag string `json:"tag,omitempty"`
// Commit refers to the commit to checkout from the repository.
// The Commit should contain the bundle manifests in the specified directory.
Commit string `json:"commit,omitempty"`
}
func (*GitRef) DeepCopy ¶ added in v0.2.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitRef.
func (*GitRef) DeepCopyInto ¶ added in v0.2.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitSource ¶ added in v0.2.0
type GitSource struct {
// Repository is a URL link to the git repository containing the bundle.
// Repository is required and the URL should be parsable by a standard git tool.
Repository string `json:"repository"`
// Directory refers to the location of the bundle within the git repository.
// Directory is optional and if not set defaults to ./manifests.
Directory string `json:"directory,omitempty"`
// Ref configures the git source to clone a specific branch, tag, or commit
// from the specified repo. Ref is required, and exactly one field within Ref
// is required. Setting more than one field or zero fields will result in an
// error.
Ref GitRef `json:"ref"`
}
func (*GitSource) DeepCopy ¶ added in v0.2.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitSource.
func (*GitSource) DeepCopyInto ¶ added in v0.2.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ImageSource ¶ added in v0.2.0
type ImageSource struct {
// Ref contains the reference to a container image containing Bundle contents.
Ref string `json:"ref"`
}
func (*ImageSource) DeepCopy ¶ added in v0.2.0
func (in *ImageSource) DeepCopy() *ImageSource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageSource.
func (*ImageSource) DeepCopyInto ¶ added in v0.2.0
func (in *ImageSource) DeepCopyInto(out *ImageSource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProvisionerID ¶
type ProvisionerID string