v1alpha1

package
v0.0.0-...-8a308ef Latest Latest
Warning

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

Go to latest
Published: May 15, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the config.registry v1alpha1 API group +kubebuilder:object:generate=true +groupName=config.registry.runtime.copilot.io

Index

Constants

View Source
const (
	RuntimeTypeDocker     RuntimeType = "docker"
	RuntimeTypeContainerd RuntimeType = "containerd"
	RuntimeTypeCrio       RuntimeType = "crio"
	RuntimeTypeUnknown    RuntimeType = "unknown"

	CapabilitieTypePull    CapabilitieType = "pull"
	CapabilitieTypePush    CapabilitieType = "push"
	CapabilitieTypeResolve CapabilitieType = "resolve"

	StatusStateSuccess StatusState = "Success"
	StatusStateFailed  StatusState = "Failed"
	StatusStateRunning StatusState = "Running"
	StatusStateUnknown StatusState = "Unknown"

	ConditionTypeWriteDataError ConditionType = "WriteDataError"
	ConditionTypeReadDataError  ConditionType = "ReadDataError"

	// MaxRetryNum is the max retry num
	MaxRetryNum = 3
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "config.registry.runtime.copilot.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

This section is empty.

Types

type CapabilitieType

type CapabilitieType string

CapabilitieType is the type of capability

func (CapabilitieType) String

func (ct CapabilitieType) String() string

type ConditionType

type ConditionType string

ConditionType is the type of condition

type NodeHostConfigsSpec

type NodeHostConfigsSpec struct {
	RetryNum    int                      `json:"retry_num,omitempty"`
	HostConfigs []NodeRegistryHostConfig `json:"hostConfigs"`
}

NodeHostConfigsSpec defines the host config for the registry

func (*NodeHostConfigsSpec) DeepCopy

func (in *NodeHostConfigsSpec) DeepCopy() *NodeHostConfigsSpec

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

func (*NodeHostConfigsSpec) DeepCopyInto

func (in *NodeHostConfigsSpec) DeepCopyInto(out *NodeHostConfigsSpec)

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

type NodeRegistryConfigs

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

	Spec   NodeRegistryConfigsSpec   `json:"spec,omitempty"`
	Status NodeRegistryConfigsStatus `json:"status,omitempty"`
}

NodeRegistryConfigs is the Schema for the noderegistryconfigs API

func (*NodeRegistryConfigs) DeepCopy

func (in *NodeRegistryConfigs) DeepCopy() *NodeRegistryConfigs

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

func (*NodeRegistryConfigs) DeepCopyInto

func (in *NodeRegistryConfigs) DeepCopyInto(out *NodeRegistryConfigs)

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

func (*NodeRegistryConfigs) DeepCopyObject

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

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

type NodeRegistryConfigsList

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

NodeRegistryConfigsList contains a list of NodeRegistryConfigs

func (*NodeRegistryConfigsList) DeepCopy

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

func (*NodeRegistryConfigsList) DeepCopyInto

func (in *NodeRegistryConfigsList) DeepCopyInto(out *NodeRegistryConfigsList)

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

func (*NodeRegistryConfigsList) DeepCopyObject

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

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

type NodeRegistryConfigsSpec

type NodeRegistryConfigsSpec struct {

	// NodeName is registry config exec node name
	NodeName string `json:"nodeName"`
	// Type is runtime type
	Type RuntimeType `json:"type"`
	// set retry num
	RetryNum int `json:"retry_num,omitempty"`
	// HostConfigs store the per-host configuration
	HostConfigs []NodeRegistryHostConfig `json:"hostConfigs,omitempty"`
}

NodeRegistryConfigsSpec defines the desired state of NodeRegistryConfigs

func (*NodeRegistryConfigsSpec) DeepCopy

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

func (*NodeRegistryConfigsSpec) DeepCopyInto

func (in *NodeRegistryConfigsSpec) DeepCopyInto(out *NodeRegistryConfigsSpec)

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

type NodeRegistryConfigsStatus

type NodeRegistryConfigsStatus struct {
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	Conditions []metav1.Condition `json:"conditions,omitempty"`
	State      StatusState        `json:"state,omitempty"`
	RetryNum   int                `json:"retry_num,omitempty"`
}

NodeRegistryConfigsStatus defines the observed state of NodeRegistryConfigs

func (*NodeRegistryConfigsStatus) DeepCopy

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

func (*NodeRegistryConfigsStatus) DeepCopyInto

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

type NodeRegistryHostConfig

type NodeRegistryHostConfig struct {
	// Server specifies the default server. When `host` is
	// also specified, those hosts are tried first.
	Server       string            `json:"server,omitempty"`
	Capabilities []CapabilitieType `json:"capabilities"`
	SkipVerify   *bool             `json:"skip_verify,omitempty"`
	Header       map[string]string `json:"header,omitempty"`
	OverridePath bool              `json:"override_path,omitempty"`
	CaSecretRef  string            `json:"ca_secret_ref,omitempty"`
}

func (*NodeRegistryHostConfig) DeepCopy

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

func (*NodeRegistryHostConfig) DeepCopyInto

func (in *NodeRegistryHostConfig) DeepCopyInto(out *NodeRegistryHostConfig)

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

type RegistryConfigs

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

	Spec   RegistryConfigsSpec   `json:"spec,omitempty"`
	Status RegistryConfigsStatus `json:"status,omitempty"`
}

RegistryConfigs is the Schema for the registryconfigs API

func (*RegistryConfigs) DeepCopy

func (in *RegistryConfigs) DeepCopy() *RegistryConfigs

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

func (*RegistryConfigs) DeepCopyInto

func (in *RegistryConfigs) DeepCopyInto(out *RegistryConfigs)

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

func (*RegistryConfigs) DeepCopyObject

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

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

type RegistryConfigsList

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

RegistryConfigsList contains a list of RegistryConfigs

func (*RegistryConfigsList) DeepCopy

func (in *RegistryConfigsList) DeepCopy() *RegistryConfigsList

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

func (*RegistryConfigsList) DeepCopyInto

func (in *RegistryConfigsList) DeepCopyInto(out *RegistryConfigsList)

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

func (*RegistryConfigsList) DeepCopyObject

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

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

type RegistryConfigsSpec

type RegistryConfigsSpec struct {

	// Selector is used to select nodes that will be configured
	Selector metav1.LabelSelector    `json:"selector,omitempty"`
	Template RegistryConfigsTemplate `json:"template,omitempty"`
}

RegistryConfigsSpec defines the desired state of RegistryConfigs

func (*RegistryConfigsSpec) DeepCopy

func (in *RegistryConfigsSpec) DeepCopy() *RegistryConfigsSpec

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

func (*RegistryConfigsSpec) DeepCopyInto

func (in *RegistryConfigsSpec) DeepCopyInto(out *RegistryConfigsSpec)

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

type RegistryConfigsStatus

type RegistryConfigsStatus struct {
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	State        StatusState  `json:"state,omitempty"`
	TotalNodes   []RuntimeNum `json:"total_nodes,omitempty"`
	SuccessNodes []RuntimeNum `json:"success_nodes,omitempty"`
	FailedNodes  []RuntimeNum `json:"failed_nodes,omitempty"`
	RunningNodes []RuntimeNum `json:"running_nodes,omitempty"`
}

RegistryConfigsStatus defines the observed state of RegistryConfigs

func (*RegistryConfigsStatus) DeepCopy

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

func (*RegistryConfigsStatus) DeepCopyInto

func (in *RegistryConfigsStatus) DeepCopyInto(out *RegistryConfigsStatus)

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

type RegistryConfigsTemplate

type RegistryConfigsTemplate struct {
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              NodeHostConfigsSpec `json:"spec"`
}

RegistryConfigsTemplate defines the template for the registry config

func (*RegistryConfigsTemplate) DeepCopy

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

func (*RegistryConfigsTemplate) DeepCopyInto

func (in *RegistryConfigsTemplate) DeepCopyInto(out *RegistryConfigsTemplate)

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

type RuntimeNum

type RuntimeNum struct {
	RuntimeType RuntimeType `json:"runtimeType,omitempty"`
	Num         int         `json:"num,omitempty"`
}

func (*RuntimeNum) DeepCopy

func (in *RuntimeNum) DeepCopy() *RuntimeNum

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

func (*RuntimeNum) DeepCopyInto

func (in *RuntimeNum) DeepCopyInto(out *RuntimeNum)

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

type RuntimeType

type RuntimeType string

RuntimeType is the type of runtime

func (RuntimeType) String

func (rt RuntimeType) String() string

type StatusState

type StatusState string

StatusState is the state of status

func (StatusState) String

func (ss StatusState) String() string

Jump to

Keyboard shortcuts

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