v1alpha1

package
v0.0.0-...-7fd83db Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

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

Index

Constants

View Source
const (
	ImageSyncConditionSucceeded           = apis.ConditionReady
	ImageSyncConditionSourceResolved      = "SourceResolved"
	ImageSyncConditionDestinationResolved = "DestinationResolved"
)
View Source
const (
	PodSyncConditionSucceeded    = apis.ConditionReady
	PodSyncConditionPodCreated   = "PodCreated"
	PodSyncConditionPodRunning   = "PodRunning"
	PodSyncConditionPodCompleted = "PodCompleted"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "image.apps.rkgcloud.com", 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 ContainerInfo

type ContainerInfo struct {
	// ImageURL refers to the URL of the container image
	ImageURL string `json:"imageURL"`

	// ImagePullSecretName refers to a k8s secret used in authenticating to the container image registry
	ImagePullSecretName corev1.LocalObjectReference `json:"imagePullSecretName,omitempty"`

	// Args refer to an array of args used for the container
	Args []string `json:"args,omitempty"`
}

func (*ContainerInfo) DeepCopy

func (in *ContainerInfo) DeepCopy() *ContainerInfo

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

func (*ContainerInfo) DeepCopyInto

func (in *ContainerInfo) DeepCopyInto(out *ContainerInfo)

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

type ImageDestination

type ImageDestination struct {
	// RepositoryURL refers to an image repository
	// +kubebuilder:validation:Required
	RepositoryURL string `json:"repostoryURL"`

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

ImageDestination type defines the standard properties for the destination OCI Image and Repository

func (*ImageDestination) DeepCopy

func (in *ImageDestination) DeepCopy() *ImageDestination

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

func (*ImageDestination) DeepCopyInto

func (in *ImageDestination) DeepCopyInto(out *ImageDestination)

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

type ImageSource

type ImageSource struct {
	// Image to URL of an image in a remote repository
	// +kubebuilder:validation:Required
	Image string `json:"image"`

	// SecretRef contains the names of the Kubernetes Secrets containing registry login
	// information to resolve image metadata.
	// +kubebuilder:validation: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.
	// +kubebuilder:validation:Optional
	Insecure bool `json:"insecure,omitempty"`

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

ImageSource type defines the standard properties for the source OCI Image and Repository

func (*ImageSource) DeepCopy

func (in *ImageSource) DeepCopy() *ImageSource

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

func (*ImageSource) DeepCopyInto

func (in *ImageSource) DeepCopyInto(out *ImageSource)

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.

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 {
	// +kubebuilder:validation:Required
	SourceImage ImageSource `json:"sourceImage,omitempty"`

	// +kubebuilder:validation:Required
	DestinationImage ImageDestination `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.
	SyncedURL string `json:"syncedUrl,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 (s *ImageSyncStatus) InitializeConditions(ctx context.Context)

type PodSync

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

	Spec   PodSyncSpec   `json:"spec,omitempty"`
	Status PodSyncStatus `json:"status,omitempty"`
}

PodSync is the Schema for the podsyncs API

func (*PodSync) DeepCopy

func (in *PodSync) DeepCopy() *PodSync

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

func (*PodSync) DeepCopyInto

func (in *PodSync) DeepCopyInto(out *PodSync)

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

func (*PodSync) DeepCopyObject

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

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

type PodSyncList

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

PodSyncList contains a list of PodSync

func (*PodSyncList) DeepCopy

func (in *PodSyncList) DeepCopy() *PodSyncList

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

func (*PodSyncList) DeepCopyInto

func (in *PodSyncList) DeepCopyInto(out *PodSyncList)

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

func (*PodSyncList) DeepCopyObject

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

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

type PodSyncSpec

type PodSyncSpec struct {
	// Containers refer to a list of arguments used by the container
	Containers []ContainerInfo `json:"containers"`
}

PodSyncSpec defines the desired state of PodSync

func (*PodSyncSpec) DeepCopy

func (in *PodSyncSpec) DeepCopy() *PodSyncSpec

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

func (*PodSyncSpec) DeepCopyInto

func (in *PodSyncSpec) DeepCopyInto(out *PodSyncSpec)

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

type PodSyncStatus

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

	// PodName refers to the generated pod's name
	PodName string `json:"podName,omitempty"`
}

PodSyncStatus defines the observed state of PodSync

func (*PodSyncStatus) DeepCopy

func (in *PodSyncStatus) DeepCopy() *PodSyncStatus

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

func (*PodSyncStatus) DeepCopyInto

func (in *PodSyncStatus) DeepCopyInto(out *PodSyncStatus)

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

func (*PodSyncStatus) InitializeConditions

func (s *PodSyncStatus) InitializeConditions(ctx context.Context)

Jump to

Keyboard shortcuts

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