v1alpha1

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

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

Index

Constants

View Source
const (
	SourceTypeImage SourceType = "image"
	SourceTypeGit   SourceType = "git"

	TypeUnpacked = "Unpacked"

	ReasonUnpackPending             = "UnpackPending"
	ReasonUnpacking                 = "Unpacking"
	ReasonUnpackSuccessful          = "UnpackSuccessful"
	ReasonUnpackFailed              = "UnpackFailed"
	ReasonProcessingFinalizerFailed = "ProcessingFinalizerFailed"

	PhasePending   = "Pending"
	PhaseUnpacking = "Unpacking"
	PhaseFailing   = "Failing"
	PhaseUnpacked  = "Unpacked"
)
View Source
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"
	ReasonMaxGeneratedBundlesReached = "MaxGenerationReached"
)

Variables

View Source
var (
	BundleGVK  = SchemeBuilder.GroupVersion.WithKind("Bundle")
	BundleKind = BundleGVK.Kind
)
View Source
var (
	BundleInstanceGVK  = SchemeBuilder.GroupVersion.WithKind("BundleInstance")
	BundleInstanceKind = BundleInstanceGVK.Kind
)
View Source
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 Authorization added in v0.5.0

type Authorization struct {
	// Secret contains reference to the secret that has authorization information for HTTPS protocol and is in the namespace that the provisioner is deployed.
	// The secret is expected to contain `data.username` and `data.password` for the username and password, respectively.
	Secret corev1.LocalObjectReference `json:"secret,omitempty"`
	// InsecureSkipVerify controls whether a client verifies the server's certificate chain and host name. This
	// configuration is used only when cloning git repositories that use the "https" scheme. If InsecureSkipVerify
	// is true, the clone operation will accept any certificate presented by the server and any host name in that
	// certificate. In this mode, TLS is susceptible to machine-in-the-middle attacks unless custom verification is
	// used. This should be used only for testing.
	InsecureSkipVerify bool `json:"insecureSkipVerify,omitempty"`
}

func (*Authorization) DeepCopy added in v0.5.0

func (in *Authorization) DeepCopy() *Authorization

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

func (*Authorization) DeepCopyInto added in v0.5.0

func (in *Authorization) DeepCopyInto(out *Authorization)

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

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

func (in *Bundle) DeepCopy() *Bundle

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

func (*Bundle) DeepCopyInto

func (in *Bundle) DeepCopyInto(out *Bundle)

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

func (*Bundle) DeepCopyObject

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

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

func (*Bundle) ProvisionerClassName added in v0.5.0

func (b *Bundle) ProvisionerClassName() string

func (*Bundle) SetupWebhookWithManager added in v0.2.0

func (b *Bundle) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*Bundle) ValidateCreate added in v0.2.0

func (b *Bundle) ValidateCreate() error

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

func (*Bundle) ValidateDelete added in v0.2.0

func (b *Bundle) ValidateDelete() error

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

func (*Bundle) ValidateUpdate added in v0.2.0

func (b *Bundle) ValidateUpdate(old runtime.Object) error

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

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"`
	// Template describes the generated Bundle that this instance will manage.
	Template *BundleTemplate `json:"template"`
}

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 {
	Conditions          []metav1.Condition `json:"conditions,omitempty"`
	InstalledBundleName string             `json:"installedBundleName,omitempty"`
}

BundleInstanceStatus defines the observed state of BundleInstance

func (*BundleInstanceStatus) DeepCopy

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 BundleSource added in v0.2.0

type BundleSource struct {
	// Type defines the kind of Bundle content being sourced.
	Type SourceType `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 {
	Phase              string             `json:"phase,omitempty"`
	ResolvedSource     *BundleSource      `json:"resolvedSource,omitempty"`
	ObservedGeneration int64              `json:"observedGeneration,omitempty"`
	Conditions         []metav1.Condition `json:"conditions,omitempty"`
	ContentURL         string             `json:"contentURL,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 BundleTemplate added in v0.4.0

type BundleTemplate struct {
	// Standard object's metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`
	// Specification of the desired behavior of the Bundle.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
	Spec BundleSpec `json:"spec"`
}

BundleTemplate defines the desired state of a Bundle resource

func (*BundleTemplate) DeepCopy added in v0.4.0

func (in *BundleTemplate) DeepCopy() *BundleTemplate

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

func (*BundleTemplate) DeepCopyInto added in v0.4.0

func (in *BundleTemplate) DeepCopyInto(out *BundleTemplate)

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

func (in *GitRef) DeepCopy() *GitRef

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

func (*GitRef) DeepCopyInto added in v0.2.0

func (in *GitRef) DeepCopyInto(out *GitRef)

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"`
	// Auth configures the authorization method if necessary.
	Auth Authorization `json:"auth,omitempty"`
}

func (*GitSource) DeepCopy added in v0.2.0

func (in *GitSource) DeepCopy() *GitSource

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

func (*GitSource) DeepCopyInto added in v0.2.0

func (in *GitSource) DeepCopyInto(out *GitSource)

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"`
	// ImagePullSecretName contains the name of the image pull secret in the namespace that the provisioner is deployed.
	ImagePullSecretName string `json:"pullSecret,omitempty"`
}

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

type SourceType added in v0.5.0

type SourceType string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL