Documentation ¶
Overview ¶
Package v1 contains API Schema definitions for the slipway.k8s.facebook.com v1 API group +kubebuilder:object:generate=true +groupName=slipway.k8s.facebook.com
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "slipway.k8s.facebook.com", Version: "v1"} // 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 ImageMirror ¶
type ImageMirror struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ImageMirrorSpec `json:"spec,omitempty"` Status ImageMirrorStatus `json:"status,omitempty"` }
ImageMirror is the Schema for the imagemirrors API
func (*ImageMirror) DeepCopy ¶
func (in *ImageMirror) DeepCopy() *ImageMirror
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageMirror.
func (*ImageMirror) DeepCopyInto ¶
func (in *ImageMirror) DeepCopyInto(out *ImageMirror)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ImageMirror) DeepCopyObject ¶
func (in *ImageMirror) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ImageMirrorList ¶
type ImageMirrorList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ImageMirror `json:"items"` }
ImageMirrorList contains a list of ImageMirror
func (*ImageMirrorList) DeepCopy ¶
func (in *ImageMirrorList) DeepCopy() *ImageMirrorList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageMirrorList.
func (*ImageMirrorList) DeepCopyInto ¶
func (in *ImageMirrorList) DeepCopyInto(out *ImageMirrorList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ImageMirrorList) DeepCopyObject ¶
func (in *ImageMirrorList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ImageMirrorSpec ¶
type ImageMirrorSpec struct { // SourceRepo is a URL resource, including scheme (optional), // registry host, and registry organization (e.g. docker.io/dwat/) which // will be used to pull images to mirror. NOTE: This must not include // the container image name or any tags. SourceRepo string `json:"sourceRepo,requred"` // DestRepos is a URL resource as above, which is used to // push mirrored container images. DestRepo string `json:"destRepo,required"` // ImageName is the name of the image without tag (e.g. cuda). ImageName string `json:"imageName,required"` // Pattern matches the tags which should be mirrored, and supports // serveral formats (semver:, glob:, regex:, etc.). Note these were // copied from Flux for better interopability and ease of use. Cf. // https://github.com/fluxcd/flux/blob/v1.19.0/pkg/policy/pattern.go // If pattern is omitted then the operator will stop mirroring. Pattern string `json:"pattern,omitempty"` // SourceSecretName is name of the secret in the same namespace, // containing a token to authenticate with the source repository. SourceSecretName string `json:"sourceSecretName,omitempty"` // DestSecretName is name of the secret in the same namespace, // containing a token to authenticate with the destination repository. DestSecretName string `json:"destSecretName,omitempty"` }
ImageMirrorSpec defines the desired state of ImageMirror
func (*ImageMirrorSpec) DeepCopy ¶
func (in *ImageMirrorSpec) DeepCopy() *ImageMirrorSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageMirrorSpec.
func (*ImageMirrorSpec) DeepCopyInto ¶
func (in *ImageMirrorSpec) DeepCopyInto(out *ImageMirrorSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ImageMirrorStatus ¶
type ImageMirrorStatus struct { // MirroredTags is a slice of tags which have already been mirrored. MirroredTags []string `json:"mirroredTags"` }
ImageMirrorStatus defines the observed state of ImageMirror
func (*ImageMirrorStatus) DeepCopy ¶
func (in *ImageMirrorStatus) DeepCopy() *ImageMirrorStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageMirrorStatus.
func (*ImageMirrorStatus) DeepCopyInto ¶
func (in *ImageMirrorStatus) DeepCopyInto(out *ImageMirrorStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.