v1alpha1

package
v0.0.0-...-5cbd3cb Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

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

This section is empty.

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 ObjectSelector

type ObjectSelector struct {
	Selectors []Selector `json:"selectors,omitempty"`

	RepoName *ValueOrFromField `json:"repoName,omitempty"`
}

func (*ObjectSelector) DeepCopy

func (in *ObjectSelector) DeepCopy() *ObjectSelector

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

func (*ObjectSelector) DeepCopyInto

func (in *ObjectSelector) DeepCopyInto(out *ObjectSelector)

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

type Package

type Package struct {
	Repo string `json:"repo,omitempty"`
	Name string `json:"name,omitempty"`
}

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.

type PackageName

type PackageName struct {
	Name *ValueOrFromField `json:"baseName,omitempty"`

	NameSuffix *ValueOrFromField `json:"nameSuffix,omitempty"`

	NamePrefix *ValueOrFromField `json:"namePrefix,omitempty"`
}

func (*PackageName) DeepCopy

func (in *PackageName) DeepCopy() *PackageName

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

func (*PackageName) DeepCopyInto

func (in *PackageName) DeepCopyInto(out *PackageName)

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

type PackageVariantSet

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

	Spec   PackageVariantSetSpec   `json:"spec,omitempty"`
	Status PackageVariantSetStatus `json:"status,omitempty"`
}

+kubebuilder:object:root=true +kubebuilder:subresource:status +kubebuilder:unservedversion

PackageVariantSet represents an upstream package revision and a way to target specific downstream repositories where a variant of the upstream package should be created.

func (*PackageVariantSet) DeepCopy

func (in *PackageVariantSet) DeepCopy() *PackageVariantSet

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

func (*PackageVariantSet) DeepCopyInto

func (in *PackageVariantSet) DeepCopyInto(out *PackageVariantSet)

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

func (*PackageVariantSet) DeepCopyObject

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

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

func (*PackageVariantSet) GetSpec

type PackageVariantSetList

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

PackageVariantSetList contains a list of PackageVariantSet

func (*PackageVariantSetList) DeepCopy

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

func (*PackageVariantSetList) DeepCopyInto

func (in *PackageVariantSetList) DeepCopyInto(out *PackageVariantSetList)

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

func (*PackageVariantSetList) DeepCopyObject

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

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

type PackageVariantSetSpec

type PackageVariantSetSpec struct {
	Upstream *Upstream `json:"upstream,omitempty"`
	Targets  []Target  `json:"targets,omitempty"`

	AdoptionPolicy pkgvarapi.AdoptionPolicy `json:"adoptionPolicy,omitempty"`
	DeletionPolicy pkgvarapi.DeletionPolicy `json:"deletionPolicy,omitempty"`

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

PackageVariantSetSpec defines the desired state of PackageVariantSet

func (*PackageVariantSetSpec) DeepCopy

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

func (*PackageVariantSetSpec) DeepCopyInto

func (in *PackageVariantSetSpec) DeepCopyInto(out *PackageVariantSetSpec)

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

type PackageVariantSetStatus

type PackageVariantSetStatus struct {
	// Conditions describes the reconciliation state of the object.
	Conditions []metav1.Condition `json:"conditions,omitempty"`
}

PackageVariantSetStatus defines the observed state of PackageVariantSet

func (*PackageVariantSetStatus) DeepCopy

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

func (*PackageVariantSetStatus) DeepCopyInto

func (in *PackageVariantSetStatus) DeepCopyInto(out *PackageVariantSetStatus)

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

type Selector

type Selector struct {
	// APIVersion of the target resources
	APIVersion string `yaml:"apiVersion,omitempty" json:"apiVersion,omitempty"`
	// Kind of the target resources
	Kind string `yaml:"kind,omitempty" json:"kind,omitempty"`
	// Name of the target resources
	Name string `yaml:"name,omitempty" json:"name,omitempty"`
	// Namespace of the target resources
	Namespace string `yaml:"namespace,omitempty" json:"namespace,omitempty"`
	// Labels on the target resources
	Labels *metav1.LabelSelector `yaml:"labelSelector,omitempty" json:"labelSelector,omitempty"`
	// Annotations on the target resources
	Annotations map[string]string `yaml:"annotations,omitempty" json:"annotations,omitempty"`
}

func (*Selector) DeepCopy

func (in *Selector) DeepCopy() *Selector

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

func (*Selector) DeepCopyInto

func (in *Selector) DeepCopyInto(out *Selector)

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

func (*Selector) ToKptfileSelector

func (s *Selector) ToKptfileSelector() kptfilev1.Selector

type Target

type Target struct {
	// option 1: an explicit repo/package name pair
	Package *Package `json:"package,omitempty"`

	// option 2: a label selector against a set of repositories
	Repositories *metav1.LabelSelector `json:"repositories,omitempty"`

	// option 3: a selector against a set of arbitrary objects
	Objects *ObjectSelector `json:"objects,omitempty"`

	// For options 2 and 3, PackageName specifies how to create the name of the
	// package variant
	PackageName *PackageName `json:"packageName,omitempty"`
}

func (*Target) DeepCopy

func (in *Target) DeepCopy() *Target

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

func (*Target) DeepCopyInto

func (in *Target) DeepCopyInto(out *Target)

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

type Upstream

type Upstream struct {
	Package *Package `json:"package,omitempty"`

	Revision string `json:"revision,omitempty"`

	Tag string `json:"ref,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.

type ValueOrFromField

type ValueOrFromField struct {
	Value     string `json:"value,omitempty"`
	FromField string `json:"fromField,omitempty"`
}

func (*ValueOrFromField) DeepCopy

func (in *ValueOrFromField) DeepCopy() *ValueOrFromField

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

func (*ValueOrFromField) DeepCopyInto

func (in *ValueOrFromField) DeepCopyInto(out *ValueOrFromField)

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