Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the delivery v1alpha1 API group +kubebuilder:object:generate=true +groupName=delivery.ocm.software
Index ¶
- Constants
- Variables
- type ComponentSubscription
- func (in *ComponentSubscription) DeepCopy() *ComponentSubscription
- func (in *ComponentSubscription) DeepCopyInto(out *ComponentSubscription)
- func (in *ComponentSubscription) DeepCopyObject() runtime.Object
- func (in *ComponentSubscription) GetConditions() []metav1.Condition
- func (in ComponentSubscription) GetRequeueAfter() time.Duration
- func (in *ComponentSubscription) SetConditions(conditions []metav1.Condition)
- type ComponentSubscriptionList
- type ComponentSubscriptionSpec
- type ComponentSubscriptionStatus
- type OCMRepository
- type Ref
- type SecretRef
- type Signature
- type Verify
Constants ¶
const ( // ConfiguringCredentialsFailedReason is used when we fail to configure credentials. ConfiguringCredentialsFailedReason = "ConfiguringCredentialsFailed" // PatchFailedReason is used when we couldn't patch an object. PatchFailedReason = "PatchFailed" // PullingLatestVersionFailedReason is used when we couldn't pull the latest version for a controller. PullingLatestVersionFailedReason = "PullingLatestVersionFailed" // SemverConversionFailedReason is used when we couldn't convert a version to semver. SemverConversionFailedReason = "SemverConversionFailed" // GetComponentDescriptorFailedReason is used when the component descriptor cannot be retrieved. GetComponentDescriptorFailedReason = "GetComponentDescriptorFailed" // RepositoryForSpecFailedReason is used when we fail to create a repository for a spec. RepositoryForSpecFailedReason = "RepositoryForSpecFailed" // VerificationProcessFailedReason is used when the verification process fails to verify a component. VerificationProcessFailedReason = "VerificationProcessFailed" // ConstructingHandlerFailedReason is used when we fail to create a transfer handler. ConstructingHandlerFailedReason = "ConstructingHandlerFailed" // TransferFailedReason is used when we fail to transfer a component. TransferFailedReason = "TransferFailed" )
Variables ¶
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 ComponentSubscription ¶
type ComponentSubscription struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ComponentSubscriptionSpec `json:"spec,omitempty"` Status ComponentSubscriptionStatus `json:"status,omitempty"` }
ComponentSubscription is the Schema for the componentsubscriptions API
func (*ComponentSubscription) DeepCopy ¶
func (in *ComponentSubscription) DeepCopy() *ComponentSubscription
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ComponentSubscription.
func (*ComponentSubscription) DeepCopyInto ¶
func (in *ComponentSubscription) DeepCopyInto(out *ComponentSubscription)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ComponentSubscription) DeepCopyObject ¶
func (in *ComponentSubscription) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ComponentSubscription) GetConditions ¶
func (in *ComponentSubscription) GetConditions() []metav1.Condition
GetConditions returns the conditions of the ComponentVersion.
func (ComponentSubscription) GetRequeueAfter ¶
func (in ComponentSubscription) GetRequeueAfter() time.Duration
GetRequeueAfter returns the duration after which the ComponentVersion must be reconciled again.
func (*ComponentSubscription) SetConditions ¶
func (in *ComponentSubscription) SetConditions(conditions []metav1.Condition)
SetConditions sets the conditions of the ComponentVersion.
type ComponentSubscriptionList ¶
type ComponentSubscriptionList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ComponentSubscription `json:"items"` }
ComponentSubscriptionList contains a list of ComponentSubscription
func (*ComponentSubscriptionList) DeepCopy ¶
func (in *ComponentSubscriptionList) DeepCopy() *ComponentSubscriptionList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ComponentSubscriptionList.
func (*ComponentSubscriptionList) DeepCopyInto ¶
func (in *ComponentSubscriptionList) DeepCopyInto(out *ComponentSubscriptionList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ComponentSubscriptionList) DeepCopyObject ¶
func (in *ComponentSubscriptionList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ComponentSubscriptionSpec ¶
type ComponentSubscriptionSpec 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 of success as well as already reconciling objects. // +required Interval metav1.Duration `json:"interval"` Source OCMRepository `json:"source"` Destination OCMRepository `json:"destination"` Component string `json:"component"` //+optional Semver string `json:"semver,omitempty"` Verify []Signature `json:"verify,omitempty"` }
ComponentSubscriptionSpec defines the desired state of ComponentSubscription
func (*ComponentSubscriptionSpec) DeepCopy ¶
func (in *ComponentSubscriptionSpec) DeepCopy() *ComponentSubscriptionSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ComponentSubscriptionSpec.
func (*ComponentSubscriptionSpec) DeepCopyInto ¶
func (in *ComponentSubscriptionSpec) DeepCopyInto(out *ComponentSubscriptionSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ComponentSubscriptionStatus ¶
type ComponentSubscriptionStatus struct { // LatestVersion defines the version that was last reconciled successfully. LatestVersion string `json:"latestVersion"` // ObservedGeneration is the last reconciled generation. // +optional ObservedGeneration int64 `json:"observedGeneration,omitempty"` //+optional ReplicatedVersion string `json:"replicatedVersion,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"` }
ComponentSubscriptionStatus defines the observed state of ComponentSubscription
func (*ComponentSubscriptionStatus) DeepCopy ¶
func (in *ComponentSubscriptionStatus) DeepCopy() *ComponentSubscriptionStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ComponentSubscriptionStatus.
func (*ComponentSubscriptionStatus) DeepCopyInto ¶
func (in *ComponentSubscriptionStatus) DeepCopyInto(out *ComponentSubscriptionStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type OCMRepository ¶
OCMRepository defines details for a repository, such as access keys and the url.
func (*OCMRepository) DeepCopy ¶
func (in *OCMRepository) DeepCopy() *OCMRepository
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OCMRepository.
func (*OCMRepository) DeepCopyInto ¶
func (in *OCMRepository) DeepCopyInto(out *OCMRepository)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Ref ¶
type Ref struct {
Name string `json:"name"`
}
Ref assumes that the namespace is the same as whatever the component has that is looking for this ref.
func (*Ref) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Ref.
func (*Ref) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SecretRef ¶
type SecretRef struct {
SecretRef Ref `json:"secretRef"`
}
SecretRef clearly denotes that the requested option is a Secret.
func (*SecretRef) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretRef.
func (*SecretRef) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Signature ¶
type Signature struct { // Name of the signature. Name string `json:"name"` // Key which is used for verification. PublicKey SecretRef `json:"publicKey"` }
Signature defines the details of a signature to use for verification.
func (*Signature) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Signature.
func (*Signature) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Verify ¶
type Verify struct { // Name of the signature. Name string `json:"name"` // Key which is used for verification. Key Ref `json:"key"` }
Verify contains a ref to the key used for verification.
func (*Verify) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Verify.
func (*Verify) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.