v1alpha1

package
v0.0.0-...-320b000 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the cache v1alpha1 API group +kubebuilder:object:generate=true +groupName=cache.converged-computing.github.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "cache.converged-computing.github.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
)

Functions

func NewMutatingWebhook

func NewMutatingWebhook(mgr manager.Manager) *sidecarInjector

NewMutatingWebhook allows us to keep the sidecarInjector private If it's public it's exported and kubebuilder tries to add to zz_generated_deepcopy and you get all kinds of terrible errors about admission.Decoder missing DeepCopyInto

Types

type OrasCache

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

	Spec   OrasCacheSpec   `json:"spec,omitempty"`
	Status OrasCacheStatus `json:"status,omitempty"`
}

OrasCache is the Schema for the orascaches API

func (*OrasCache) DeepCopy

func (in *OrasCache) DeepCopy() *OrasCache

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

func (*OrasCache) DeepCopyInto

func (in *OrasCache) DeepCopyInto(out *OrasCache)

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

func (*OrasCache) DeepCopyObject

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

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

func (*OrasCache) Validate

func (o *OrasCache) Validate() bool

Validate a requested metricset

type OrasCacheList

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

OrasCacheList contains a list of OrasCache

func (*OrasCacheList) DeepCopy

func (in *OrasCacheList) DeepCopy() *OrasCacheList

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

func (*OrasCacheList) DeepCopyInto

func (in *OrasCacheList) DeepCopyInto(out *OrasCacheList)

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

func (*OrasCacheList) DeepCopyObject

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

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

type OrasCacheSpec

type OrasCacheSpec struct {

	// Image is the oras registry to deploy
	// +kubebuilder:default="ghcr.io/oras-project/registry:latest"
	// +default="ghcr.io/oras-project/registry:latest"
	// +optional
	Image string `json:"image"`

	// Names of secrets for the operator
	// +optional
	Secrets Secrets `json:"secrets"`

	// Skip deploying the registry (stateful set) implying all references
	// are for a remote (existing) registry
	// +kubebuilder:default=true
	// +default=true
	// +optional
	Deploy bool `json:"deploy"`
}

OrasCacheSpec defines the desired state of OrasCache

func (*OrasCacheSpec) DeepCopy

func (in *OrasCacheSpec) DeepCopy() *OrasCacheSpec

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

func (*OrasCacheSpec) DeepCopyInto

func (in *OrasCacheSpec) DeepCopyInto(out *OrasCacheSpec)

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

type OrasCacheStatus

type OrasCacheStatus struct {
}

OrasCacheStatus defines the observed state of OrasCache

func (*OrasCacheStatus) DeepCopy

func (in *OrasCacheStatus) DeepCopy() *OrasCacheStatus

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

func (*OrasCacheStatus) DeepCopyInto

func (in *OrasCacheStatus) DeepCopyInto(out *OrasCacheStatus)

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

type Secrets

type Secrets struct {

	// Secrets for the environment for the ORAS operator sidecar pod to push
	// e.g., oras pull -u username -p password myregistry.io/myimage:latest
	// This should have ORAS_USER and ORAS_PASS
	// +optional
	OrasEnv string `json:"orasEnv"`

	// Secret for the registry REGISTRY_HTTP_SECRET
	// +optional
	RegistryHttp string `json:"registryHttp"`
}

func (*Secrets) DeepCopy

func (in *Secrets) DeepCopy() *Secrets

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

func (*Secrets) DeepCopyInto

func (in *Secrets) DeepCopyInto(out *Secrets)

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

Jump to

Keyboard shortcuts

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