v1alpha1

package
v0.20.1 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: Apache-2.0 Imports: 16 Imported by: 12

Documentation

Overview

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

Index

Constants

View Source
const (
	// AuthenticatedContextCreationFailedReason is used when the controller failed to create an authenticated context.
	AuthenticatedContextCreationFailedReason = "AuthenticatedContextCreationFailed"

	// CheckVersionFailedReason is used when the controller failed to check for new versions.
	CheckVersionFailedReason = "CheckVersionFailedReason"

	// VerificationFailedReason is used when the signature verification of a component failed.
	VerificationFailedReason = "ComponentVerificationFailed"

	// ComponentVersionInvalidReason is used when the component version is invalid, or we fail to retrieve it.
	ComponentVersionInvalidReason = "ComponentVersionInvalid"

	// ConvertComponentDescriptorFailedReason is used when the Component Descriptor cannot be converted.
	ConvertComponentDescriptorFailedReason = "ConvertComponentDescriptorFailed"

	// NameGenerationFailedReason is used when the component name could not be generated.
	NameGenerationFailedReason = "NameGenerationFailed"

	// CreateOrUpdateComponentDescriptorFailedReason is used when the Component Descriptor cannot be created or updated on the resource.
	CreateOrUpdateComponentDescriptorFailedReason = "CreateOrUpdateComponentDescriptorFailed"

	// ParseReferencesFailedReason is used when the resource references cannot be parsed.
	ParseReferencesFailedReason = "ParseReferencesFailed"

	// ReconcileMutationObjectFailedReason is used when the mutation object cannot be reconciled.
	ReconcileMutationObjectFailedReason = "ReconcileMutationObjectFailed"

	// SourceReasonNotATarArchiveReason is used when the source resource is not a tar archive.
	SourceReasonNotATarArchiveReason = "SourceReasonNotATarArchive"

	// GetResourceFailedReason is used when the resource cannot be retrieved.
	GetResourceFailedReason = "GetResourceFailed"

	// GetComponentDescriptorFailedReason is used when the component descriptor cannot be retrieved.
	GetComponentDescriptorFailedReason = "GetComponentDescriptorFailed"

	// ComponentDescriptorNotFoundReason is used when the component descriptor cannot be found.
	ComponentDescriptorNotFoundReason = "ComponentDescriptorNotFound"

	// ComponentVersionNotFoundReason is used when the component version cannot be found.
	ComponentVersionNotFoundReason = "ComponentVersionNotFound"

	// ComponentVersionNotReadyReason is used when the component version is not ready.
	ComponentVersionNotReadyReason = "ComponentVersionNotReady"

	// CreateOrUpdateSnapshotFailedReason is used when the snapshot cannot be created or updated.
	CreateOrUpdateSnapshotFailedReason = "CreateOrUpdateSnapshotFailed"

	// CreateOrUpdateKustomizationFailedReason is used when the Kustomization cannot be created or updated.
	CreateOrUpdateKustomizationFailedReason = "CreateOrUpdateKustomizationFailed"

	// CreateOrUpdateHelmFailedReason is used when the Kustomization cannot be created or updated.
	CreateOrUpdateHelmFailedReason = "CreateOrUpdateHelmFailed"

	// CreateRepositoryNameReason is used when the generating a new repository name fails.
	CreateRepositoryNameReason = "CreateRepositoryNameFailed"

	// ConfigRefNotReadyWithErrorReason is used when configuration reference is not ready yet with an error.
	ConfigRefNotReadyWithErrorReason = "ConfigRefNotReadyWithError"

	// ConfigRefNotReadyReason is used when configuration ref is not ready yet and there was no error.
	ConfigRefNotReadyReason = "ConfigRefNotReady"

	// SourceRefNotReadyWithErrorReason is used when the source ref is not ready and there was an error.
	SourceRefNotReadyWithErrorReason = "SourceRefNotReadyWithError"

	// SourceRefNotReadyReason is used when the source ref is not ready and there was no error.
	SourceRefNotReadyReason = "SourceRefNotReady"

	// PatchStrategicMergeSourceRefNotReadyWithErrorReason is used when source ref for patch strategic merge is not ready and there was an error.
	PatchStrategicMergeSourceRefNotReadyWithErrorReason = "PatchStrategicMergeSourceRefNotReadyWithError"

	// PatchStrategicMergeSourceRefNotReadyReason is used when source ref for patch strategic merge is not ready and there was no error.
	PatchStrategicMergeSourceRefNotReadyReason = "PatchStrategicMergeSourceRefNotReady"

	// SnapshotNameEmptyReason is used for a failure to generate a snapshot name.
	SnapshotNameEmptyReason = "SnapshotNameEmpty"
)
View Source
const (
	ComponentNameKey          = "component-name"
	ComponentVersionKey       = "component-version"
	ResourceNameKey           = "resource-name"
	ResourceVersionKey        = "resource-version"
	SourceNameKey             = "source-name"
	SourceNamespaceKey        = "source-namespace"
	SourceArtifactChecksumKey = "source-artifact-checksum"
)

Internal ExtraIdentity keys.

View Source
const (
	// ComponentVersionKind is the string representation of a ComponentVersion.
	ComponentVersionKind = "ComponentVersion"
)
View Source
const (
	// DefaultRegistryCertificateSecretName is the name of the of certificate secret for client and registry.
	DefaultRegistryCertificateSecretName = "ocm-registry-tls-certs" //nolint:gosec // not a credential
)
View Source
const (
	// LevelDebug defines the depth at witch debug information is displayed.
	LevelDebug = 4
)

Log levels.

View Source
const (
	// OCMCredentialConfigKey defines the secret key to look for in case a user provides an ocm credential config.
	OCMCredentialConfigKey = ".ocmcredentialconfig" //nolint:gosec // it isn't a cred
)

Ocm credential config key for secrets.

View Source
const (
	// ResourceHelmChartNameKey if defined, means the resource is a helm resource and the chart should be added
	// to the repository name.
	ResourceHelmChartNameKey = "helmChart"
)

Externally defined extra identity keys.

Variables

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

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

	Spec   ComponentDescriptorSpec   `json:"spec,omitempty"`
	Status ComponentDescriptorStatus `json:"status,omitempty"`
}

ComponentDescriptor is the Schema for the componentdescriptors API.

func (*ComponentDescriptor) DeepCopy

func (in *ComponentDescriptor) DeepCopy() *ComponentDescriptor

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

func (*ComponentDescriptor) DeepCopyInto

func (in *ComponentDescriptor) DeepCopyInto(out *ComponentDescriptor)

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

func (*ComponentDescriptor) DeepCopyObject

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

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

func (ComponentDescriptor) GetResource

func (in ComponentDescriptor) GetResource(name string) *v3alpha1.Resource

GetResource return a given resource in a component descriptor if it exists.

type ComponentDescriptorList

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

ComponentDescriptorList contains a list of ComponentDescriptor.

func (*ComponentDescriptorList) DeepCopy

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

func (*ComponentDescriptorList) DeepCopyInto

func (in *ComponentDescriptorList) DeepCopyInto(out *ComponentDescriptorList)

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

func (*ComponentDescriptorList) DeepCopyObject

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

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

type ComponentDescriptorSpec

type ComponentDescriptorSpec struct {
	v3alpha1.ComponentVersionSpec `json:",inline"`
	Version                       string `json:"version"`
}

ComponentDescriptorSpec adds a version to the top level component descriptor definition.

func (*ComponentDescriptorSpec) DeepCopy

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

func (*ComponentDescriptorSpec) DeepCopyInto

func (in *ComponentDescriptorSpec) DeepCopyInto(out *ComponentDescriptorSpec)

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

type ComponentDescriptorStatus

type ComponentDescriptorStatus struct{}

ComponentDescriptorStatus defines the observed state of ComponentDescriptor.

func (*ComponentDescriptorStatus) DeepCopy

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

func (*ComponentDescriptorStatus) DeepCopyInto

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

type ComponentVersion

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

	Spec   ComponentVersionSpec   `json:"spec,omitempty"`
	Status ComponentVersionStatus `json:"status,omitempty"`
}

ComponentVersion is the Schema for the ComponentVersions API.

func (*ComponentVersion) DeepCopy

func (in *ComponentVersion) DeepCopy() *ComponentVersion

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

func (*ComponentVersion) DeepCopyInto

func (in *ComponentVersion) DeepCopyInto(out *ComponentVersion)

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

func (*ComponentVersion) DeepCopyObject

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

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

func (*ComponentVersion) GetComponentName added in v0.14.0

func (in *ComponentVersion) GetComponentName() string

GetComponentName returns the name of the component.

func (*ComponentVersion) GetConditions

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

GetConditions returns the conditions of the ComponentVersion.

func (ComponentVersion) GetRequeueAfter

func (in ComponentVersion) GetRequeueAfter() time.Duration

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

func (*ComponentVersion) GetVID added in v0.16.0

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

func (*ComponentVersion) GetVersion

func (in *ComponentVersion) GetVersion() string

GetVersion returns the reconciled version for the component.

func (*ComponentVersion) SetConditions

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

SetConditions sets the conditions of the ComponentVersion.

func (*ComponentVersion) SetObservedGeneration added in v0.16.0

func (in *ComponentVersion) SetObservedGeneration(v int64)

type ComponentVersionList

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

ComponentVersionList contains a list of ComponentVersion.

func (*ComponentVersionList) DeepCopy

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

func (*ComponentVersionList) DeepCopyInto

func (in *ComponentVersionList) DeepCopyInto(out *ComponentVersionList)

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

func (*ComponentVersionList) DeepCopyObject

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

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

type ComponentVersionSpec

type ComponentVersionSpec struct {
	// Component specifies the name of the ComponentVersion.
	// +required
	Component string `json:"component"`

	// Version specifies the version information for the ComponentVersion.
	// +required
	Version Version `json:"version"`

	// Repository provides details about the OCI repository from which the component
	// descriptor can be retrieved.
	// +required
	Repository Repository `json:"repository"`

	// Interval specifies the interval at which the Repository will be checked for updates.
	// +required
	Interval metav1.Duration `json:"interval"`

	// Verify specifies a list signatures that should be validated before the ComponentVersion
	// is marked Verified.
	// +optional
	Verify []Signature `json:"verify,omitempty"`

	// References specifies configuration for the handling of nested component references.
	// +optional
	References ReferencesConfig `json:"references,omitempty"`

	// Suspend can be used to temporarily pause the reconciliation of the ComponentVersion resource.
	// +optional
	Suspend bool `json:"suspend,omitempty"`

	// ServiceAccountName can be used to configure access to both destination and source repositories.
	// If service account is defined, it's usually redundant to define access to either source or destination, but
	// it is still allowed to do so.
	// https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#add-imagepullsecrets-to-a-service-account
	// +optional
	ServiceAccountName string `json:"serviceAccountName,omitempty"`
}

ComponentVersionSpec specifies the configuration required to retrieve a component descriptor for a component version.

func (*ComponentVersionSpec) DeepCopy

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

func (*ComponentVersionSpec) DeepCopyInto

func (in *ComponentVersionSpec) DeepCopyInto(out *ComponentVersionSpec)

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

type ComponentVersionStatus

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

	// Conditions holds the conditions for the ComponentVersion.
	// +optional
	Conditions []metav1.Condition `json:"conditions,omitempty"`

	// ComponentDescriptor holds the ComponentDescriptor information for the ComponentVersion.
	// +optional
	ComponentDescriptor Reference `json:"componentDescriptor,omitempty"`

	// ReconciledVersion is a string containing the version of the latest reconciled ComponentVersion.
	// +optional
	ReconciledVersion string `json:"reconciledVersion,omitempty"`

	// Verified is a boolean indicating whether all the specified signatures have been verified and are valid.
	// +optional
	Verified bool `json:"verified,omitempty"`
}

ComponentVersionStatus defines the observed state of ComponentVersion.

func (*ComponentVersionStatus) DeepCopy

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

func (*ComponentVersionStatus) DeepCopyInto

func (in *ComponentVersionStatus) DeepCopyInto(out *ComponentVersionStatus)

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

type ConfigMapSource added in v0.15.0

type ConfigMapSource struct {
	// +required
	SourceRef meta.LocalObjectReference `json:"sourceRef"`
	// +required
	Key string `json:"key"`
	// +optional
	SubPath string `json:"subPath,omitempty"`
}

func (*ConfigMapSource) DeepCopy added in v0.15.0

func (in *ConfigMapSource) DeepCopy() *ConfigMapSource

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

func (*ConfigMapSource) DeepCopyInto added in v0.15.0

func (in *ConfigMapSource) DeepCopyInto(out *ConfigMapSource)

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

type Configuration

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

	Spec MutationSpec `json:"spec,omitempty"`

	// +kubebuilder:default={"observedGeneration":-1}
	Status MutationStatus `json:"status,omitempty"`
}

Configuration is the Schema for the configurations API.

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.

func (*Configuration) DeepCopyObject

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

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

func (*Configuration) GetConditions

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

GetConditions returns the conditions of the Configuration.

func (Configuration) GetRequeueAfter

func (in Configuration) GetRequeueAfter() time.Duration

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

func (Configuration) GetSnapshotDigest

func (in Configuration) GetSnapshotDigest() string

GetSnapshotDigest returns the latest snapshot digest for the localization.

func (Configuration) GetSnapshotName

func (in Configuration) GetSnapshotName() string

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

func (*Configuration) GetSpec

func (in *Configuration) GetSpec() *MutationSpec

GetSpec returns the mutation spec for a Localization.

func (*Configuration) GetStatus

func (in *Configuration) GetStatus() *MutationStatus

GetStatus returns the mutation status for a Localization.

func (*Configuration) GetVID added in v0.16.0

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

func (*Configuration) SetConditions

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

SetConditions sets the conditions of the Configuration.

func (*Configuration) SetObservedGeneration added in v0.16.0

func (in *Configuration) SetObservedGeneration(v int64)

type ConfigurationList

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

ConfigurationList contains a list of Configuration.

func (*ConfigurationList) DeepCopy

func (in *ConfigurationList) DeepCopy() *ConfigurationList

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

func (*ConfigurationList) DeepCopyInto

func (in *ConfigurationList) DeepCopyInto(out *ConfigurationList)

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

func (*ConfigurationList) DeepCopyObject

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

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

type DeliverySpec added in v0.14.0

type DeliverySpec struct {
	// +required
	Targets []WasmStep `json:"targets"`
}

DeliverySpec holds a set of targets onto which the pipeline output will be deployed.

func (*DeliverySpec) DeepCopy added in v0.14.0

func (in *DeliverySpec) DeepCopy() *DeliverySpec

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

func (*DeliverySpec) DeepCopyInto added in v0.14.0

func (in *DeliverySpec) DeepCopyInto(out *DeliverySpec)

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

type ElementMeta added in v0.14.0

type ElementMeta struct {
	Name string `json:"name"`

	Version string `json:"version,omitempty"`

	ExtraIdentity ocmmetav1.Identity `json:"extraIdentity,omitempty"`

	Labels ocmmetav1.Labels `json:"labels,omitempty"`
}

func (*ElementMeta) DeepCopy added in v0.14.0

func (in *ElementMeta) DeepCopy() *ElementMeta

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

func (*ElementMeta) DeepCopyInto added in v0.14.0

func (in *ElementMeta) DeepCopyInto(out *ElementMeta)

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

type FluxDeployer

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

	Spec   FluxDeployerSpec   `json:"spec,omitempty"`
	Status FluxDeployerStatus `json:"status,omitempty"`
}

FluxDeployer is the Schema for the FluxDeployers API.

func (*FluxDeployer) DeepCopy

func (in *FluxDeployer) DeepCopy() *FluxDeployer

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

func (*FluxDeployer) DeepCopyInto

func (in *FluxDeployer) DeepCopyInto(out *FluxDeployer)

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

func (*FluxDeployer) DeepCopyObject

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

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

func (*FluxDeployer) GetConditions

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

GetConditions returns the conditions of the ComponentVersion.

func (*FluxDeployer) SetConditions

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

SetConditions sets the conditions of the ComponentVersion.

type FluxDeployerList

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

FluxDeployerList contains a list of FluxDeployer.

func (*FluxDeployerList) DeepCopy

func (in *FluxDeployerList) DeepCopy() *FluxDeployerList

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

func (*FluxDeployerList) DeepCopyInto

func (in *FluxDeployerList) DeepCopyInto(out *FluxDeployerList)

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

func (*FluxDeployerList) DeepCopyObject

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

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

type FluxDeployerSpec

type FluxDeployerSpec struct {
	// +required
	SourceRef ObjectReference `json:"sourceRef"`

	// The interval at which to reconcile the Kustomization and Helm Releases.
	// +kubebuilder:validation:Type=string
	// +kubebuilder:validation:Pattern="^([0-9]+(\\.[0-9]+)?(ms|s|m|h))+$"
	// +required
	Interval metav1.Duration `json:"interval"`

	// +kubebuilder:pruning:PreserveUnknownFields
	// +kubebuilder:validation:Schemaless
	// +optional
	KustomizationTemplate *kustomizev1.KustomizationSpec `json:"kustomizationTemplate,omitempty"`

	// +kubebuilder:pruning:PreserveUnknownFields
	// +kubebuilder:validation:Schemaless
	// +optional
	HelmReleaseTemplate *helmv1.HelmReleaseSpec `json:"helmReleaseTemplate,omitempty"`
}

FluxDeployerSpec defines the desired state of FluxDeployer.

func (*FluxDeployerSpec) DeepCopy

func (in *FluxDeployerSpec) DeepCopy() *FluxDeployerSpec

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

func (*FluxDeployerSpec) DeepCopyInto

func (in *FluxDeployerSpec) DeepCopyInto(out *FluxDeployerSpec)

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

type FluxDeployerStatus

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

	// +optional
	Conditions []metav1.Condition `json:"conditions,omitempty"`

	// +optional
	Kustomization string `json:"kustomization"`

	// +optional
	OCIRepository string `json:"ociRepository"`
}

FluxDeployerStatus defines the observed state of FluxDeployer.

func (*FluxDeployerStatus) DeepCopy

func (in *FluxDeployerStatus) DeepCopy() *FluxDeployerStatus

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

func (*FluxDeployerStatus) DeepCopyInto

func (in *FluxDeployerStatus) DeepCopyInto(out *FluxDeployerStatus)

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

type FluxValuesSource

type FluxValuesSource struct {
	// +required
	SourceRef meta.NamespacedObjectKindReference `json:"sourceRef"`

	// +required
	Path string `json:"path"`

	// +optional
	SubPath string `json:"subPath,omitempty"`
}

func (*FluxValuesSource) DeepCopy

func (in *FluxValuesSource) DeepCopy() *FluxValuesSource

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

func (*FluxValuesSource) DeepCopyInto

func (in *FluxValuesSource) DeepCopyInto(out *FluxValuesSource)

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

type Localization

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

	Spec MutationSpec `json:"spec,omitempty"`
	// +kubebuilder:default={"observedGeneration":-1}
	Status MutationStatus `json:"status,omitempty"`
}

Localization is the Schema for the localizations API.

func (*Localization) DeepCopy

func (in *Localization) DeepCopy() *Localization

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

func (*Localization) DeepCopyInto

func (in *Localization) DeepCopyInto(out *Localization)

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

func (*Localization) DeepCopyObject

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

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

func (*Localization) GetConditions

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

GetConditions returns the conditions of the Localization.

func (Localization) GetRequeueAfter

func (in Localization) GetRequeueAfter() time.Duration

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

func (Localization) GetSnapshotDigest

func (in Localization) GetSnapshotDigest() string

GetSnapshotDigest returns the latest snapshot digest for the localization.

func (Localization) GetSnapshotName

func (in Localization) GetSnapshotName() string

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

func (*Localization) GetSpec

func (in *Localization) GetSpec() *MutationSpec

GetSpec returns the mutation spec for a Localization.

func (*Localization) GetStatus

func (in *Localization) GetStatus() *MutationStatus

GetStatus returns the mutation status for a Localization.

func (*Localization) GetVID added in v0.16.0

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

func (*Localization) SetConditions

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

SetConditions sets the conditions of the Localization.

func (*Localization) SetObservedGeneration added in v0.16.0

func (in *Localization) SetObservedGeneration(v int64)

type LocalizationList

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

LocalizationList contains a list of Localization.

func (*LocalizationList) DeepCopy

func (in *LocalizationList) DeepCopy() *LocalizationList

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

func (*LocalizationList) DeepCopyInto

func (in *LocalizationList) DeepCopyInto(out *LocalizationList)

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

func (*LocalizationList) DeepCopyObject

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

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

type MutationObject

type MutationObject interface {
	SnapshotWriter
	GetSpec() *MutationSpec
	GetStatus() *MutationStatus
}

MutationObject defines any object which produces a snapshot +k8s:deepcopy-gen=false

type MutationSpec

type MutationSpec struct {
	// +required
	Interval metav1.Duration `json:"interval,omitempty"`

	// +required
	SourceRef ObjectReference `json:"sourceRef,omitempty"`

	// +optional
	ConfigRef *ObjectReference `json:"configRef,omitempty"`

	// +optional
	Values *apiextensionsv1.JSON `json:"values,omitempty"`

	// +optional
	ValuesFrom *ValuesSource `json:"valuesFrom,omitempty"`

	// +optional
	PatchStrategicMerge *PatchStrategicMerge `json:"patchStrategicMerge,omitempty"`

	// Suspend stops all operations on this object.
	// +optional
	Suspend bool `json:"suspend,omitempty"`
}

MutationSpec defines a common spec for Localization and Configuration of OCM resources.

func (*MutationSpec) DeepCopy

func (in *MutationSpec) DeepCopy() *MutationSpec

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

func (*MutationSpec) DeepCopyInto

func (in *MutationSpec) DeepCopyInto(out *MutationSpec)

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

func (MutationSpec) GetRequeueAfter

func (in MutationSpec) GetRequeueAfter() time.Duration

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

type MutationStatus

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

	// +optional
	Conditions []metav1.Condition `json:"conditions,omitempty"`

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

	// +optional
	LatestSourceVersion string `json:"latestSourceVersion,omitempty"`

	// +optional
	LatestConfigVersion string `json:"latestConfigVersion,omitempty"`

	// +optional
	LatestPatchSourceVersion string `json:"latestPatchSourceVersio,omitempty"`

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

MutationStatus defines a common status for Localizations and Configurations.

func (*MutationStatus) DeepCopy

func (in *MutationStatus) DeepCopy() *MutationStatus

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

func (*MutationStatus) DeepCopyInto

func (in *MutationStatus) DeepCopyInto(out *MutationStatus)

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

type ObjectReference

type ObjectReference struct {
	meta.NamespacedObjectKindReference `json:",inline"`

	// +optional
	ResourceRef *ResourceReference `json:"resourceRef,omitempty"`
}

ObjectReference defines a resource which may be accessed via a snapshot or component version +kubebuilder:validation:MinProperties=1

func (*ObjectReference) DeepCopy

func (in *ObjectReference) DeepCopy() *ObjectReference

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

func (*ObjectReference) DeepCopyInto

func (in *ObjectReference) DeepCopyInto(out *ObjectReference)

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

func (*ObjectReference) GetGVR

func (*ObjectReference) GetNamespacedName

func (o *ObjectReference) GetNamespacedName() string

func (*ObjectReference) GetObjectKey

func (o *ObjectReference) GetObjectKey() client.ObjectKey

func (*ObjectReference) GetVersion

func (o *ObjectReference) GetVersion() string

type PatchStrategicMerge

type PatchStrategicMerge struct {
	// +required
	Source PatchStrategicMergeSource `json:"source"`

	// +required
	Target PatchStrategicMergeTarget `json:"target"`
}

PatchStrategicMerge contains the source and target details required to perform a strategic merge.

func (*PatchStrategicMerge) DeepCopy

func (in *PatchStrategicMerge) DeepCopy() *PatchStrategicMerge

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

func (*PatchStrategicMerge) DeepCopyInto

func (in *PatchStrategicMerge) DeepCopyInto(out *PatchStrategicMerge)

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

type PatchStrategicMergeSource

type PatchStrategicMergeSource struct {
	// +required
	SourceRef meta.NamespacedObjectKindReference `json:"sourceRef"`

	// +required
	Path string `json:"path"`
}

PatchStrategicMergeSource contains the details required to retrieve the source from a Flux source.

func (*PatchStrategicMergeSource) DeepCopy

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

func (*PatchStrategicMergeSource) DeepCopyInto

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

type PatchStrategicMergeTarget

type PatchStrategicMergeTarget struct {
	Path string `json:"path"`
}

PatchStrategicMergeTarget provides details about the merge target.

func (*PatchStrategicMergeTarget) DeepCopy

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

func (*PatchStrategicMergeTarget) DeepCopyInto

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

type PipelineSpec added in v0.14.0

type PipelineSpec struct {
	// +required
	Steps []WasmStep `json:"steps"`
}

PipelineSpec holds the steps that constitute the pipeline.

func (*PipelineSpec) DeepCopy added in v0.14.0

func (in *PipelineSpec) DeepCopy() *PipelineSpec

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

func (*PipelineSpec) DeepCopyInto added in v0.14.0

func (in *PipelineSpec) DeepCopyInto(out *PipelineSpec)

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

type PublicKey added in v0.18.0

type PublicKey struct {
	// SecretRef is a reference to a Secret that contains a public key.
	// +optional
	SecretRef *v1.LocalObjectReference `json:"secretRef,omitempty"`

	// Value defines a PEM/base64 encoded public key value.
	// +optional
	Value string `json:"value,omitempty"`
}

PublicKey specifies access to a public key for verification.

func (*PublicKey) DecodePublicValue added in v0.18.0

func (p *PublicKey) DecodePublicValue() ([]byte, error)

func (*PublicKey) DeepCopy added in v0.18.0

func (in *PublicKey) DeepCopy() *PublicKey

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

func (*PublicKey) DeepCopyInto added in v0.18.0

func (in *PublicKey) DeepCopyInto(out *PublicKey)

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

type Reference

type Reference struct {
	// Name specifies the name of the referenced component.
	// +required
	Name string `json:"name"`

	// Version specifies the version of the referenced component.
	// +required
	Version string `json:"version"`

	// References is a list of component references.
	// +kubebuilder:pruning:PreserveUnknownFields
	// +kubebuilder:validation:Schemaless
	References []Reference `json:"references,omitempty"`

	// ExtraIdentity specifies additional identity attributes of the referenced component.
	// +optional
	ExtraIdentity map[string]string `json:"extraIdentity,omitempty"`

	// ComponentDescriptorRef specifies the reference for the Kubernetes object representing
	// the ComponentDescriptor.
	// +optional
	ComponentDescriptorRef meta.NamespacedObjectReference `json:"componentDescriptorRef,omitempty"`
}

Reference contains all referred components and their versions.

func (*Reference) DeepCopy

func (in *Reference) DeepCopy() *Reference

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

func (*Reference) DeepCopyInto

func (in *Reference) DeepCopyInto(out *Reference)

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

type ReferencesConfig

type ReferencesConfig struct {
	// Expand specifies if a Kubernetes API resource of kind ComponentDescriptor should
	// be generated for each component reference that is present in the root ComponentVersion.
	// +optional
	Expand bool `json:"expand,omitempty"`
}

ReferencesConfig specifies how component references should be handled when reconciling the root component.

func (*ReferencesConfig) DeepCopy

func (in *ReferencesConfig) DeepCopy() *ReferencesConfig

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

func (*ReferencesConfig) DeepCopyInto

func (in *ReferencesConfig) DeepCopyInto(out *ReferencesConfig)

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

type Repository

type Repository struct {
	// URL specifies the URL of the OCI registry in which the ComponentVersion is stored.
	// MUST NOT CONTAIN THE SCHEME.
	// +required
	URL string `json:"url"`

	// SecretRef specifies the credentials used to access the OCI registry.
	// +optional
	SecretRef *v1.LocalObjectReference `json:"secretRef,omitempty"`
}

Repository specifies access details for the repository that contains OCM ComponentVersions.

func (*Repository) DeepCopy

func (in *Repository) DeepCopy() *Repository

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

func (*Repository) DeepCopyInto

func (in *Repository) DeepCopyInto(out *Repository)

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

type Resource

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

	Spec ResourceSpec `json:"spec,omitempty"`

	// +kubebuilder:default={"observedGeneration":-1}
	Status ResourceStatus `json:"status,omitempty"`
}

Resource is the Schema for the resources API.

func (*Resource) DeepCopy

func (in *Resource) DeepCopy() *Resource

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

func (*Resource) DeepCopyInto

func (in *Resource) DeepCopyInto(out *Resource)

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

func (*Resource) DeepCopyObject

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

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

func (*Resource) GetConditions

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

GetConditions returns the conditions of the Resource.

func (Resource) GetReferencePath

func (in Resource) GetReferencePath() []ocmmetav1.Identity

GetReferencePath returns the component reference path for the Resource.

func (Resource) GetRequeueAfter

func (in Resource) GetRequeueAfter() time.Duration

GetRequeueAfter returns the duration after which the Resource should be reconciled.

func (Resource) GetSnapshotDigest

func (in Resource) GetSnapshotDigest() string

GetSnapshotDigest returns the digest of the Resource's associated Snapshot.

func (Resource) GetSnapshotName

func (in Resource) GetSnapshotName() string

GetSnapshotName returns the name of the Resource's associated Snapshot.

func (*Resource) GetVID added in v0.16.0

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

func (*Resource) SetConditions

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

SetConditions sets the conditions of the Resource.

func (*Resource) SetObservedGeneration added in v0.16.0

func (in *Resource) SetObservedGeneration(v int64)

type ResourceList

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

ResourceList contains a list of Resource.

func (*ResourceList) DeepCopy

func (in *ResourceList) DeepCopy() *ResourceList

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

func (*ResourceList) DeepCopyInto

func (in *ResourceList) DeepCopyInto(out *ResourceList)

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

func (*ResourceList) DeepCopyObject

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

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

type ResourcePipeline added in v0.14.0

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

	Spec   ResourcePipelineSpec   `json:"spec,omitempty"`
	Status ResourcePipelineStatus `json:"status,omitempty"`
}

ResourcePipeline is the Schema for the resourcepipelines API.

func (*ResourcePipeline) DeepCopy added in v0.14.0

func (in *ResourcePipeline) DeepCopy() *ResourcePipeline

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

func (*ResourcePipeline) DeepCopyInto added in v0.14.0

func (in *ResourcePipeline) DeepCopyInto(out *ResourcePipeline)

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

func (*ResourcePipeline) DeepCopyObject added in v0.14.0

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

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

func (*ResourcePipeline) GetConditions added in v0.14.0

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

GetConditions returns the conditions of the ComponentVersion.

func (ResourcePipeline) GetRequeueAfter added in v0.14.0

func (in ResourcePipeline) GetRequeueAfter() time.Duration

GetRequeueAfter returns the duration after which the Resource should be reconciled.

func (ResourcePipeline) GetSnapshotDigest added in v0.14.0

func (in ResourcePipeline) GetSnapshotDigest() string

GetSnapshotDigest returns the digest of the Resource's associated Snapshot.

func (ResourcePipeline) GetSnapshotName added in v0.14.0

func (in ResourcePipeline) GetSnapshotName() string

GetSnapshotName returns the name of the Resource's associated Snapshot.

func (*ResourcePipeline) SetConditions added in v0.14.0

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

SetConditions sets the conditions of the ComponentVersion.

type ResourcePipelineList added in v0.14.0

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

ResourcePipelineList contains a list of ResourcePipeline.

func (*ResourcePipelineList) DeepCopy added in v0.14.0

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

func (*ResourcePipelineList) DeepCopyInto added in v0.14.0

func (in *ResourcePipelineList) DeepCopyInto(out *ResourcePipelineList)

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

func (*ResourcePipelineList) DeepCopyObject added in v0.14.0

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

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

type ResourcePipelineSource added in v0.14.0

type ResourcePipelineSource struct {
	// +required
	Name string `json:"name"`

	// +optional
	Namespace string `json:"namespace,omitempty"`

	// +required
	Resource string `json:"resource"`
}

ResourcePipelineSource defines the component version and resource which will be processed by the pipeline.

func (*ResourcePipelineSource) DeepCopy added in v0.14.0

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

func (*ResourcePipelineSource) DeepCopyInto added in v0.14.0

func (in *ResourcePipelineSource) DeepCopyInto(out *ResourcePipelineSource)

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

type ResourcePipelineSpec added in v0.14.0

type ResourcePipelineSpec struct {
	// +required
	Interval metav1.Duration `json:"interval"`

	// +optional
	Suspend bool `json:"suspend,omitempty"`

	// +optional
	ServiceAccountName string `json:"serviceAccountName,omitempty"`

	// +required
	SourceRef ObjectReference `json:"sourceRef"`

	// +optional
	Parameters *apiextensionsv1.JSON `json:"parameters,omitempty"`

	// +optional
	PipelineSpec *PipelineSpec `json:"pipelineSpec,omitempty"`
}

ResourcePipelineSpec defines the desired state of ResourcePipeline.

func (*ResourcePipelineSpec) DeepCopy added in v0.14.0

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

func (*ResourcePipelineSpec) DeepCopyInto added in v0.14.0

func (in *ResourcePipelineSpec) DeepCopyInto(out *ResourcePipelineSpec)

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

type ResourcePipelineStatus added in v0.14.0

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

	// +optional
	Conditions []metav1.Condition `json:"conditions,omitempty"`

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

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

ResourcePipelineStatus defines the observed state of ResourcePipeline.

func (*ResourcePipelineStatus) DeepCopy added in v0.14.0

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

func (*ResourcePipelineStatus) DeepCopyInto added in v0.14.0

func (in *ResourcePipelineStatus) DeepCopyInto(out *ResourcePipelineStatus)

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

type ResourceReference

type ResourceReference struct {
	// +required
	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 ResourceSpec

type ResourceSpec struct {
	// Interval specifies the interval at which the Repository will be checked for updates.
	// +required
	Interval metav1.Duration `json:"interval"`

	// SourceRef specifies the source object from which the resource should be retrieved.
	// +required
	SourceRef ObjectReference `json:"sourceRef"`

	// Suspend can be used to temporarily pause the reconciliation of the Resource.
	// +optional
	Suspend bool `json:"suspend,omitempty"`
}

ResourceSpec defines the desired state of Resource.

func (*ResourceSpec) DeepCopy

func (in *ResourceSpec) DeepCopy() *ResourceSpec

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

func (*ResourceSpec) DeepCopyInto

func (in *ResourceSpec) DeepCopyInto(out *ResourceSpec)

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

type ResourceStatus

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

	// Conditions holds the conditions for the ComponentVersion.
	// +optional
	Conditions []metav1.Condition `json:"conditions,omitempty"`

	// LastAppliedResourceVersion holds the version of the resource that was last applied (if applicable).
	// +optional
	LastAppliedResourceVersion string `json:"lastAppliedResourceVersion,omitempty"`

	// LastAppliedComponentVersion holds the version of the last applied ComponentVersion for the ComponentVersion which contains this Resource.
	// +optional
	LastAppliedComponentVersion string `json:"lastAppliedComponentVersion,omitempty"`

	// SnapshotName specifies the name of the Snapshot that has been created to store the resource
	// within the cluster and make it available for consumption by Flux controllers.
	// +optional
	SnapshotName string `json:"snapshotName,omitempty"`

	// LatestSnapshotDigest is a string representation of the digest for the most recent Resource snapshot.
	// +optional
	LatestSnapshotDigest string `json:"latestSnapshotDigest,omitempty"`
}

ResourceStatus defines the observed state of Resource.

func (*ResourceStatus) DeepCopy

func (in *ResourceStatus) DeepCopy() *ResourceStatus

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

func (*ResourceStatus) DeepCopyInto

func (in *ResourceStatus) DeepCopyInto(out *ResourceStatus)

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

type Signature

type Signature struct {
	// Name specifies the name of the signature. An OCM component may have multiple
	// signatures.
	Name string `json:"name"`

	// PublicKey provides a reference to a Kubernetes Secret of contain a blob of a public key that
	// which will be used to validate the named signature.
	PublicKey PublicKey `json:"publicKey"`
}

Signature defines the details of a signature to use for verification.

func (*Signature) DeepCopy

func (in *Signature) DeepCopy() *Signature

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

func (*Signature) DeepCopyInto

func (in *Signature) DeepCopyInto(out *Signature)

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

type Snapshot

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

	Spec   SnapshotSpec   `json:"spec,omitempty"`
	Status SnapshotStatus `json:"status,omitempty"`
}

Snapshot is the Schema for the snapshots API.

func (*Snapshot) DeepCopy

func (in *Snapshot) DeepCopy() *Snapshot

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

func (*Snapshot) DeepCopyInto

func (in *Snapshot) DeepCopyInto(out *Snapshot)

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

func (*Snapshot) DeepCopyObject

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

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

func (Snapshot) GetComponentResourceVersion

func (in Snapshot) GetComponentResourceVersion() string

GetComponentResourceVersion returns the resource version for the snapshot.

func (Snapshot) GetComponentVersion

func (in Snapshot) GetComponentVersion() string

GetComponentVersion returns the component version for the snapshot.

func (Snapshot) GetConditions

func (in Snapshot) GetConditions() []metav1.Condition

GetConditions returns the status conditions of the object.

func (Snapshot) GetDigest

func (in Snapshot) GetDigest() string

GetDigest returns the last reconciled digest for the snapshot.

func (*Snapshot) GetVID added in v0.16.0

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

func (*Snapshot) SetConditions

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

SetConditions sets the status conditions on the object.

func (*Snapshot) SetObservedGeneration added in v0.16.0

func (in *Snapshot) SetObservedGeneration(v int64)

type SnapshotList

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

SnapshotList contains a list of Snapshot.

func (*SnapshotList) DeepCopy

func (in *SnapshotList) DeepCopy() *SnapshotList

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

func (*SnapshotList) DeepCopyInto

func (in *SnapshotList) DeepCopyInto(out *SnapshotList)

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

func (*SnapshotList) DeepCopyObject

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

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

type SnapshotSpec

type SnapshotSpec struct {
	Identity ocmmetav1.Identity `json:"identity"`

	Digest string `json:"digest"`

	Tag string `json:"tag"`

	// Suspend stops all operations on this object.
	// +optional
	Suspend bool `json:"suspend,omitempty"`
}

SnapshotSpec defines the desired state of Snapshot.

func (*SnapshotSpec) DeepCopy

func (in *SnapshotSpec) DeepCopy() *SnapshotSpec

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

func (*SnapshotSpec) DeepCopyInto

func (in *SnapshotSpec) DeepCopyInto(out *SnapshotSpec)

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

type SnapshotStatus

type SnapshotStatus struct {
	// +optional
	Conditions []metav1.Condition `json:"conditions,omitempty"`

	// Digest is calculated by the caching layer.
	// +optional
	LastReconciledDigest string `json:"digest,omitempty"`

	// Tag defines the explicit tag that was used to create the related snapshot and cache entry.
	// +optional
	LastReconciledTag string `json:"tag,omitempty"`

	// RepositoryURL has the concrete URL pointing to the local registry including the service name.
	// +optional
	RepositoryURL string `json:"repositoryURL,omitempty"`

	// ObservedGeneration is the last reconciled generation.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
}

SnapshotStatus defines the observed state of Snapshot.

func (*SnapshotStatus) DeepCopy

func (in *SnapshotStatus) DeepCopy() *SnapshotStatus

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

func (*SnapshotStatus) DeepCopyInto

func (in *SnapshotStatus) DeepCopyInto(out *SnapshotStatus)

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

type SnapshotTemplateSpec

type SnapshotTemplateSpec struct {
	// +required
	Name string `json:"name"`

	// +optional
	Labels map[string]string `json:"labels,omitempty"`

	// +optional
	Annotations map[string]string `json:"annotations,omitempty"`
}

SnapshotTemplateSpec defines the template used to create snapshots.

func (*SnapshotTemplateSpec) DeepCopy

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

func (*SnapshotTemplateSpec) DeepCopyInto

func (in *SnapshotTemplateSpec) DeepCopyInto(out *SnapshotTemplateSpec)

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

type SnapshotWriter

type SnapshotWriter interface {
	client.Object
	GetSnapshotDigest() string
	GetSnapshotName() string
}

SnapshotWriter defines any object which produces a snapshot +k8s:deepcopy-gen=false

type ValuesSource

type ValuesSource struct {
	// +optional
	FluxSource *FluxValuesSource `json:"fluxSource,omitempty"`
	// +optional
	ConfigMapSource *ConfigMapSource `json:"configMapSource,omitempty"`
}

ValuesSource provides access to values from an external Source such as a ConfigMap or GitRepository. An optional subpath defines the path within the source from which the values should be resolved.

func (*ValuesSource) DeepCopy

func (in *ValuesSource) DeepCopy() *ValuesSource

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

func (*ValuesSource) DeepCopyInto

func (in *ValuesSource) DeepCopyInto(out *ValuesSource)

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

type Version

type Version struct {
	// Semver specifies a semantic version constraint for the Component Version.
	// +optional
	Semver string `json:"semver,omitempty"`
}

Version specifies version information that can be used to resolve a Component Version.

func (*Version) DeepCopy

func (in *Version) DeepCopy() *Version

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

func (*Version) DeepCopyInto

func (in *Version) DeepCopyInto(out *Version)

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

type WasmStep added in v0.14.0

type WasmStep struct {
	// +required
	Name string `json:"name"`

	// +kubebuilder:example="ocm.software/modules:v1.0.0@kustomizer"
	// +kubebuilder:validation:Pattern="^([A-Za-z0-9\\.\\/]+):(v[0-9\\.\\-a-z]+)@([a-z]+)$"
	// +required
	Module string `json:"module"`

	// +kubebuilder:default="ghcr.io/open-component-model"
	// +optional
	Registry string `json:"registry,omitempty"`

	// +optional
	Values *apiextensionsv1.JSON `json:"values,omitempty"`

	// +kubebuilder:default="30s"
	// +kubebuilder:validation:Type=string
	// +kubebuilder:validation:Pattern="^([0-9]+(\\.[0-9]+)?(ms|s|m))+$"
	// +optional
	Timeout *metav1.Duration `json:"timeout,omitempty"`
}

WasmStep defines the name version and location of a wasm module that is stored// in an ocm component. The format of the module name must be <component-name>:<component-version>@<resource-name>. Optionally a registry address can be specified.

func (*WasmStep) DeepCopy added in v0.14.0

func (in *WasmStep) DeepCopy() *WasmStep

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

func (*WasmStep) DeepCopyInto added in v0.14.0

func (in *WasmStep) DeepCopyInto(out *WasmStep)

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

func (WasmStep) GetComponent added in v0.14.0

func (w WasmStep) GetComponent() string

func (WasmStep) GetComponentVersion added in v0.14.0

func (w WasmStep) GetComponentVersion() string

func (WasmStep) GetResource added in v0.14.0

func (w WasmStep) GetResource() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL