v1alpha1

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2021 License: EPL-2.0 Imports: 7 Imported by: 7

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the controller v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=controller.devfile.io

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

Index

Constants

This section is empty.

Variables

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

type CheWorkspaceCommand struct {
	// Name of the command
	Name string `json:"name"`
	// Type of the command
	Type string `json:"type"`
	// String representing the commandline to be executed
	CommandLine string `json:"commandLine"`
	// Attributes for command
	Attributes map[string]string `json:"attributes,omitempty"`
}

Command to add to workspace

func (*CheWorkspaceCommand) DeepCopy

func (in *CheWorkspaceCommand) DeepCopy() *CheWorkspaceCommand

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

func (*CheWorkspaceCommand) DeepCopyInto

func (in *CheWorkspaceCommand) DeepCopyInto(out *CheWorkspaceCommand)

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

type CheWorkspaceMachine

type CheWorkspaceMachine struct {
	Attributes map[string]string             `json:"attributes,omitempty"`
	Servers    map[string]CheWorkspaceServer `json:"servers,omitempty"`
	Status     *CheWorkspaceMachineEventType `json:"status,omitempty"`
}

func (*CheWorkspaceMachine) DeepCopy

func (in *CheWorkspaceMachine) DeepCopy() *CheWorkspaceMachine

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

func (*CheWorkspaceMachine) DeepCopyInto

func (in *CheWorkspaceMachine) DeepCopyInto(out *CheWorkspaceMachine)

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

type CheWorkspaceMachineEventType

type CheWorkspaceMachineEventType string
const (
	FailedMachineEventType   CheWorkspaceMachineEventType = "FAILED"
	RunningMachineEventType  CheWorkspaceMachineEventType = "RUNNING"
	StartingMachineEventType CheWorkspaceMachineEventType = "STARTING"
	StoppedMachineEventType  CheWorkspaceMachineEventType = "STOPPED"
)

type CheWorkspaceRuntime

type CheWorkspaceRuntime struct {
	ActiveEnv    string                         `json:"activeEnv,omitempty"`
	Commands     []CheWorkspaceCommand          `json:"commands,omitempty"`
	Machines     map[string]CheWorkspaceMachine `json:"machines,omitempty"`
	MachineToken string                         `json:"machineToken,omitempty"`
	Owner        string                         `json:"owner,omitempty"`
	Warnings     []CheWorkspaceWarning          `json:"warnings,omitempty"`
}

Runtime objects that is supposed to be serialized into additionalInfo of WorkspaceStatus and then propagated to Workspace Components via Che Rest API Emulator

func (*CheWorkspaceRuntime) DeepCopy

func (in *CheWorkspaceRuntime) DeepCopy() *CheWorkspaceRuntime

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

func (*CheWorkspaceRuntime) DeepCopyInto

func (in *CheWorkspaceRuntime) DeepCopyInto(out *CheWorkspaceRuntime)

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

type CheWorkspaceServer

type CheWorkspaceServer struct {
	Attributes map[string]string        `json:"attributes,omitempty"`
	Status     CheWorkspaceServerStatus `json:"status"`
	URL        string                   `json:"url,omitempty"`
}

func (*CheWorkspaceServer) DeepCopy

func (in *CheWorkspaceServer) DeepCopy() *CheWorkspaceServer

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

func (*CheWorkspaceServer) DeepCopyInto

func (in *CheWorkspaceServer) DeepCopyInto(out *CheWorkspaceServer)

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

type CheWorkspaceServerStatus

type CheWorkspaceServerStatus string
const (
	StoppedServerStatus CheWorkspaceServerStatus = "STOPPED"
	RunningServerStatus CheWorkspaceServerStatus = "RUNNING"
	UnknownServerStatus CheWorkspaceServerStatus = "UNKNOWN"
)

type CheWorkspaceWarning

type CheWorkspaceWarning struct {
	Code    float64 `json:"code,omitempty"`
	Message string  `json:"message,omitempty"`
}

func (*CheWorkspaceWarning) DeepCopy

func (in *CheWorkspaceWarning) DeepCopy() *CheWorkspaceWarning

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

func (*CheWorkspaceWarning) DeepCopyInto

func (in *CheWorkspaceWarning) DeepCopyInto(out *CheWorkspaceWarning)

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

type CommandActionSpec

type CommandActionSpec struct {
	Command          string `json:"command,omitempty" yaml:"command,omitempty"`                   // The actual action command-line string
	Component        string `json:"component,omitempty" yaml:"component,omitempty"`               // Describes component to which given action relates
	Type             string `json:"type" yaml:"type"`                                             // Describes action type
	Workdir          string `json:"workdir,omitempty" yaml:"workdir,omitempty"`                   // Working directory where the command should be executed
	Reference        string `json:"reference,omitempty" yaml:"reference,omitempty"`               // Working directory where the command should be executed
	ReferenceContent string `json:"referenceContent,omitempty" yaml:"referenceContent,omitempty"` // Working directory where the command should be executed
}

func (*CommandActionSpec) DeepCopy

func (in *CommandActionSpec) DeepCopy() *CommandActionSpec

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

func (*CommandActionSpec) DeepCopyInto

func (in *CommandActionSpec) DeepCopyInto(out *CommandActionSpec)

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

type CommandSpec

type CommandSpec struct {
	Actions    []CommandActionSpec `json:"actions,omitempty" yaml:"actions,omitempty"`       // List of the actions of given command. Now the only one command must be specified in list; but there are plans to implement supporting multiple actions commands.
	Attributes map[string]string   `json:"attributes,omitempty" yaml:"attributes,omitempty"` // Additional command attributes
	Name       string              `json:"name" yaml:"name"`                                 // Describes the name of the command. Should be unique per commands set.
}

func (*CommandSpec) DeepCopy

func (in *CommandSpec) DeepCopy() *CommandSpec

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

func (*CommandSpec) DeepCopyInto

func (in *CommandSpec) DeepCopyInto(out *CommandSpec)

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

type Component

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

	Spec   WorkspaceComponentSpec   `json:"spec,omitempty"`
	Status WorkspaceComponentStatus `json:"status,omitempty"`
}

Component is the Schema for the components API +k8s:openapi-gen=true +kubebuilder:subresource:status +kubebuilder:resource:path=components,scope=Namespaced

func (*Component) DeepCopy

func (in *Component) DeepCopy() *Component

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

func (*Component) DeepCopyInto

func (in *Component) DeepCopyInto(out *Component)

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

func (*Component) DeepCopyObject

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

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

type ComponentDescription

type ComponentDescription struct {
	// The name of the component
	Name string `json:"name"`
	// Additions to the workspace pod
	PodAdditions PodAdditions `json:"podAdditions"`
	// Additional metadata from devfile (e.g. attributes, commands)
	ComponentMetadata ComponentMetadata `json:"componentMetadata"`
}

Description of a devfile component's workspace additions

func (*ComponentDescription) DeepCopy

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

func (*ComponentDescription) DeepCopyInto

func (in *ComponentDescription) DeepCopyInto(out *ComponentDescription)

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

type ComponentList

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

ComponentList contains a list of Component

func (*ComponentList) DeepCopy

func (in *ComponentList) DeepCopy() *ComponentList

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

func (*ComponentList) DeepCopyInto

func (in *ComponentList) DeepCopyInto(out *ComponentList)

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

func (*ComponentList) DeepCopyObject

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

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

type ComponentMetadata

type ComponentMetadata struct {
	// Containers is a map of container names to ContainerDescriptions. Field is serialized into workspace status "additionalFields"
	// and consumed by che-rest-apis
	Containers map[string]ContainerDescription `json:"containers,omitempty"`
	// ContributedRuntimeCommands represent the devfile commands available in the current workspace. They are serialized into the
	// workspace status "additionalFields" and consumed by che-rest-apis.
	ContributedRuntimeCommands []CheWorkspaceCommand `json:"contributedRuntimeCommands,omitempty"`
	// Endpoints stores the workspace endpoints defined by the component
	Endpoints []devworkspace.Endpoint `json:"endpoints,omitempty"`
}

func (*ComponentMetadata) DeepCopy

func (in *ComponentMetadata) DeepCopy() *ComponentMetadata

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

func (*ComponentMetadata) DeepCopyInto

func (in *ComponentMetadata) DeepCopyInto(out *ComponentMetadata)

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

type ComponentSpec

type ComponentSpec struct {
	Type  ComponentType `json:"type" yaml:"type"`                       // Describes type of the component, e.g. whether it is an plugin or editor or other type
	Alias string        `json:"alias,omitempty" yaml:"alias,omitempty"` // Describes the name of the component. Should be unique per component set.

	Id string `json:"id,omitempty" yaml:"id,omitempty"` // Describes the component FQN

	Reference string `json:"reference,omitempty" yaml:"reference,omitempty"` // Describes location of Kubernetes list yaml file. Applicable only for 'kubernetes' and; 'openshift' type components

	Image        string     `json:"image,omitempty" yaml:"image,omitempty"`               // Specifies the docker image that should be used for component
	MemoryLimit  string     `json:"memoryLimit,omitempty" yaml:"memoryLimit,omitempty"`   // Describes memory limit for the component. You can express memory as a plain integer or as a; fixed-point integer using one of these suffixes: E, P, T, G, M, K. You can also use the; power-of-two equivalents: Ei, Pi, Ti, Gi, Mi, Ki
	MountSources bool       `json:"mountSources,omitempty" yaml:"mountSources,omitempty"` // Describes whether projects sources should be mount to the component. `CHE_PROJECTS_ROOT`; environment variable should contains a path where projects sources are mount
	Endpoints    []Endpoint `json:"endpoints,omitempty" yaml:"endpoints,omitempty"`       // Describes dockerimage component endpoints
	Env          []Env      `json:"env,omitempty" yaml:"env,omitempty"`                   // The environment variables list that should be set to docker container
	Volumes      []Volume   `json:"volumes,omitempty" yaml:"volumes,omitempty"`           // Describes volumes which should be mount to component
	Command      []string   `json:"command,omitempty" yaml:"command,omitempty"`           // The command to run in the dockerimage component instead of the default one provided in the image. Defaults to null, meaning use whatever is defined in the image.
	Args         []string   `json:"args,omitempty" yaml:"args,omitempty"`                 // The arguments to supply to the command running the dockerimage component. The arguments are supplied either to the default command provided in the image or to the overridden command. Defaults to null, meaning use whatever is defined in the image.

	ReferenceContent *string           `json:"referenceContent,omitempty" yaml:"referenceContent,omitempty"` // Inlined content of a file specified in field 'local'
	Selector         map[string]string `json:"selector,omitempty" yaml:"selector,omitempty"`                 // Describes the objects selector for the recipe type components. Allows to pick-up only selected; items from k8s/openshift list
}

func (*ComponentSpec) DeepCopy

func (in *ComponentSpec) DeepCopy() *ComponentSpec

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

func (*ComponentSpec) DeepCopyInto

func (in *ComponentSpec) DeepCopyInto(out *ComponentSpec)

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

type ComponentType

type ComponentType string
const (
	CheEditor   ComponentType = "cheEditor"
	ChePlugin   ComponentType = "chePlugin"
	Dockerimage ComponentType = "dockerimage"
	Kubernetes  ComponentType = "kubernetes"
	Openshift   ComponentType = "openshift"
)

type ContainerDescription

type ContainerDescription struct {
	// Attributes stores the Che-specific metadata about a component, e.g. a plugin's ID, memoryLimit from devfile, etc.
	Attributes map[string]string `json:"attributes,omitempty"`
	// Ports stores the list of ports exposed by this container.
	Ports []int `json:"ports,omitempty"`
}

ContainerDescription stores metadata about workspace containers. This is used to provide information to Theia via the che-rest-apis container.

func (*ContainerDescription) DeepCopy

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

func (*ContainerDescription) DeepCopyInto

func (in *ContainerDescription) DeepCopyInto(out *ContainerDescription)

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

type DevfileAttributes

type DevfileAttributes struct {
	PersistVolumes bool `json:"persistVolumes,omitempty" yaml:"persistVolumes,omitempty"`
	EditorFree     bool `json:"editorFree,omitempty" yaml:"editorFree,omitempty"`
}

func (*DevfileAttributes) DeepCopy

func (in *DevfileAttributes) DeepCopy() *DevfileAttributes

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

func (*DevfileAttributes) DeepCopyInto

func (in *DevfileAttributes) DeepCopyInto(out *DevfileAttributes)

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

type DevfileMeta

type DevfileMeta struct {
	GenerateName string `json:"generateName,omitempty" yaml:"generateName,omitempty"`
	Name         string `json:"name,omitempty" yaml:"name,omitempty"`
}

func (*DevfileMeta) DeepCopy

func (in *DevfileMeta) DeepCopy() *DevfileMeta

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

func (*DevfileMeta) DeepCopyInto

func (in *DevfileMeta) DeepCopyInto(out *DevfileMeta)

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

type DevfileSpec

type DevfileSpec struct {
	// Devfile API version
	APIVersion string `json:"apiVersion,omitempty" yaml:"apiVersion,omitempty"`

	// Devfile metadata
	DevfileMeta `json:"metadata,omitempty" yaml:"metadata,omitempty"`

	// Devfile attributes, e.g. persistVolumes
	DevfileAttributes `json:"attributes,omitempty" yaml:"attributes,omitempty"`

	// List of projects that should be imported into the workspace
	Projects []ProjectSpec `json:"projects,omitempty" yaml:"projects,omitempty"` // Description of the projects, containing names and sources locations

	// List of components (editor, plugins, containers, ...) that will provide the workspace features
	Components []ComponentSpec `json:"components" yaml:"components"` // Description of the workspace components, such as editor and plugins

	// List of workspace-wide commands that can be associated to a given component, in order to run in the related container
	Commands []CommandSpec `json:"commands,omitempty" yaml:"commands,omitempty"` // Description of the predefined commands to be available in workspace
}

This schema describes the structure of the devfile object

func (*DevfileSpec) DeepCopy

func (in *DevfileSpec) DeepCopy() *DevfileSpec

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

func (*DevfileSpec) DeepCopyInto

func (in *DevfileSpec) DeepCopyInto(out *DevfileSpec)

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

type Endpoint

type Endpoint struct {
	Attributes map[EndpointAttribute]string `json:"attributes,omitempty" yaml:"attributes,omitempty"`
	Name       string                       `json:"name" yaml:"name"` // The endpoint name
	Port       int64                        `json:"port" yaml:"port"` // The endpoint port
}

Describes dockerimage component endpoint

func (*Endpoint) DeepCopy

func (in *Endpoint) DeepCopy() *Endpoint

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

func (*Endpoint) DeepCopyInto

func (in *Endpoint) DeepCopyInto(out *Endpoint)

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

type EndpointAttribute

type EndpointAttribute string
const (
	//endpoint attribute that is used to configure whether it should be available publicly or workspace only
	PUBLIC_ENDPOINT_ATTRIBUTE EndpointAttribute = "public"

	//endpoint attribute that is used to configure whether it should be covered with authentication or not
	SECURE_ENDPOINT_ATTRIBUTE EndpointAttribute = "secure"

	//endpoint attribute that indicates endpoint type
	//expected values: terminal, ide
	TYPE_ENDPOINT_ATTRIBUTE EndpointAttribute = "type"

	//endpoint attribute that indicates which protocol is used by backend application
	PROTOCOL_ENDPOINT_ATTRIBUTE EndpointAttribute = "protocol"

	//endpoint attribute that indicates which path should be used by default to access an application
	PATH_ENDPOINT_ATTRIBUTE EndpointAttribute = "path"

	DISCOVERABLE_ATTRIBUTE EndpointAttribute = "discoverable"
)

type EndpointList

type EndpointList []devworkspace.Endpoint

func (EndpointList) DeepCopy

func (in EndpointList) DeepCopy() EndpointList

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

func (EndpointList) DeepCopyInto

func (in EndpointList) DeepCopyInto(out *EndpointList)

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

type Env

type Env struct {
	Name  string `json:"name" yaml:"name"`   // The environment variable name
	Value string `json:"value" yaml:"value"` // The environment variable value
}

Describes environment variable

func (*Env) DeepCopy

func (in *Env) DeepCopy() *Env

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

func (*Env) DeepCopyInto

func (in *Env) DeepCopyInto(out *Env)

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

type ExposedEndpoint

type ExposedEndpoint struct {
	// Name of the exposed endpoint
	Name string `json:"name"`
	// Public URL of the exposed endpoint
	Url string `json:"url"`
	// Attributes of the exposed endpoint
	// +optional
	Attributes devfileAttr.Attributes `json:"attributes,omitempty"`
}

func (*ExposedEndpoint) DeepCopy

func (in *ExposedEndpoint) DeepCopy() *ExposedEndpoint

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

func (*ExposedEndpoint) DeepCopyInto

func (in *ExposedEndpoint) DeepCopyInto(out *ExposedEndpoint)

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

type ExposedEndpointList

type ExposedEndpointList []ExposedEndpoint

func (ExposedEndpointList) DeepCopy

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

func (ExposedEndpointList) DeepCopyInto

func (in ExposedEndpointList) DeepCopyInto(out *ExposedEndpointList)

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

type PodAdditions

type PodAdditions struct {
	// Annotations to be applied to workspace deployment
	// +optional
	// +patchMergeKey=name
	// +patchStrategy=merge
	Annotations map[string]string `json:"annotations,omitempty"`
	// Labels to be applied to workspace deployment
	// +optional
	// +patchMergeKey=name
	// +patchStrategy=merge
	Labels map[string]string `json:"labels,omitempty"`
	// Containers to add to workspace deployment
	// +optional
	// +patchMergeKey=name
	// +patchStrategy=merge
	Containers []v1.Container `json:"containers,omitempty"`
	// Init containers to add to workspace deployment
	// +optional
	// +patchMergeKey=name
	// +patchStrategy=merge
	InitContainers []v1.Container `json:"initContainers,omitempty"`
	// Volumes to add to workspace deployment
	// +optional
	// +patchMergeKey=name
	// +patchStrategy=merge
	Volumes []v1.Volume `json:"volumes,omitempty"`
	// VolumeMounts to add to all containers in a workspace deployment
	// +optional
	// +patchMergeKey=name
	// +patchStrategy=merge
	VolumeMounts []v1.VolumeMount `json:"volumeMounts,omitempty"`
	// ImagePullSecrets to add to workspace deployment
	// +optional
	// +patchMergeKey=name
	// +patchStrategy=merge
	PullSecrets []v1.LocalObjectReference `json:"pullSecrets,omitempty"`
	// Annotations for the workspace service account, it might be used for e.g. OpenShift oauth with SA as auth client
	// +optional
	// +patchMergeKey=name
	// +patchStrategy=merge
	ServiceAccountAnnotations map[string]string `json:"serviceAccountAnnotations,omitempty"`
}

Summary of additions that are to be merged into the main workspace deployment

func (*PodAdditions) DeepCopy

func (in *PodAdditions) DeepCopy() *PodAdditions

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

func (*PodAdditions) DeepCopyInto

func (in *PodAdditions) DeepCopyInto(out *PodAdditions)

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

type ProjectSourceSpec

type ProjectSourceSpec struct {
	Location string `json:"location" yaml:"location"` // Project's source location address. Should be URL for git and github located projects, or; file:// for zip.
	Type     string `json:"type" yaml:"type"`         // Project's source type.
}

Describes the project's source - type and location

func (*ProjectSourceSpec) DeepCopy

func (in *ProjectSourceSpec) DeepCopy() *ProjectSourceSpec

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

func (*ProjectSourceSpec) DeepCopyInto

func (in *ProjectSourceSpec) DeepCopyInto(out *ProjectSourceSpec)

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

type ProjectSpec

type ProjectSpec struct {
	Name      string            `json:"name" yaml:"name"`
	Source    ProjectSourceSpec `json:"source" yaml:"source"` // Describes the project's source - type and location
	ClonePath string            `json:"clonePath" yaml:"clonePath"`
}

func (*ProjectSpec) DeepCopy

func (in *ProjectSpec) DeepCopy() *ProjectSpec

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

func (*ProjectSpec) DeepCopyInto

func (in *ProjectSpec) DeepCopyInto(out *ProjectSpec)

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

type Volume

type Volume struct {
	ContainerPath string `json:"containerPath" yaml:"containerPath"`
	Name          string `json:"name" yaml:"name"` // The volume name. If several components mount the same volume then they will reuse the volume; and will be able to access to the same files
}

Describe volume that should be mount to component

func (*Volume) DeepCopy

func (in *Volume) DeepCopy() *Volume

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

func (*Volume) DeepCopyInto

func (in *Volume) DeepCopyInto(out *Volume)

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

type WorkspaceComponentSpec

type WorkspaceComponentSpec struct {
	// Id of workspace that contains this component
	WorkspaceId string `json:"workspaceId"`
	// List of devfile components to be processed by this component
	Components []devworkspace.Component `json:"components"`
	// Commands from devfile, to be matched to components
	Commands []devworkspace.Command `json:"commands,omitempty"`
	// Events
	Events *devworkspace.Events `json:"events,omitempty"`
}

ComponentSpec defines the desired state of Component +k8s:openapi-gen=true

func (*WorkspaceComponentSpec) DeepCopy

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

func (*WorkspaceComponentSpec) DeepCopyInto

func (in *WorkspaceComponentSpec) DeepCopyInto(out *WorkspaceComponentSpec)

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

type WorkspaceComponentStatus

type WorkspaceComponentStatus struct {
	// Ready indicates whether the component has finished processing its spec
	Ready bool `json:"ready"`
	// Failed indicates that an unresolvable problem prevents this component
	// from being ready.
	Failed bool `json:"failed,omitempty"`
	// Message stores additional context about the Component's current state (e.g.
	// reason for failure)
	Message string `json:"message,omitempty"`
	// ComponentDescriptions of processed components from spec
	ComponentDescriptions []ComponentDescription `json:"componentDescriptions,omitempty"`
}

ComponentStatus defines the observed state of Component +k8s:openapi-gen=true

func (*WorkspaceComponentStatus) DeepCopy

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

func (*WorkspaceComponentStatus) DeepCopyInto

func (in *WorkspaceComponentStatus) DeepCopyInto(out *WorkspaceComponentStatus)

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

type WorkspaceRouting

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

	Spec   WorkspaceRoutingSpec   `json:"spec,omitempty"`
	Status WorkspaceRoutingStatus `json:"status,omitempty"`
}

WorkspaceRouting is the Schema for the workspaceroutings API +k8s:openapi-gen=true +kubebuilder:subresource:status +kubebuilder:resource:path=workspaceroutings,scope=Namespaced

func (*WorkspaceRouting) DeepCopy

func (in *WorkspaceRouting) DeepCopy() *WorkspaceRouting

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

func (*WorkspaceRouting) DeepCopyInto

func (in *WorkspaceRouting) DeepCopyInto(out *WorkspaceRouting)

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

func (*WorkspaceRouting) DeepCopyObject

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

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

type WorkspaceRoutingClass

type WorkspaceRoutingClass string
const (
	WorkspaceRoutingBasic          WorkspaceRoutingClass = "basic"
	WorkspaceRoutingOpenShiftOauth WorkspaceRoutingClass = "openshift-oauth"
	WorkspaceRoutingCluster        WorkspaceRoutingClass = "cluster"
	WorkspaceRoutingClusterTLS     WorkspaceRoutingClass = "cluster-tls"
	WorkspaceRoutingWebTerminal    WorkspaceRoutingClass = "web-terminal"
)

type WorkspaceRoutingList

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

WorkspaceRoutingList contains a list of WorkspaceRouting

func (*WorkspaceRoutingList) DeepCopy

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

func (*WorkspaceRoutingList) DeepCopyInto

func (in *WorkspaceRoutingList) DeepCopyInto(out *WorkspaceRoutingList)

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

func (*WorkspaceRoutingList) DeepCopyObject

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

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

type WorkspaceRoutingPhase

type WorkspaceRoutingPhase string

Valid phases for workspacerouting

const (
	RoutingReady     WorkspaceRoutingPhase = "Ready"
	RoutingPreparing WorkspaceRoutingPhase = "Preparing"
	RoutingFailed    WorkspaceRoutingPhase = "Failed"
)

type WorkspaceRoutingSpec

type WorkspaceRoutingSpec struct {
	// WorkspaceId for the workspace being routed
	WorkspaceId string `json:"workspaceId"`
	// Class of the routing: this drives which Workspace Routing controller will manage this routing
	RoutingClass WorkspaceRoutingClass `json:"routingClass,omitempty"`
	// Routing suffix for cluster
	RoutingSuffix string `json:"routingSuffix"`
	// Machines to endpoints map
	Endpoints map[string]EndpointList `json:"endpoints"`
	// Selector that should be used by created services to point to the workspace Pod
	PodSelector map[string]string `json:"podSelector"`
}

WorkspaceRoutingSpec defines the desired state of WorkspaceRouting +k8s:openapi-gen=true

func (*WorkspaceRoutingSpec) DeepCopy

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

func (*WorkspaceRoutingSpec) DeepCopyInto

func (in *WorkspaceRoutingSpec) DeepCopyInto(out *WorkspaceRoutingSpec)

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

type WorkspaceRoutingStatus

type WorkspaceRoutingStatus struct {
	// Additions to main workspace deployment
	PodAdditions *PodAdditions `json:"podAdditions,omitempty"`
	// Machine name to exposed endpoint map
	ExposedEndpoints map[string]ExposedEndpointList `json:"exposedEndpoints,omitempty"`
	// Routing reconcile phase
	Phase WorkspaceRoutingPhase `json:"phase,omitempty"`
}

WorkspaceRoutingStatus defines the observed state of WorkspaceRouting +k8s:openapi-gen=true

func (*WorkspaceRoutingStatus) DeepCopy

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

func (*WorkspaceRoutingStatus) DeepCopyInto

func (in *WorkspaceRoutingStatus) DeepCopyInto(out *WorkspaceRoutingStatus)

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