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 ¶
const ( AdoptionPolicyAdoptExisting AdoptionPolicy = "adoptExisting" AdoptionPolicyAdoptNone AdoptionPolicy = "adoptNone" DeletionPolicyDelete DeletionPolicy = "delete" DeletionPolicyOrphan DeletionPolicy = "orphan" Finalizer = "config.porch.kpt.dev/packagevariants" )
Variables ¶
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"`
Labels map[string]string `json:"labels,omitempty"`
Annotations map[string]string `json:"annotations,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 ¶
func (in *PackageVariantStatus) DeepCopy() *PackageVariantStatus
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Upstream.
func (*Upstream) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.