v1alpha1

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2022 License: Apache-2.0 Imports: 22 Imported by: 6

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the packages v1alpha1 API group +kubebuilder:object:generate=true +groupName=packages.eks.amazonaws.com

Index

Constants

View Source
const (
	PackageKind      = "Package"
	PackageNamespace = "eksa-packages"
)
View Source
const (
	PackageBundleKind           = "PackageBundle"
	PackageBundleControllerName = "eksa-packages-bundle-controller"
	Latest                      = "latest"
)
View Source
const PackageBundleControllerKind = "PackageBundleController"
View Source
const PackageControllerKind = "PackageController"
View Source
const (
	PublicKeyEnvVar = "EKSA_PUBLIC_KEY"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "packages.eks.amazonaws.com", 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

func InitActiveBundleValidator

func InitActiveBundleValidator(mgr ctrl.Manager) error

Types

type BundleControllerStateEnum

type BundleControllerStateEnum string

+kubebuilder:validation:Enum=ignored;active;disconnected

const (
	BundleControllerStateIgnored      BundleControllerStateEnum = "ignored"
	BundleControllerStateActive       BundleControllerStateEnum = "active"
	BundleControllerStateDisconnected BundleControllerStateEnum = "disconnected"
)

type BundlePackage

type BundlePackage struct {
	// +kubebuilder:validation:Required
	// Name of the package
	Name string `json:"name,omitempty"`

	// +kubebuilder:validation:Required
	// Source location for the package (probably a helm chart).
	Source BundlePackageSource `json:"source"`
}

BundlePackage specifies a package within a bundle.

func (*BundlePackage) DeepCopy

func (in *BundlePackage) DeepCopy() *BundlePackage

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

func (*BundlePackage) DeepCopyInto

func (in *BundlePackage) DeepCopyInto(out *BundlePackage)

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

type BundlePackageSource

type BundlePackageSource struct {
	// +kubebuilder:validation:Required
	// Registry in which the package is found.
	Registry string `json:"registry"`

	// +kubebuilder:validation:Required
	// Repository within the Registry where the package is found.
	Repository string `json:"repository"`

	// +kubebuilder:validation:MinItems=1
	// Versions of the package supported by this bundle.
	Versions []SourceVersion `json:"versions"`
}

BundlePackageSource identifies the location of a package.

func (*BundlePackageSource) DeepCopy

func (in *BundlePackageSource) DeepCopy() *BundlePackageSource

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

func (*BundlePackageSource) DeepCopyInto

func (in *BundlePackageSource) DeepCopyInto(out *BundlePackageSource)

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

func (BundlePackageSource) PackageMatches added in v0.1.11

func (s BundlePackageSource) PackageMatches(other BundlePackageSource) bool

PackageMatches returns true if the given source locations match one another.

type Package

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

	Spec   PackageSpec   `json:"spec,omitempty"`
	Status PackageStatus `json:"status,omitempty"`
}

+kubebuilder:object:root=true +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Package",type=string,JSONPath=`.spec.packageName` +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:printcolumn:name="State",type=string,JSONPath=`.status.state` +kubebuilder:printcolumn:name="CurrentVersion",type=string,JSONPath=`.status.currentVersion` +kubebuilder:printcolumn:name="TargetVersion",type=string,JSONPath=`.status.targetVersion` +kubebuilder:printcolumn:name="Detail",type=string,JSONPath=`.status.detail` Package is the Schema for the package API

func (*Package) DeepCopy

func (in *Package) DeepCopy() *Package

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

func (*Package) DeepCopyInto

func (in *Package) DeepCopyInto(out *Package)

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

func (*Package) DeepCopyObject

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

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

func (*Package) ExpectedKind

func (config *Package) ExpectedKind() string

func (*Package) GetValues

func (config *Package) GetValues() (values map[string]interface{}, err error)

GetValues convert spec values into generic values map

func (*Package) MetaKind

func (config *Package) MetaKind() string

type PackageAvailableUpgrade

type PackageAvailableUpgrade struct {
	// +kubebuilder:validation:Required
	// Version is a human-friendly version name for the package upgrade.
	Version string `json:"version"`

	// +kubebuilder:validation:Required
	// Tag is a specific version number or sha256 checksum for the package
	// upgrade.
	Tag string `json:"tag"`
}

PackageAvailableUpgrade details the package's available upgrades' versions.

func (*PackageAvailableUpgrade) DeepCopy

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

func (*PackageAvailableUpgrade) DeepCopyInto

func (in *PackageAvailableUpgrade) DeepCopyInto(out *PackageAvailableUpgrade)

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

type PackageBundle

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

	Spec   PackageBundleSpec   `json:"spec,omitempty"`
	Status PackageBundleStatus `json:"status,omitempty"`
}

+kubebuilder:object:root=true +kubebuilder:subresource:status +kubebuilder:printcolumn:name="State",type=string,JSONPath=`.status.state` PackageBundle is the Schema for the packagebundles API

func MustPackageBundleFromFilename

func MustPackageBundleFromFilename(t *testing.T, filename string) (bundle *PackageBundle)

MustPackageBundleFromFilename is a helper to load a bundle or fail trying.

It is intended primarily for use in automated tests or utilities.

func (*PackageBundle) DeepCopy

func (in *PackageBundle) DeepCopy() *PackageBundle

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

func (*PackageBundle) DeepCopyInto

func (in *PackageBundle) DeepCopyInto(out *PackageBundle)

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

func (*PackageBundle) DeepCopyObject

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

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

func (*PackageBundle) ExpectedKind

func (config *PackageBundle) ExpectedKind() string

func (*PackageBundle) FindSource

func (config *PackageBundle) FindSource(pkgName, pkgVersion string) (retSource PackageOCISource, err error)

func (*PackageBundle) KubeVersionMatches added in v0.1.11

func (config *PackageBundle) KubeVersionMatches(targetKubeVersion string) bool

KubeVersionMatches returns true if the target Kubernetes matches the current bundle's Kubernetes version.

Note the method only compares the major and minor versions of Kubernetes, and ignore the patch numbers.

func (*PackageBundle) LessThan added in v0.1.7

func (config *PackageBundle) LessThan(rhsBundle *PackageBundle) bool

LessThan evaluates if the left calling bundle is less than the supplied parameter

If the left hand side bundle is older than the right hand side, this method returns true. If it is newer (greater) it returns false. If they are the same it returns false.

func (*PackageBundle) MetaKind

func (config *PackageBundle) MetaKind() string

func (*PackageBundle) SetupWebhookWithManager

func (r *PackageBundle) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*PackageBundle) ValidateCreate

func (r *PackageBundle) ValidateCreate() error

func (*PackageBundle) ValidateDelete

func (r *PackageBundle) ValidateDelete() error

func (*PackageBundle) ValidateUpdate

func (r *PackageBundle) ValidateUpdate(old runtime.Object) error

type PackageBundleController

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

	Spec   PackageBundleControllerSpec   `json:"spec,omitempty"`
	Status PackageBundleControllerStatus `json:"status,omitempty"`
}

+kubebuilder:object:root=true +kubebuilder:subresource:status +kubebuilder:printcolumn:name="State",type=string,JSONPath=`.status.state` +kubebuilder:printcolumn:name="Detail",type=string,JSONPath=`.status.detail` PackageBundleController is the Schema for the packagebundlecontrollers API

func (*PackageBundleController) DeepCopy

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

func (*PackageBundleController) DeepCopyInto

func (in *PackageBundleController) DeepCopyInto(out *PackageBundleController)

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

func (*PackageBundleController) DeepCopyObject

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

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

func (*PackageBundleController) ExpectedKind

func (config *PackageBundleController) ExpectedKind() string

func (*PackageBundleController) IsIgnored added in v0.1.7

func (config *PackageBundleController) IsIgnored() bool

func (*PackageBundleController) MetaKind

func (config *PackageBundleController) MetaKind() string

type PackageBundleControllerList

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

+kubebuilder:object:root=true PackageBundleControllerList contains a list of PackageBundleController

func (*PackageBundleControllerList) DeepCopy

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

func (*PackageBundleControllerList) DeepCopyInto

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

func (*PackageBundleControllerList) DeepCopyObject

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

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

type PackageBundleControllerSource

type PackageBundleControllerSource struct {
	// +kubebuilder:validation:Required
	// Registry is the OCR address hosting the bundle.
	Registry string `json:"registry"`

	// +kubebuilder:validation:Required
	// Repository is the location of the bundle within the OCR registry.
	Repository string `json:"repository"`
}

func (*PackageBundleControllerSource) BaseRef

func (s *PackageBundleControllerSource) BaseRef() (baseRef string)

func (*PackageBundleControllerSource) DeepCopy

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

func (*PackageBundleControllerSource) DeepCopyInto

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

type PackageBundleControllerSpec

type PackageBundleControllerSpec struct {
	// LogLevel controls the verbosity of logging in the controller.
	// +optional
	LogLevel *int32 `json:"logLevel,omitempty"`

	// +kubebuilder:default:="1d"
	// UpgradeCheckInterval is the time between upgrade checks.
	//
	// The format is that of time's ParseDuration.
	// +optional
	UpgradeCheckInterval metav1.Duration `json:"upgradeCheckInterval,omitempty"`

	// +kubebuilder:default:="1h"
	// UpgradeCheckShortInterval if there is a problem this is the time between upgrade checks.
	//
	// The format is that of time's ParseDuration.
	// +optional
	UpgradeCheckShortInterval metav1.Duration `json:"upgradeCheckShortInterval,omitempty"`

	// ActiveBundle is name of the bundle from which packages should be sourced.
	// +optional
	ActiveBundle string `json:"activeBundle"`

	// +kubebuilder:validation:Required
	// Source of the bundle.
	Source PackageBundleControllerSource `json:"source"`
}

PackageBundleControllerSpec defines the desired state of PackageBundleController

func (*PackageBundleControllerSpec) DeepCopy

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

func (*PackageBundleControllerSpec) DeepCopyInto

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

type PackageBundleControllerStatus

type PackageBundleControllerStatus struct {
	// State of the bundle controller
	State BundleControllerStateEnum `json:"state,omitempty"`

	// Detail of the state
	Detail string `json:"detail,omitempty"`
}

PackageBundleControllerStatus defines the observed state of PackageBundleController

func (*PackageBundleControllerStatus) DeepCopy

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

func (*PackageBundleControllerStatus) DeepCopyInto

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

type PackageBundleList

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

+kubebuilder:object:root=true PackageBundleList contains a list of PackageBundle

func (*PackageBundleList) DeepCopy

func (in *PackageBundleList) DeepCopy() *PackageBundleList

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

func (*PackageBundleList) DeepCopyInto

func (in *PackageBundleList) DeepCopyInto(out *PackageBundleList)

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

func (*PackageBundleList) DeepCopyObject

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

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

type PackageBundleSpec

type PackageBundleSpec struct {
	// +kubebuilder:validation:Required
	// Packages supported by this bundle.
	Packages []BundlePackage `json:"packages"`
}

PackageBundleSpec defines the desired state of PackageBundle

func (*PackageBundleSpec) DeepCopy

func (in *PackageBundleSpec) DeepCopy() *PackageBundleSpec

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

func (*PackageBundleSpec) DeepCopyInto

func (in *PackageBundleSpec) DeepCopyInto(out *PackageBundleSpec)

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

type PackageBundleStateEnum

type PackageBundleStateEnum string

+kubebuilder:validation:Enum={"inactive","active","active (upgrade available)","ignored"}

const (
	PackageBundleStateInactive         PackageBundleStateEnum = "inactive"
	PackageBundleStateActive           PackageBundleStateEnum = "active"
	PackageBundleStateUpgradeAvailable PackageBundleStateEnum = "active (upgrade available)"
	PackageBundleStateIgnored          PackageBundleStateEnum = "ignored"
)

type PackageBundleStatus

type PackageBundleStatus struct {
	Spec  PackageBundleSpec      `json:"spec,omitempty"`
	State PackageBundleStateEnum `json:"state"`
}

PackageBundleStatus defines the observed state of PackageBundle

func (*PackageBundleStatus) DeepCopy

func (in *PackageBundleStatus) DeepCopy() *PackageBundleStatus

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

func (*PackageBundleStatus) DeepCopyInto

func (in *PackageBundleStatus) DeepCopyInto(out *PackageBundleStatus)

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

type PackageController

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

	Spec   PackageControllerSpec   `json:"spec,omitempty"`
	Status PackageControllerStatus `json:"status,omitempty"`
}

PackageController is the Schema for the packagecontrollers API

func (*PackageController) DeepCopy

func (in *PackageController) DeepCopy() *PackageController

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

func (*PackageController) DeepCopyInto

func (in *PackageController) DeepCopyInto(out *PackageController)

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

func (*PackageController) DeepCopyObject

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

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

func (*PackageController) ExpectedKind

func (config *PackageController) ExpectedKind() string

func (*PackageController) MetaKind

func (config *PackageController) MetaKind() string

type PackageControllerList

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

PackageControllerList contains a list of PackageController

func (*PackageControllerList) DeepCopy

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

func (*PackageControllerList) DeepCopyInto

func (in *PackageControllerList) DeepCopyInto(out *PackageControllerList)

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

func (*PackageControllerList) DeepCopyObject

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

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

type PackageControllerSpec

type PackageControllerSpec struct {

	// Optional log level for packages controller
	// +optional
	LogLevel *int32 `json:"logLevel,omitempty"`

	// UpgradeCheckInterval is the time between upgrade checks.
	//
	// The format is that of time's ParseDuration.
	UpgradeCheckInterval metav1.Duration `json:"upgradeCheckInterval,omitempty"`
}

PackageControllerSpec defines the desired state of PackageController

func (*PackageControllerSpec) DeepCopy

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

func (*PackageControllerSpec) DeepCopyInto

func (in *PackageControllerSpec) DeepCopyInto(out *PackageControllerSpec)

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

type PackageControllerStatus

type PackageControllerStatus struct {
}

PackageControllerStatus defines the observed state of PackageController

func (*PackageControllerStatus) DeepCopy

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

func (*PackageControllerStatus) DeepCopyInto

func (in *PackageControllerStatus) DeepCopyInto(out *PackageControllerStatus)

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

type PackageList

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

+kubebuilder:object:root=true PackageList contains a list of Package

func (*PackageList) DeepCopy

func (in *PackageList) DeepCopy() *PackageList

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

func (*PackageList) DeepCopyInto

func (in *PackageList) DeepCopyInto(out *PackageList)

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

func (*PackageList) DeepCopyObject

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

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

type PackageOCISource

type PackageOCISource struct {
	Version    string `json:"version"`
	Registry   string `json:"registry"`
	Repository string `json:"repository"`
	Digest     string `json:"digest"`
}

func (PackageOCISource) AsRepoURI

func (s PackageOCISource) AsRepoURI() string

func (*PackageOCISource) DeepCopy

func (in *PackageOCISource) DeepCopy() *PackageOCISource

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

func (*PackageOCISource) DeepCopyInto

func (in *PackageOCISource) DeepCopyInto(out *PackageOCISource)

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

type PackageSpec

type PackageSpec struct {
	// PackageName is the name of the package as specified in the bundle.
	PackageName string `json:"packageName"`

	// PackageVersion is a human-friendly version name or sha256 checksum for the
	// package, as specified in the bundle.
	PackageVersion string `json:"packageVersion,omitempty"`

	// Config for the package
	Config string `json:"config,omitempty"`

	// TargetNamespace where package resources will be deployed.
	TargetNamespace string `json:"targetNamespace,omitempty"`
}

PackageSpec defines the desired state of an package.

func (*PackageSpec) DeepCopy

func (in *PackageSpec) DeepCopy() *PackageSpec

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

func (*PackageSpec) DeepCopyInto

func (in *PackageSpec) DeepCopyInto(out *PackageSpec)

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

type PackageStatus

type PackageStatus struct {
	// +kubebuilder:validation:Required
	// Source associated with the installation
	Source PackageOCISource `json:"source"`

	// +kubebuilder:validation:Required
	// Version currently installed
	CurrentVersion string `json:"currentVersion"`

	// +kubebuilder:validation:Required
	// Version to be installed
	TargetVersion string `json:"targetVersion,omitempty"`

	// State of the installation
	State StateEnum `json:"state,omitempty"`

	// Detail of the state
	Detail string `json:"detail,omitempty"`

	// UpgradesAvailable indicates upgraded versions in the bundle.
	UpgradesAvailable []PackageAvailableUpgrade `json:"upgradesAvailable,omitempty"`
}

PackageStatus defines the observed state of Package

func (*PackageStatus) DeepCopy

func (in *PackageStatus) DeepCopy() *PackageStatus

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

func (*PackageStatus) DeepCopyInto

func (in *PackageStatus) DeepCopyInto(out *PackageStatus)

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

type SourceVersion

type SourceVersion struct {
	// +kubebuilder:validation:Required
	// Name is a human-friendly description of the version, e.g. "v1.0".
	Name string `json:"name"`

	// +kubebuilder:validation:Required
	// Digest is a checksum value identifying the version of the package and its contents.
	Digest string `json:"digest"`

	// Images is a list of images used by this version of the package
	Images []VersionImages `json:"images,omitempty"`

	// Configurations is a list of configurations used by this version of the package. The configurations are used for configuration validation and to generate sample configurations for users.
	Configurations []VersionConfiguration `json:"configurations,omitempty"`
}

SourceVersion describes a version of a package within a repository.

func (*SourceVersion) DeepCopy

func (in *SourceVersion) DeepCopy() *SourceVersion

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

func (*SourceVersion) DeepCopyInto

func (in *SourceVersion) DeepCopyInto(out *SourceVersion)

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

func (SourceVersion) Key

func (v SourceVersion) Key() string

type StateEnum

type StateEnum string

+kubebuilder:validation:Enum=initializing;installing;installed;updating;uninstalling;unknown

const (
	StateInitializing StateEnum = "initializing"
	StateInstalling   StateEnum = "installing"
	StateInstalled    StateEnum = "installed"
	StateUpdating     StateEnum = "updating"
	StateUninstalling StateEnum = "uninstalling"
	StateUnknown      StateEnum = "unknown"
)

type VersionConfiguration added in v0.1.3

type VersionConfiguration struct {
	// +kubebuilder:validation:Required
	// Name is the name of the configuration
	Name string `json:"name"`

	// Required configuration parameter the user must specify
	Required bool `json:"required"`

	// Default is the name of the configuration
	Default string `json:"default"`
}

VersionConfiguration is a configuration used by a version of a package.

func (*VersionConfiguration) DeepCopy added in v0.1.3

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

func (*VersionConfiguration) DeepCopyInto added in v0.1.3

func (in *VersionConfiguration) DeepCopyInto(out *VersionConfiguration)

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

type VersionImages added in v0.1.3

type VersionImages struct {
	// +kubebuilder:validation:Required
	// Repository is source in the registry for the image
	Repository string `json:"repository"`

	// +kubebuilder:validation:Required
	// Digest is a checksum value identifying the version of the package and its contents.
	Digest string `json:"digest"`
}

VersionImages is an image used by a version of a package.

func (*VersionImages) DeepCopy added in v0.1.3

func (in *VersionImages) DeepCopy() *VersionImages

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

func (*VersionImages) DeepCopyInto added in v0.1.3

func (in *VersionImages) DeepCopyInto(out *VersionImages)

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