v1alpha1

package
v0.1.0-build.2 Latest Latest
Warning

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

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

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the sync v1alpha1 API group +kubebuilder:object:generate=true +groupName=sync.controller.rkgcloud.com

Index

Constants

View Source
const (
	Group   = "sync.controller.rkgcloud.com"
	Version = "v1alpha1"
)
View Source
const (
	ImageSyncConditionReady                    = apis.ConditionReady
	ImageSyncConditionSourceImageResolved      = "SourceImageResolved"
	ImageSyncConditionDestinationImageResolved = "DestinationImageResolved"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: Group, Version: Version}

	// 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
)
View Source
var (
	ImageSyncLabelKey = GroupVersion.Group + "/image-sync"
)

Functions

This section is empty.

Types

type Image

type Image struct {
	// Image is a reference to an image in a remote repository
	// +required
	Image string `json:"image"`

	// SecretRef contains the names of the Kubernetes Secrets containing registry login
	// information to resolve image metadata.
	// +optional
	SecretRef []corev1.LocalObjectReference `json:"imagePullSecrets,omitempty"`

	// ServiceAccountName is the name of the Kubernetes ServiceAccount used to authenticate
	// the image pull if the service account has attached pull secrets. For more information:
	// https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#add-imagepullsecrets-to-a-service-account
	// +optional
	ServiceAccountName string `json:"serviceAccountName,omitempty"`

	// Insecure allows connecting to a non-TLS HTTP container registry.
	// +optional
	Insecure bool `json:"insecure,omitempty"`

	// IsBundleImage allows synchronizing bundle images.
	// +optional
	IsBundleImage bool `json:"isBundleImage,omitempty"`
}

Image type defines the standard properties for an OCI Image and Repository

func (*Image) DeepCopy

func (in *Image) DeepCopy() *Image

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

func (*Image) DeepCopyInto

func (in *Image) DeepCopyInto(out *Image)

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

type ImageSync

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

	Spec   ImageSyncSpec   `json:"spec,omitempty"`
	Status ImageSyncStatus `json:"status,omitempty"`
}

ImageSync is the Schema for the imagesyncs API

func (*ImageSync) DeepCopy

func (in *ImageSync) DeepCopy() *ImageSync

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

func (*ImageSync) DeepCopyInto

func (in *ImageSync) DeepCopyInto(out *ImageSync)

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

func (*ImageSync) DeepCopyObject

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

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

func (*ImageSync) GetConditionSet

func (r *ImageSync) GetConditionSet() apis.ConditionSet

func (*ImageSync) GetConditionsAccessor

func (r *ImageSync) GetConditionsAccessor() apis.ConditionsAccessor

func (*ImageSync) ManageConditions

func (r *ImageSync) ManageConditions() apis.ConditionManager

type ImageSyncList

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

ImageSyncList contains a list of ImageSync

func (*ImageSyncList) DeepCopy

func (in *ImageSyncList) DeepCopy() *ImageSyncList

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

func (*ImageSyncList) DeepCopyInto

func (in *ImageSyncList) DeepCopyInto(out *ImageSyncList)

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

func (*ImageSyncList) DeepCopyObject

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

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

type ImageSyncSpec

type ImageSyncSpec struct {
	// +required
	SourceImage Image `json:"sourceImage,omitempty"`

	// +required
	DestinationImage Image `json:"destinationImage,omitempty"`

	// The timeout for remote OCI Repository operations like pulling, defaults to 60s.
	// +kubebuilder:default="60s"
	// +kubebuilder:validation:Type=string
	// +kubebuilder:validation:Pattern="^([0-9]+(\\.[0-9]+)?(ms|s|m))+$"
	// +optional
	Timeout *metav1.Duration `json:"timeout,omitempty"`
}

ImageSyncSpec defines the desired state of ImageSync

func (*ImageSyncSpec) DeepCopy

func (in *ImageSyncSpec) DeepCopy() *ImageSyncSpec

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

func (*ImageSyncSpec) DeepCopyInto

func (in *ImageSyncSpec) DeepCopyInto(out *ImageSyncSpec)

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

type ImageSyncStatus

type ImageSyncStatus struct {
	apis.Status `json:",inline"`

	// URL is the destination link for the latest Artifact.
	// +optional
	URL string `json:"url,omitempty"`

	// LastSyncTime to the destination repository
	LastSyncTime metav1.Time `json:"lastSyncTime,omitempty"`
}

ImageSyncStatus defines the observed state of ImageSync

func (*ImageSyncStatus) DeepCopy

func (in *ImageSyncStatus) DeepCopy() *ImageSyncStatus

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

func (*ImageSyncStatus) DeepCopyInto

func (in *ImageSyncStatus) DeepCopyInto(out *ImageSyncStatus)

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

func (*ImageSyncStatus) InitializeConditions

func (r *ImageSyncStatus) InitializeConditions()

Jump to

Keyboard shortcuts

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