v1alpha1

package
v0.11.1 Latest Latest
Warning

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

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

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the mpas v1alpha1 API group +kubebuilder:object:generate=true +groupName=mpas.ocm.software

Index

Constants

View Source
const (
	// ComponentSubscriptionGetFailedReason is used when the subscription object cannot be found.
	ComponentSubscriptionGetFailedReason = "ComponentSubscriptionGetFailed"

	// ComponentSubscriptionNotReadyReason is used when the subscription object cannot be found.
	ComponentSubscriptionNotReadyReason = "ComponentSubscriptionNotReady"

	// SemverParseFailedReason is used when we failed to parse a semver.
	SemverParseFailedReason = "SemverParseFailed"

	// ProjectInNamespaceGetFailedReason is used when the Project in a given namespace has not been found.
	ProjectInNamespaceGetFailedReason = "ProjectInNamespaceGetFailed"

	// ProjectNotReadyReason is used when the Project in a given namespace has not been found.
	ProjectNotReadyReason = "ProjectNotReady"

	// RepositoryInformationMissingReason is used when the Project in a given namespace has not been found.
	RepositoryInformationMissingReason = "RepositoryInformationMissing"

	// ComponentVersionGetFailedReason is used when the subscription object cannot be found.
	ComponentVersionGetFailedReason = "ComponentVersionGetFailed"

	// OCMAuthenticationFailedReason happens when we fail to load authentication for OCM repositories.
	OCMAuthenticationFailedReason = "OCMAuthenticationFailed"

	// ProductDescriptionGetFailedReason happens when we don't find the product description or fail to process it.
	ProductDescriptionGetFailedReason = "ProductDescriptionGetFailed"

	// TemporaryFolderGenerationFailedReason happens when we don't find the product description or fail to process it.
	TemporaryFolderGenerationFailedReason = "TemporaryFolderGenerationFailed"

	// CreateProductPipelineFailedReason is used when we fail to create a product pipeline base on a product description.
	CreateProductPipelineFailedReason = "CreateProductPipelineFailed"

	// ProductPipelineSchedulingFailedReason is used when we one or more pipelines cannot be scheduled because they don't have a target.
	ProductPipelineSchedulingFailedReason = "ProductPipelineSchedulingFailed"

	// CreateSyncFailedReason is used when we fail to create a git-controller.Sync object in the cluster.
	CreateSyncFailedReason = "CreateSyncFailed"

	// CreateValidationFailedReason is used when we fail to create a Validation object in the cluster.
	CreateValidationFailedReason = "CreateValidationFailed"

	// CreateSnapshotFailedReason is used when we fail to create an ocm-controller.Snapshot object in the cluster.
	CreateSnapshotFailedReason = "CreateSnapshotFailed"

	// CommitTemplateEmptyReason is used when a commit template is not set.
	CommitTemplateEmptyReason = "CommitTemplateEmpty"

	// CreateComponentVersionFailedReason is used when we fail to create an ocm-controller.ComponentVersion object in the cluster.
	CreateComponentVersionFailedReason = "CreateComponentVersionFailed"

	// CreateLocalizationFailedReason is used when we fail to create an ocm-controller.Localization object in the cluster.
	CreateLocalizationFailedReason = "CreateLocalizationFailed"

	// CreateConfigurationFailedReason is used when we fail to create an ocm-controller.Configuration object in the cluster.
	CreateConfigurationFailedReason = "CreateConfigurationFailed"

	// CreateOCIRepositoryFailedReason is used when we fail to create an OCIRepository object in the cluster.
	CreateOCIRepositoryFailedReason = "CreateOCIRepositoryFailed"

	// PipelineDeploymentFailedReason is used when we fail to deploy a pipeline.
	PipelineDeploymentFailedReason = "PipelineDeploymentFailed"

	// PipelineTargetSelectionFailedReason is used when we fail to select a target environment for the pipeline.
	PipelineTargetSelectionFailedReason = "PipelineTargetSelectionFailed"

	// ValidationFailedReason is used when the validation of a resource failed.
	ValidationFailedReason = "ValidationFailed"

	// SchemaGenerationFailedReason is used when we couldn't generate the schema.
	SchemaGenerationFailedReason = "SchemaGenerationFailed"

	// GitRepositoryCleanUpFailedReason is used when we couldn't delete the GitRepository.
	GitRepositoryCleanUpFailedReason = "GitRepositoryCleanUpFailed"

	// NamespaceCreateOrUpdateFailedReason indicates that the project namespace could not be reconciled.
	NamespaceCreateOrUpdateFailedReason string = "NamespaceCreateOrUpdateFailed"

	// SecretRetrievalFailedReason indicates that the project namespace could not be retrieved from the namespace.
	SecretRetrievalFailedReason = "SecretRetrievalFailed"

	// ServiceAccountCreateOrUpdateFailedReason indicates that the project service account could not be reconciled.
	ServiceAccountCreateOrUpdateFailedReason string = "ServiceAccountCreateOrUpdateFailed"

	// AccessInvalidReason indicates that the access credentials or target are invalid.
	AccessInvalidReason = "AccessInvalid"

	// CreateConfigMapFailedReason indicates that the config map could not be created.
	CreateConfigMapFailedReason = "CreateConfigMapFailed"
)
View Source
const (
	ProductDeploymentNameKey       = "product-deployment-name"
	ProductDeploymentKind          = "ProductDeployment"
	ProductDeploymentOwnerLabelKey = "mpas.ocm.system/product-deployment"
)
View Source
const (
	// DeployedCondition defines the condition when a Pipeline object has successfully been deployed.
	DeployedCondition = "Deployed"
)
View Source
const (
	// LevelDebug defines the debug level logs.
	LevelDebug = 4
)
View Source
const (
	WritePermissions = 0o777
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects.
	GroupVersion = schema.GroupVersion{Group: "mpas.ocm.software", 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 Configuration

type Configuration struct {
	Rules ResourceReference `json:"rules"`
}

Configuration defines a list of rules to follow and an optional values file.

func (*Configuration) DeepCopy

func (in *Configuration) DeepCopy() *Configuration

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

func (*Configuration) DeepCopyInto

func (in *Configuration) DeepCopyInto(out *Configuration)

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

type DescriptionConfiguration

type DescriptionConfiguration struct {
	// +required
	Rules ResourceReference `json:"rules"`
}

DescriptionConfiguration contains details one parsing configuration items in a project description.

func (*DescriptionConfiguration) DeepCopy

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

func (*DescriptionConfiguration) DeepCopyInto

func (in *DescriptionConfiguration) DeepCopyInto(out *DescriptionConfiguration)

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

type KubernetesAccess

type KubernetesAccess struct {
	SecretRef       *meta.NamespacedObjectReference `yaml:"secretRef"`
	TargetNamespace string                          `yaml:"targetNamespace"`
}

KubernetesAccess defines a type that contains access information for Kubernetes clusters.

func (*KubernetesAccess) DeepCopy

func (in *KubernetesAccess) DeepCopy() *KubernetesAccess

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

func (*KubernetesAccess) DeepCopyInto

func (in *KubernetesAccess) DeepCopyInto(out *KubernetesAccess)

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

type Pipeline

type Pipeline struct {
	Name          string            `json:"name"`
	Resource      ResourceReference `json:"resource"`
	Localization  ResourceReference `json:"localization"`
	Configuration Configuration     `json:"configuration"`
	TargetRole    TargetRole        `json:"targetRole"`
}

Pipeline defines a set of pipeline objects.

func (*Pipeline) DeepCopy

func (in *Pipeline) DeepCopy() *Pipeline

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

func (*Pipeline) DeepCopyInto

func (in *Pipeline) DeepCopyInto(out *Pipeline)

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

type ProductDeployment

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

	Spec   ProductDeploymentSpec   `json:"spec,omitempty"`
	Status ProductDeploymentStatus `json:"status,omitempty"`
}

ProductDeployment is the Schema for the productdeployments API.

func (*ProductDeployment) DeepCopy

func (in *ProductDeployment) DeepCopy() *ProductDeployment

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

func (*ProductDeployment) DeepCopyInto

func (in *ProductDeployment) DeepCopyInto(out *ProductDeployment)

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

func (*ProductDeployment) DeepCopyObject

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

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

func (*ProductDeployment) GetConditions

func (in *ProductDeployment) GetConditions() []metav1.Condition

GetConditions returns the conditions of the ComponentVersion.

func (ProductDeployment) GetRequeueAfter added in v0.9.0

func (in ProductDeployment) GetRequeueAfter() time.Duration

GetRequeueAfter returns the duration after which the ProductDeployment must be reconciled again.

func (*ProductDeployment) GetVID added in v0.7.0

func (in *ProductDeployment) GetVID() map[string]string

func (*ProductDeployment) IsComplete

func (in *ProductDeployment) IsComplete() bool

IsComplete returns if the deployment has finished running all pipelines.

func (*ProductDeployment) SetConditions

func (in *ProductDeployment) SetConditions(conditions []metav1.Condition)

SetConditions sets the conditions of the ComponentVersion.

func (*ProductDeployment) SetObservedGeneration added in v0.7.0

func (in *ProductDeployment) SetObservedGeneration(v int64)

type ProductDeploymentGenerator

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

	Spec   ProductDeploymentGeneratorSpec   `json:"spec,omitempty"`
	Status ProductDeploymentGeneratorStatus `json:"status,omitempty"`
}

ProductDeploymentGenerator is the Schema for the productdeploymentgenerators API.

func (*ProductDeploymentGenerator) DeepCopy

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

func (*ProductDeploymentGenerator) DeepCopyInto

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

func (*ProductDeploymentGenerator) DeepCopyObject

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

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

func (*ProductDeploymentGenerator) GetConditions

func (in *ProductDeploymentGenerator) GetConditions() []metav1.Condition

GetConditions returns the conditions of the ComponentVersion.

func (ProductDeploymentGenerator) GetRequeueAfter

func (in ProductDeploymentGenerator) GetRequeueAfter() time.Duration

GetRequeueAfter returns the duration after which the ComponentVersion must be reconciled again.

func (ProductDeploymentGenerator) GetSnapshotDigest

func (in ProductDeploymentGenerator) GetSnapshotDigest() string

GetSnapshotDigest returns the latest snapshot digest for the localization.

func (ProductDeploymentGenerator) GetSnapshotName

func (in ProductDeploymentGenerator) GetSnapshotName() string

GetSnapshotName returns the key for the snapshot produced by the Localization.

func (*ProductDeploymentGenerator) GetVID added in v0.7.0

func (in *ProductDeploymentGenerator) GetVID() map[string]string

func (*ProductDeploymentGenerator) SetConditions

func (in *ProductDeploymentGenerator) SetConditions(conditions []metav1.Condition)

SetConditions sets the conditions of the ComponentVersion.

func (*ProductDeploymentGenerator) SetObservedGeneration added in v0.7.0

func (in *ProductDeploymentGenerator) SetObservedGeneration(v int64)

type ProductDeploymentGeneratorList

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

ProductDeploymentGeneratorList contains a list of ProductDeploymentGenerator.

func (*ProductDeploymentGeneratorList) DeepCopy

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

func (*ProductDeploymentGeneratorList) DeepCopyInto

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

func (*ProductDeploymentGeneratorList) DeepCopyObject

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

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

type ProductDeploymentGeneratorSpec

type ProductDeploymentGeneratorSpec struct {
	// Interval is the reconciliation interval, i.e. at what interval shall a reconciliation happen.
	// This is used to requeue objects for reconciliation in case the related subscription hasn't been finished yet.
	// +required
	Interval metav1.Duration `json:"interval"`

	// SubscriptionRef contains the reference to the component subscription from which the ProductDeployment is generated.
	// +required
	SubscriptionRef meta.NamespacedObjectReference `json:"subscriptionRef"`

	//+optional
	RepositoryRef *meta.LocalObjectReference `json:"repositoryRef,omitempty"`

	// ServiceAccountName is used to access ocm component repositories. No other auth option is defined.
	// https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#add-imagepullsecrets-to-a-service-account
	// +required
	ServiceAccountName string `json:"serviceAccountName"`
}

ProductDeploymentGeneratorSpec defines the desired state of ProductDeploymentGenerator.

func (*ProductDeploymentGeneratorSpec) DeepCopy

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

func (*ProductDeploymentGeneratorSpec) DeepCopyInto

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

type ProductDeploymentGeneratorStatus

type ProductDeploymentGeneratorStatus struct {
	// ObservedGeneration is the last reconciled generation.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`

	// +optional
	// +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.conditions[?(@.type==\"Ready\")].status",description=""
	// +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.conditions[?(@.type==\"Ready\")].message",description=""
	Conditions []metav1.Condition `json:"conditions,omitempty"`

	// +optional
	LatestSnapshotDigest string `json:"latestSnapshotDigest,omitempty"`

	// +optional
	SnapshotName string `json:"snapshotName,omitempty"`

	// LastReconciledVersion contains the ComponentSubscription's version that was used to generate the ProductDeployment.
	// +optional
	LastReconciledVersion string `json:"lastReconciledVersion,omitempty"`
}

ProductDeploymentGeneratorStatus defines the observed state of ProductDeploymentGenerator.

func (*ProductDeploymentGeneratorStatus) DeepCopy

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

func (*ProductDeploymentGeneratorStatus) DeepCopyInto

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

type ProductDeploymentList

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

ProductDeploymentList contains a list of ProductDeployment.

func (*ProductDeploymentList) DeepCopy

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

func (*ProductDeploymentList) DeepCopyInto

func (in *ProductDeploymentList) DeepCopyInto(out *ProductDeploymentList)

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

func (*ProductDeploymentList) DeepCopyObject

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

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

type ProductDeploymentPipeline

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

	Spec   ProductDeploymentPipelineSpec   `json:"spec,omitempty"`
	Status ProductDeploymentPipelineStatus `json:"status,omitempty"`
}

ProductDeploymentPipeline is the Schema for the productdeploymentpipelines API.

func (*ProductDeploymentPipeline) DeepCopy

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

func (*ProductDeploymentPipeline) DeepCopyInto

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

func (*ProductDeploymentPipeline) DeepCopyObject

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

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

func (*ProductDeploymentPipeline) Equals added in v0.9.0

Equals compares two ProductDeploymentPipelineSpecs for equality.

func (*ProductDeploymentPipeline) GetConditions

func (in *ProductDeploymentPipeline) GetConditions() []metav1.Condition

GetConditions returns the conditions of the ComponentVersion.

func (*ProductDeploymentPipeline) GetVID added in v0.7.0

func (in *ProductDeploymentPipeline) GetVID() map[string]string

func (*ProductDeploymentPipeline) SetConditions

func (in *ProductDeploymentPipeline) SetConditions(conditions []metav1.Condition)

SetConditions sets the conditions of the ComponentVersion.

func (*ProductDeploymentPipeline) SetObservedGeneration added in v0.7.0

func (in *ProductDeploymentPipeline) SetObservedGeneration(v int64)

type ProductDeploymentPipelineList

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

ProductDeploymentPipelineList contains a list of ProductDeploymentPipeline.

func (*ProductDeploymentPipelineList) DeepCopy

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

func (*ProductDeploymentPipelineList) DeepCopyInto

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

func (*ProductDeploymentPipelineList) DeepCopyObject

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

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

type ProductDeploymentPipelineSpec

type ProductDeploymentPipelineSpec struct {
	// ComponentVersionRef is the name of the generated component version object.
	// +required
	ComponentVersionRef string `json:"componentVersionRef"`
	// +required
	Resource ResourceReference `json:"resource"`
	// +required
	Localization ResourceReference `json:"localization"`
	// +required
	Configuration Configuration `json:"configuration"`
	// +required
	TargetRole TargetRole `json:"targetRole"`
	// +required
	ConfigMapRef string `json:"configMapRef,omitempty"`

	//+optional
	TargetRef meta.NamespacedObjectReference `json:"targetRef"`
}

ProductDeploymentPipelineSpec defines the desired state of ProductDeploymentPipeline.

func (*ProductDeploymentPipelineSpec) DeepCopy

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

func (*ProductDeploymentPipelineSpec) DeepCopyInto

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

type ProductDeploymentPipelineStatus

type ProductDeploymentPipelineStatus struct {
	// ObservedGeneration is the last reconciled generation.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`

	// +optional
	// +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.conditions[?(@.type==\"Ready\")].status",description=""
	// +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.conditions[?(@.type==\"Ready\")].message",description=""
	Conditions []metav1.Condition `json:"conditions,omitempty"`

	// SelectedTarget defines the target in which this pipeline was deployed into.
	// +optional
	SelectedTargetRef *meta.NamespacedObjectReference `json:"targetRef,omitempty"`

	// SnapshotRef references the last snapshot that this pipeline has eventually produced once completed.
	// +optional
	SnapshotRef *meta.NamespacedObjectReference `json:"snapshotRef,omitempty"`
}

ProductDeploymentPipelineStatus defines the observed state of ProductDeploymentPipeline.

func (*ProductDeploymentPipelineStatus) DeepCopy

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

func (*ProductDeploymentPipelineStatus) DeepCopyInto

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

type ProductDeploymentSpec

type ProductDeploymentSpec struct {
	// +required
	Component replicationv1.Component `json:"component"`
	// +required
	Pipelines []Pipeline `json:"pipelines"`
	// +required
	ServiceAccountName string `json:"serviceAccountName"`
	// Interval is the reconciliation interval, i.e. at what interval shall a reconciliation happen.
	// +required
	Interval metav1.Duration `json:"interval"`
	// +required
	Schema []byte `json:"schema"`
	// Verify defines signatures for the given component.
	// +optional
	Verify []ocmv1.Signature `json:"verify,omitempty"`
}

ProductDeploymentSpec defines the desired state of ProductDeployment.

func (*ProductDeploymentSpec) DeepCopy

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

func (*ProductDeploymentSpec) DeepCopyInto

func (in *ProductDeploymentSpec) DeepCopyInto(out *ProductDeploymentSpec)

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

type ProductDeploymentStatus

type ProductDeploymentStatus struct {
	// ObservedGeneration is the last reconciled generation.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`

	// +optional
	// +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.conditions[?(@.type==\"Ready\")].status",description=""
	// +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.conditions[?(@.type==\"Ready\")].message",description=""
	Conditions []metav1.Condition `json:"conditions,omitempty"`

	// ActivePipelines has all the pipelines which are all still running.
	// +optional
	ActivePipelines []string `json:"activePipelines,omitempty"`
}

ProductDeploymentStatus defines the observed state of ProductDeployment.

func (*ProductDeploymentStatus) DeepCopy

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

func (*ProductDeploymentStatus) DeepCopyInto

func (in *ProductDeploymentStatus) DeepCopyInto(out *ProductDeploymentStatus)

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

type ProductDescription

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

	Spec   ProductDescriptionSpec   `json:"spec,omitempty"`
	Status ProductDescriptionStatus `json:"status,omitempty"`
}

ProductDescription is the Schema for the productdescriptions API.

func (*ProductDescription) DeepCopy

func (in *ProductDescription) DeepCopy() *ProductDescription

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

func (*ProductDescription) DeepCopyInto

func (in *ProductDescription) DeepCopyInto(out *ProductDescription)

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

func (*ProductDescription) DeepCopyObject

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

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

type ProductDescriptionList

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

ProductDescriptionList contains a list of ProductDescription.

func (*ProductDescriptionList) DeepCopy

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

func (*ProductDescriptionList) DeepCopyInto

func (in *ProductDescriptionList) DeepCopyInto(out *ProductDescriptionList)

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

func (*ProductDescriptionList) DeepCopyObject

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

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

type ProductDescriptionPipeline

type ProductDescriptionPipeline struct {
	// +required
	Name string `json:"name"`
	// +required
	Source ResourceReference `json:"source"`
	//+optional
	TargetRoleName string `json:"targetRoleName,omitempty"`
	//+optional
	Localization ResourceReference `json:"localization,omitempty"`
	//+optional
	Configuration DescriptionConfiguration `json:"configuration,omitempty"`
	//+required
	Schema ResourceReference `json:"schema,omitempty"`
}

ProductDescriptionPipeline defines the details for a pipeline item.

func (*ProductDescriptionPipeline) DeepCopy

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

func (*ProductDescriptionPipeline) DeepCopyInto

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

type ProductDescriptionSpec

type ProductDescriptionSpec struct {
	// +required
	Description string `json:"description"`
	// +required
	Pipelines []ProductDescriptionPipeline `json:"pipelines"`

	//+optional
	TargetRoles []TargetRoles `json:"targetRoles,omitempty"`
}

ProductDescriptionSpec defines the desired state of ProductDescription.

func (*ProductDescriptionSpec) DeepCopy

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

func (*ProductDescriptionSpec) DeepCopyInto

func (in *ProductDescriptionSpec) DeepCopyInto(out *ProductDescriptionSpec)

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

type ProductDescriptionStatus

type ProductDescriptionStatus struct{}

ProductDescriptionStatus defines the observed state of ProductDescription.

func (*ProductDescriptionStatus) DeepCopy

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

func (*ProductDescriptionStatus) DeepCopyInto

func (in *ProductDescriptionStatus) DeepCopyInto(out *ProductDescriptionStatus)

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

type ResourceReference

type ResourceReference struct {
	// +required
	ocmv1.ElementMeta `json:",inline"`

	// +optional
	ReferencePath []ocmmetav1.Identity `json:"referencePath,omitempty"`
}

func (*ResourceReference) DeepCopy

func (in *ResourceReference) DeepCopy() *ResourceReference

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

func (*ResourceReference) DeepCopyInto

func (in *ResourceReference) DeepCopyInto(out *ResourceReference)

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

type Target

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

	Spec   TargetSpec   `json:"spec,omitempty"`
	Status TargetStatus `json:"status,omitempty"`
}

Target is the Schema for the targets API.

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.

func (*Target) DeepCopyObject

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

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

func (*Target) GetConditions added in v0.6.0

func (in *Target) GetConditions() []metav1.Condition

GetConditions returns the conditions of the ComponentVersion.

func (Target) GetRequeueAfter added in v0.6.0

func (in Target) GetRequeueAfter() time.Duration

GetRequeueAfter returns the duration after which the ComponentVersion must be reconciled again.

func (*Target) SetConditions added in v0.6.0

func (in *Target) SetConditions(conditions []metav1.Condition)

SetConditions sets the conditions of the ComponentVersion.

type TargetList

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

TargetList contains a list of Target.

func (*TargetList) DeepCopy

func (in *TargetList) DeepCopy() *TargetList

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

func (*TargetList) DeepCopyInto

func (in *TargetList) DeepCopyInto(out *TargetList)

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

func (*TargetList) DeepCopyObject

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

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

type TargetRole

type TargetRole struct {
	Type     TargetType           `json:"type"`
	Selector metav1.LabelSelector `json:"selector"`
}

TargetRole the role defining what targets are available to deploy to.

func (*TargetRole) DeepCopy

func (in *TargetRole) DeepCopy() *TargetRole

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

func (*TargetRole) DeepCopyInto

func (in *TargetRole) DeepCopyInto(out *TargetRole)

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

type TargetRoles

type TargetRoles struct {
	// +required
	Name       string `json:"name"`
	TargetRole `json:",inline"`
}

TargetRoles defines a target role with a name.

func (*TargetRoles) DeepCopy

func (in *TargetRoles) DeepCopy() *TargetRoles

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

func (*TargetRoles) DeepCopyInto

func (in *TargetRoles) DeepCopyInto(out *TargetRoles)

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

type TargetSpec

type TargetSpec struct {
	// +required
	Type TargetType `json:"type"`

	// +optional
	Access *apiextensionsv1.JSON `json:"access,omitempty"`

	// Interval is the reconciliation interval, i.e. at what interval shall a reconciliation happen.
	// This is used to requeue objects for reconciliation in case the related subscription hasn't been finished yet.
	// +required
	Interval metav1.Duration `json:"interval"`

	// ServiceAccountName is the name of the ServiceAccount to be created in the target namespace.
	// +optional
	ServiceAccountName string `json:"serviceAccountName"`

	// selector is a label query over secrets that should be used for target access.
	// If found, the secrets will added to the target ServiceAccount as image pull secrets.
	// More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
	// +optional
	SecretsSelector *metav1.LabelSelector `json:"selector,omitempty"`
}

TargetSpec defines the desired state of Target.

func (*TargetSpec) DeepCopy

func (in *TargetSpec) DeepCopy() *TargetSpec

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

func (*TargetSpec) DeepCopyInto

func (in *TargetSpec) DeepCopyInto(out *TargetSpec)

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

type TargetStatus

type TargetStatus struct {
	// ObservedGeneration is the last reconciled generation.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`

	// +optional
	// +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.conditions[?(@.type==\"Ready\")].status",description=""
	// +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.conditions[?(@.type==\"Ready\")].message",description=""
	Conditions []metav1.Condition `json:"conditions,omitempty"`
}

TargetStatus defines the observed state of Target.

func (*TargetStatus) DeepCopy

func (in *TargetStatus) DeepCopy() *TargetStatus

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

func (*TargetStatus) DeepCopyInto

func (in *TargetStatus) DeepCopyInto(out *TargetStatus)

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

type TargetType

type TargetType string

TargetType defines valid types for Targets.

var (
	// Kubernetes defines a Kubernetes target type that uses a KubeConfig for target access.
	Kubernetes TargetType = "kubernetes"
	// SSH defines a remote machine target type that uses SSH access for target access.
	SSH TargetType = "ssh"
	// OCIRepository defines an oci repository target type that uses secrets for target access.
	OCIRepository TargetType = "ocirepository"
)

type Validation added in v0.2.0

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

	Spec   ValidationSpec   `json:"spec,omitempty"`
	Status ValidationStatus `json:"status,omitempty"`
}

Validation is the Schema for the validations API.

func (*Validation) DeepCopy added in v0.2.0

func (in *Validation) DeepCopy() *Validation

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

func (*Validation) DeepCopyInto added in v0.2.0

func (in *Validation) DeepCopyInto(out *Validation)

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

func (*Validation) DeepCopyObject added in v0.2.0

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

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

func (*Validation) GetConditions added in v0.2.0

func (in *Validation) GetConditions() []metav1.Condition

GetConditions returns the conditions of the ComponentVersion.

func (Validation) GetRequeueAfter added in v0.2.0

func (in Validation) GetRequeueAfter() time.Duration

GetRequeueAfter returns the duration after which the ComponentVersion must be reconciled again.

func (*Validation) SetConditions added in v0.2.0

func (in *Validation) SetConditions(conditions []metav1.Condition)

SetConditions sets the conditions of the ComponentVersion.

type ValidationList added in v0.2.0

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

ValidationList contains a list of Validation.

func (*ValidationList) DeepCopy added in v0.2.0

func (in *ValidationList) DeepCopy() *ValidationList

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

func (*ValidationList) DeepCopyInto added in v0.2.0

func (in *ValidationList) DeepCopyInto(out *ValidationList)

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

func (*ValidationList) DeepCopyObject added in v0.2.0

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

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

type ValidationOutcome added in v0.2.0

type ValidationOutcome string

ValidationOutcome defines the allowed outcome of a validation.

var (
	FailedValidationOutcome  ValidationOutcome = "failed"
	SuccessValidationOutcome ValidationOutcome = "success"
)

type ValidationSpec added in v0.2.0

type ValidationSpec struct {
	// Schema contains the schema that will be used to validate the configuration file.
	// +required
	Schema []byte `json:"schema"`
	// +required
	ServiceAccountName string `json:"serviceAccountName"`
	// +required
	Interval metav1.Duration `json:"interval"`
	// SyncRef references the Sync request that will create the git repository to track the values.yaml file.
	// +required
	SyncRef meta.NamespacedObjectReference `json:"syncRef"`
}

ValidationSpec defines the desired state of Validation Fetches pull request ID and GitRepository from the Sync object.

func (*ValidationSpec) DeepCopy added in v0.2.0

func (in *ValidationSpec) DeepCopy() *ValidationSpec

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

func (*ValidationSpec) DeepCopyInto added in v0.2.0

func (in *ValidationSpec) DeepCopyInto(out *ValidationSpec)

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

type ValidationStatus added in v0.2.0

type ValidationStatus struct {
	// ObservedGeneration is the last reconciled generation.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`

	// +optional
	// +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.conditions[?(@.type==\"Ready\")].status",description=""
	// +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.conditions[?(@.type==\"Ready\")].message",description=""
	Conditions []metav1.Condition `json:"conditions,omitempty"`

	// GitRepositoryRef points to the GitRepository that tracks changes to the values.yaml file.
	// +optional
	GitRepositoryRef *meta.NamespacedObjectReference `json:"gitRepositoryRef,omitempty"`

	// LastValidatedDigest contains the last digest that has been validated.
	// +optional
	LastValidatedDigest string `json:"lastValidatedDigest,omitempty"`

	// LastValidatedDigestOutcome contains the outcome of the last digest's validation. Can be failed or success.
	// +optional
	LastValidatedDigestOutcome ValidationOutcome `json:"lastValidatedDigestOutcome,omitempty"`
}

ValidationStatus defines the observed state of Validation.

func (*ValidationStatus) DeepCopy added in v0.2.0

func (in *ValidationStatus) DeepCopy() *ValidationStatus

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

func (*ValidationStatus) DeepCopyInto added in v0.2.0

func (in *ValidationStatus) DeepCopyInto(out *ValidationStatus)

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