v1alpha1

package
v0.0.0-...-2e562c1 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 5 Imported by: 1

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 DownstreamTarget

type DownstreamTarget struct {
	Name string `json:"name,omitempty"`
}

func (*DownstreamTarget) DeepCopy

func (in *DownstreamTarget) DeepCopy() *DownstreamTarget

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

func (*DownstreamTarget) DeepCopyInto

func (in *DownstreamTarget) DeepCopyInto(out *DownstreamTarget)

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

type InjectionSelector

type InjectionSelector struct {
	Group   *string `json:"group,omitempty"`
	Version *string `json:"version,omitempty"`
	Kind    *string `json:"kind,omitempty"`
	Name    string  `json:"name"`
}

InjectionSelector specifies how to select in-cluster objects for resolving injection points.

func (*InjectionSelector) DeepCopy

func (in *InjectionSelector) DeepCopy() *InjectionSelector

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

func (*InjectionSelector) DeepCopyInto

func (in *InjectionSelector) DeepCopyInto(out *InjectionSelector)

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

type PackageContext

type PackageContext struct {
	Data       map[string]string `json:"data,omitempty"`
	RemoveKeys []string          `json:"removeKeys,omitempty"`
}

PackageContext defines the data to be added or removed from the kptfile.kpt.dev ConfigMap during reconciliation.

func (*PackageContext) DeepCopy

func (in *PackageContext) DeepCopy() *PackageContext

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

func (*PackageContext) DeepCopyInto

func (in *PackageContext) DeepCopyInto(out *PackageContext)

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"`

	Labels      map[string]string `json:"labels,omitempty"`
	Annotations map[string]string `json:"annotations,omitempty"`

	PackageContext *PackageContext     `json:"packageContext,omitempty"`
	Pipeline       *kptfilev1.Pipeline `json:"pipeline,omitempty"`
	Injectors      []InjectionSelector `json:"injectors,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 {
	// Conditions describes the reconciliation state of the object.
	Conditions []metav1.Condition `json:"conditions,omitempty"`

	// DownstreamTargets contains the downstream targets that the PackageVariant
	// either created or adopted.
	DownstreamTargets []DownstreamTarget `json:"downstreamTargets,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