v1alpha1

package
v0.0.0-...-07c265d Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the netcon v1alpha1 API group +kubebuilder:object:generate=true +groupName=netcon.janog.gr.jp

Index

Constants

View Source
const (
	ProblemEnvironmentEventScheduled string = "Scheduled"
	ProblemEnvironmentEventDeploying string = "Deploying"
	ProblemEnvironmentEventDeployed  string = "Deployed"
	ProblemEnvironmentEventAssigned  string = "Assigned"
	ProblemEnvironmentEventReady     string = "Ready"
	ProblemEnvironmentEventNotReady  string = "NotReady"
)
View Source
const (
	WorkerEventReady    string = "Ready"
	WorkerEventNotReady string = "NotReady"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "netcon.janog.gr.jp", 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 ConfigMapFileSource

type ConfigMapFileSource struct {
	Key  string `json:"key"`
	Name string `json:"name"`
}

func (*ConfigMapFileSource) DeepCopy

func (in *ConfigMapFileSource) DeepCopy() *ConfigMapFileSource

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

func (*ConfigMapFileSource) DeepCopyInto

func (in *ConfigMapFileSource) DeepCopyInto(out *ConfigMapFileSource)

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

type ContainerStatus

type ContainerStatus struct {
	Name                string `json:"name" yaml:"name"`
	Image               string `json:"image" yaml:"image"`
	ContainerID         string `json:"containerID" yaml:"containerID"`
	ContainerName       string `json:"containerName" yaml:"containerName"`
	Ready               bool   `json:"ready" yaml:"ready"`
	ManagementIPAddress string `json:"managementIPAddress" yaml:"managementIPAddress"`
}

func (*ContainerStatus) DeepCopy

func (in *ContainerStatus) DeepCopy() *ContainerStatus

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

func (*ContainerStatus) DeepCopyInto

func (in *ContainerStatus) DeepCopyInto(out *ContainerStatus)

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

type FileSource

type FileSource struct {
	ConfigMapRef ConfigMapFileSource `json:"configMapRef" yaml:"configMapRef"`
}

func (*FileSource) DeepCopy

func (in *FileSource) DeepCopy() *FileSource

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

func (*FileSource) DeepCopyInto

func (in *FileSource) DeepCopyInto(out *FileSource)

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

type Problem

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

	Spec   ProblemSpec   `json:"spec,omitempty" yaml:"spec,omitempty"`
	Status ProblemStatus `json:"status,omitempty" yaml:"status,omitempty"`
}

Problem is the Schema for the problems API

func (*Problem) DeepCopy

func (in *Problem) DeepCopy() *Problem

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

func (*Problem) DeepCopyInto

func (in *Problem) DeepCopyInto(out *Problem)

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

func (*Problem) DeepCopyObject

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

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

func (*Problem) Default

func (r *Problem) Default()

Default implements webhook.Defaulter so a webhook will be registered for the type

func (*Problem) SetupWebhookWithManager

func (r *Problem) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*Problem) ValidateCreate

func (r *Problem) ValidateCreate() (admission.Warnings, error)

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*Problem) ValidateDelete

func (r *Problem) ValidateDelete() (admission.Warnings, error)

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*Problem) ValidateUpdate

func (r *Problem) ValidateUpdate(old runtime.Object) (admission.Warnings, error)

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type ProblemEnvironment

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

	Spec   ProblemEnvironmentSpec   `json:"spec,omitempty" yaml:"spec,omitempty"`
	Status ProblemEnvironmentStatus `json:"status,omitempty" yaml:"status,omitempty"`
}

ProblemEnvironment is the Schema for the problemenvironments API

func (*ProblemEnvironment) DeepCopy

func (in *ProblemEnvironment) DeepCopy() *ProblemEnvironment

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

func (*ProblemEnvironment) DeepCopyInto

func (in *ProblemEnvironment) DeepCopyInto(out *ProblemEnvironment)

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

func (*ProblemEnvironment) DeepCopyObject

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

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

func (*ProblemEnvironment) Default

func (r *ProblemEnvironment) Default()

Default implements webhook.Defaulter so a webhook will be registered for the type

func (*ProblemEnvironment) SetupWebhookWithManager

func (r *ProblemEnvironment) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*ProblemEnvironment) ValidateCreate

func (r *ProblemEnvironment) ValidateCreate() (admission.Warnings, error)

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*ProblemEnvironment) ValidateDelete

func (r *ProblemEnvironment) ValidateDelete() (admission.Warnings, error)

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*ProblemEnvironment) ValidateUpdate

func (r *ProblemEnvironment) ValidateUpdate(old runtime.Object) (admission.Warnings, error)

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type ProblemEnvironmentConditionType

type ProblemEnvironmentConditionType string
const (
	// Scheduled will be True when:
	// * ProblemEnvironment is scheduled
	// * Worker where ProblemEnvironment is scheduled exists
	ProblemEnvironmentConditionScheduled ProblemEnvironmentConditionType = "Scheduled"

	// Deployed will be True when:
	// * ProblemEnvironment is deployed on Worker
	ProblemEnvironmentConditionDeployed ProblemEnvironmentConditionType = "Deployed"

	// Ready will be True when:
	// * ProblemEnvironment is ready on Worker
	ProblemEnvironmentConditionReady ProblemEnvironmentConditionType = "Ready"

	// Assigned will be True when:
	// * ProblemEnvironment is assigned to some users
	ProblemEnvironmentConditionAssigned ProblemEnvironmentConditionType = "Assigned"
)

type ProblemEnvironmentList

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

ProblemEnvironmentList contains a list of ProblemEnvironment

func (*ProblemEnvironmentList) DeepCopy

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

func (*ProblemEnvironmentList) DeepCopyInto

func (in *ProblemEnvironmentList) DeepCopyInto(out *ProblemEnvironmentList)

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

func (*ProblemEnvironmentList) DeepCopyObject

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

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

type ProblemEnvironmentSpec

type ProblemEnvironmentSpec struct {
	// TopologyFile will be placed as `topology.yml`
	TopologyFile FileSource `json:"topologyFile" yaml:"topologyFile"`

	// ConfigFiles will be placed under the directory `config`
	ConfigFiles []FileSource `json:"configFiles,omitempty" yaml:"configFiles,omitempty"`

	WorkerName string `json:"workerName,omitempty" yaml:"workername,omitempty"`
}

ProblemEnvironmentSpec defines the desired state of ProblemEnvironment

func (*ProblemEnvironmentSpec) DeepCopy

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

func (*ProblemEnvironmentSpec) DeepCopyInto

func (in *ProblemEnvironmentSpec) DeepCopyInto(out *ProblemEnvironmentSpec)

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

type ProblemEnvironmentStatus

type ProblemEnvironmentStatus struct {
	Containers []ContainerStatus `json:"containers,omitempty" yaml:"containers,omitempty"`

	Password string `json:"password,omitempty" yaml:"password,omitempty"`

	Conditions []metav1.Condition `json:"conditions,omitempty" yaml:"conditions,omitempty"`
}

ProblemEnvironmentStatus defines the observed state of ProblemEnvironment

func (*ProblemEnvironmentStatus) DeepCopy

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

func (*ProblemEnvironmentStatus) DeepCopyInto

func (in *ProblemEnvironmentStatus) DeepCopyInto(out *ProblemEnvironmentStatus)

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

type ProblemEnvironmentTemplate

type ProblemEnvironmentTemplate struct {
	metav1.ObjectMeta `json:"metadata,omitempty" yaml:"metadata,omitempty"`

	Spec ProblemEnvironmentSpec `json:"spec,omitempty" yaml:"spec,omitempty"`
}

func (*ProblemEnvironmentTemplate) DeepCopy

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

func (*ProblemEnvironmentTemplate) DeepCopyInto

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

type ProblemList

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

ProblemList contains a list of Problem

func (*ProblemList) DeepCopy

func (in *ProblemList) DeepCopy() *ProblemList

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

func (*ProblemList) DeepCopyInto

func (in *ProblemList) DeepCopyInto(out *ProblemList)

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

func (*ProblemList) DeepCopyObject

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

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

type ProblemReplicas

type ProblemReplicas struct {
	// Total is the total number of ProblemEnvironments
	Total int `json:"total" yaml:"total"`

	// Scheduled is the number of ProblemEnvironments which is scheduled but not ready
	Scheduled int `json:"scheduled" yaml:"scheduled"`

	// Assignable is the number of ProblemEnvironments which is ready but not assigned
	Assignable int `json:"assignable" yaml:"assignable"`

	// Assigned is the number of ProblemEnvironments which is assigned
	Assigned int `json:"assigned" yaml:"assigned"`
}

func (*ProblemReplicas) DeepCopy

func (in *ProblemReplicas) DeepCopy() *ProblemReplicas

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

func (*ProblemReplicas) DeepCopyInto

func (in *ProblemReplicas) DeepCopyInto(out *ProblemReplicas)

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

type ProblemSpec

type ProblemSpec struct {
	Template *ProblemEnvironmentTemplate `json:"template" yaml:"template"`

	AssignableReplicas int `json:"assignableReplicas" yaml:"assignableReplicas"`
}

ProblemSpec defines the desired state of Problem

func (*ProblemSpec) DeepCopy

func (in *ProblemSpec) DeepCopy() *ProblemSpec

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

func (*ProblemSpec) DeepCopyInto

func (in *ProblemSpec) DeepCopyInto(out *ProblemSpec)

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

type ProblemStatus

type ProblemStatus struct {
	Replicas ProblemReplicas `json:"replicas" yaml:"replicas"`
}

ProblemStatus defines the observed state of Problem

func (*ProblemStatus) DeepCopy

func (in *ProblemStatus) DeepCopy() *ProblemStatus

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

func (*ProblemStatus) DeepCopyInto

func (in *ProblemStatus) DeepCopyInto(out *ProblemStatus)

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

type Worker

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

	Spec WorkerSpec `json:"spec,omitempty"`

	Status WorkerStatus `json:"status,omitempty"`
}

Worker is the Schema for the workers API

func (*Worker) DeepCopy

func (in *Worker) DeepCopy() *Worker

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

func (*Worker) DeepCopyInto

func (in *Worker) DeepCopyInto(out *Worker)

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

func (*Worker) DeepCopyObject

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

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

type WorkerConditionType

type WorkerConditionType string
const WorkerConditionReady WorkerConditionType = "Ready"

type WorkerInfo

type WorkerInfo struct {
	ExternalIPAddress string `json:"externalIPAddress"`
	ExternalPort      uint16 `json:"externalPort"`
	Hostname          string `json:"hostname"`
	MemoryUsedPercent string `json:"memoryUsedPercent"`
	CPUUsedPercent    string `json:"cpuUsedPercent"`
}

func (*WorkerInfo) DeepCopy

func (in *WorkerInfo) DeepCopy() *WorkerInfo

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

func (*WorkerInfo) DeepCopyInto

func (in *WorkerInfo) DeepCopyInto(out *WorkerInfo)

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

type WorkerList

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

WorkerList contains a list of Worker

func (*WorkerList) DeepCopy

func (in *WorkerList) DeepCopy() *WorkerList

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

func (*WorkerList) DeepCopyInto

func (in *WorkerList) DeepCopyInto(out *WorkerList)

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

func (*WorkerList) DeepCopyObject

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

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

type WorkerSpec

type WorkerSpec struct {
	DisableSchedule bool `json:"disableSchedule"`
}

WorkerStatus defines the desired state of Worker

func (*WorkerSpec) DeepCopy

func (in *WorkerSpec) DeepCopy() *WorkerSpec

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

func (*WorkerSpec) DeepCopyInto

func (in *WorkerSpec) DeepCopyInto(out *WorkerSpec)

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

type WorkerStatus

type WorkerStatus struct {
	WorkerInfo WorkerInfo `json:"workerInfo"`

	Conditions []metav1.Condition `json:"conditions,omitempty" yaml:"conditions,omitempty"`
}

WorkerStatus defines the observed state of Worker

func (*WorkerStatus) DeepCopy

func (in *WorkerStatus) DeepCopy() *WorkerStatus

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

func (*WorkerStatus) DeepCopyInto

func (in *WorkerStatus) DeepCopyInto(out *WorkerStatus)

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