v1alpha1

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2023 License: Apache-2.0 Imports: 4 Imported by: 6

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the config.porch.kpt.dev v1alpha1 API group +kubebuilder:object:generate=true +groupName=config.porch.kpt.dev

Index

Constants

View Source
const (
	AdoptionPolicyAdoptExisting AdoptionPolicy = "adoptExisting"
	AdoptionPolicyAdoptNone     AdoptionPolicy = "adoptNone"

	DeletionPolicyDelete DeletionPolicy = "delete"
	DeletionPolicyOrphan DeletionPolicy = "orphan"

	Finalizer = "config.porch.kpt.dev/packagevariants"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "config.porch.kpt.dev", 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 AdoptionPolicy

type AdoptionPolicy string

type DeletionPolicy

type DeletionPolicy string

type Downstream

type Downstream struct {
	Repo    string `json:"repo,omitempty"`
	Package string `json:"package,omitempty"`
}

func (*Downstream) DeepCopy

func (in *Downstream) DeepCopy() *Downstream

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

func (*Downstream) DeepCopyInto

func (in *Downstream) DeepCopyInto(out *Downstream)

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

type PackageVariant

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

	Spec   PackageVariantSpec   `json:"spec,omitempty"`
	Status PackageVariantStatus `json:"status,omitempty"`
}

PackageVariant represents an upstream and downstream porch package pair. The upstream package should already exist. The PackageVariant controller is responsible for creating the downstream package revisions based on the spec.

func (*PackageVariant) DeepCopy

func (in *PackageVariant) DeepCopy() *PackageVariant

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

func (*PackageVariant) DeepCopyInto

func (in *PackageVariant) DeepCopyInto(out *PackageVariant)

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

func (*PackageVariant) DeepCopyObject

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

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

func (*PackageVariant) GetSpec

func (o *PackageVariant) GetSpec() *PackageVariantSpec

type PackageVariantList

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

PackageVariantList contains a list of PackageVariant

func (*PackageVariantList) DeepCopy

func (in *PackageVariantList) DeepCopy() *PackageVariantList

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

func (*PackageVariantList) DeepCopyInto

func (in *PackageVariantList) DeepCopyInto(out *PackageVariantList)

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

func (*PackageVariantList) DeepCopyObject

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

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

type PackageVariantSpec

type PackageVariantSpec struct {
	Upstream   *Upstream   `json:"upstream,omitempty"`
	Downstream *Downstream `json:"downstream,omitempty"`

	AdoptionPolicy AdoptionPolicy `json:"adoptionPolicy,omitempty"`
	DeletionPolicy DeletionPolicy `json:"deletionPolicy,omitempty"`
}

PackageVariantSpec defines the desired state of PackageVariant

func (*PackageVariantSpec) DeepCopy

func (in *PackageVariantSpec) DeepCopy() *PackageVariantSpec

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

func (*PackageVariantSpec) DeepCopyInto

func (in *PackageVariantSpec) DeepCopyInto(out *PackageVariantSpec)

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

type PackageVariantStatus

type PackageVariantStatus struct {
	// TODO: Move this to conditions.
	ValidationErrors []string `json:"validationErrors,omitempty"`
}

PackageVariantStatus defines the observed state of PackageVariant

func (*PackageVariantStatus) DeepCopy

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

func (*PackageVariantStatus) DeepCopyInto

func (in *PackageVariantStatus) DeepCopyInto(out *PackageVariantStatus)

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

type Upstream

type Upstream struct {
	Repo     string `json:"repo,omitempty"`
	Package  string `json:"package,omitempty"`
	Revision string `json:"revision,omitempty"`
}

func (*Upstream) DeepCopy

func (in *Upstream) DeepCopy() *Upstream

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

func (*Upstream) DeepCopyInto

func (in *Upstream) DeepCopyInto(out *Upstream)

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