v1alpha1

package
v1.1.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the kuik.enix.io v1alpha1 API group +kubebuilder:object:generate=true +groupName=kuik.enix.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "kuik.enix.io", 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
)
View Source
var RepositoryLabelName = "kuik.enix.io/repository"

Functions

This section is empty.

Types

type CachedImage

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

	Spec   CachedImageSpec   `json:"spec,omitempty"`
	Status CachedImageStatus `json:"status,omitempty"`
}

CachedImage is the Schema for the cachedimages API

type CachedImageList

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

CachedImageList contains a list of CachedImage

type CachedImageSpec

type CachedImageSpec struct {
	SourceImage string `json:"sourceImage"`
	// +optional
	ExpiresAt            *metav1.Time `json:"expiresAt,omitempty"`
	PullSecretNames      []string     `json:"pullSecretNames,omitempty"`
	PullSecretsNamespace string       `json:"pullSecretsNamespace,omitempty"`
}

CachedImageSpec defines the desired state of CachedImage

type CachedImageStatus

type CachedImageStatus struct {
	IsCached bool   `json:"isCached,omitempty"`
	UsedBy   UsedBy `json:"usedBy,omitempty" `
}

CachedImageStatus defines the observed state of CachedImage

type PodReference

type PodReference struct {
	NamespacedName string `json:"namespacedName,omitempty"`
}

type UsedBy

type UsedBy struct {
	Pods []PodReference `json:"pods,omitempty" patchStrategy:"merge" patchMergeKey:"namespacedName"`
	// jsonpath function .length() is not implemented, so the count field is required to display pods count in additionalPrinterColumns
	// see https://github.com/kubernetes-sigs/controller-tools/issues/447
	Count int `json:"count,omitempty"`
}

Jump to

Keyboard shortcuts

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