v1

package
v1.8.17 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

+kubebuilder:object:generate=true +groupName=rig.platform

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CapsuleSpecExtension

type CapsuleSpecExtension struct {
	metav1.TypeMeta `json:",inline"`
	// Image specifies what image the Capsule should run.
	Image string `json:"image" protobuf:"3"`

	// Command is run as a command in the shell. If left unspecified, the
	// container will run using what is specified as ENTRYPOINT in the
	// Dockerfile.
	Command string `json:"command,omitempty" protobuf:"4"`

	// Args is a list of arguments either passed to the Command or if Command
	// is left empty the arguments will be passed to the ENTRYPOINT of the
	// docker image.
	Args []string `json:"args,omitempty" protobuf:"5"`

	// Interfaces specifies the list of interfaces the the container should
	// have. Specifying interfaces will create the corresponding kubernetes
	// Services and Ingresses depending on how the interface is configured.
	Interfaces []v1alpha2.CapsuleInterface `json:"interfaces,omitempty" protobuf:"6"`

	// Files is a list of files to mount in the container. These can either be
	// based on ConfigMaps or Secrets.
	ConfigFiles []ConfigFile `json:"configFiles" protobuf:"7"`

	// Scale specifies the scaling of the Capsule.
	Scale v1alpha2.CapsuleScale `json:"scale,omitempty" protobuf:"8"`

	// NodeSelector is a selector for what nodes the Capsule should live on.
	NodeSelector map[string]string `json:"nodeSelector,omitempty" protobuf:"9"`

	CronJobs []v1alpha2.CronJob `json:"cronJobs,omitempty" protobuf:"10"`

	Annotations map[string]string `json:"annotations" protobuf:"11"`
}

func (*CapsuleSpecExtension) DeepCopy

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

func (*CapsuleSpecExtension) DeepCopyInto

func (in *CapsuleSpecExtension) DeepCopyInto(out *CapsuleSpecExtension)

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

type CapsuleStar

type CapsuleStar struct {
	metav1.TypeMeta `json:",inline"`
	// Name,Project is unique
	Name string `json:"name" protobuf:"3"`
	// Project references an existing Project2 type with the given name
	// Will throw an error (in the platform) if the project does not exist
	Project string `json:"project" protobuf:"4"`
	// Capsule-level defaults
	CapsuleBase  CapsuleSpecExtension            `json:"capsuleBase" protobuf:"5"`
	Environments map[string]CapsuleSpecExtension `json:"environments" protobuf:"6"`
}

func (*CapsuleStar) DeepCopy

func (in *CapsuleStar) DeepCopy() *CapsuleStar

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

func (*CapsuleStar) DeepCopyInto

func (in *CapsuleStar) DeepCopyInto(out *CapsuleStar)

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

func (*CapsuleStar) DeepCopyObject

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

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

type ConfigFile

type ConfigFile struct {
	Path     string `json:"path,omitempty" protobuf:"1"`
	Content  []byte `json:"content,omitempty" protobuf:"2"`
	IsSecret bool   `json:"isSecret,omitempty" protobuf:"3"`
}

func (*ConfigFile) DeepCopy

func (in *ConfigFile) DeepCopy() *ConfigFile

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

func (*ConfigFile) DeepCopyInto

func (in *ConfigFile) DeepCopyInto(out *ConfigFile)

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

type Environment

type Environment struct {
	metav1.TypeMeta `json:",inline"`
	// Name is unique
	Name              string `json:"name" protobuf:"3"`
	NamespaceTemplate string `json:"namespaceTemplate" protobuf:"4"`
	OperatorVersion   string `json:"operatorVersion" protobuf:"5"`
	ClusterID         string `json:"clusterID" protobuf:"6"`
	// Environment level defaults
	CapsuleBase ProjEnvCapsuleBase `json:"capsuleBase" protobuf:"7"`
}

func (*Environment) DeepCopy

func (in *Environment) DeepCopy() *Environment

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

func (*Environment) DeepCopyInto

func (in *Environment) DeepCopyInto(out *Environment)

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

func (*Environment) DeepCopyObject

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

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

type EnvironmentSource

type EnvironmentSource struct {
	Name string                `json:"name" protobuf:"1"`
	Kind EnvironmentSourceKind `json:"kind" protobuf:"2"`
}

func (*EnvironmentSource) DeepCopy

func (in *EnvironmentSource) DeepCopy() *EnvironmentSource

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

func (*EnvironmentSource) DeepCopyInto

func (in *EnvironmentSource) DeepCopyInto(out *EnvironmentSource)

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

type EnvironmentSourceKind

type EnvironmentSourceKind string
var (
	EnvironmentSourceKindConfigMap EnvironmentSourceKind = "config_map"
	EnvironmentSourceKindSecret    EnvironmentSourceKind = "secret"
)

type ProjEnvCapsuleBase

type ProjEnvCapsuleBase struct {
	ConfigFiles          []ConfigFile      `json:"configFiles,omitempty" protobuf:"1"`
	EnvironmentVariables map[string]string `json:"environmentVariables,omitempty" protobuf:"2"`
}

func (*ProjEnvCapsuleBase) DeepCopy

func (in *ProjEnvCapsuleBase) DeepCopy() *ProjEnvCapsuleBase

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

func (*ProjEnvCapsuleBase) DeepCopyInto

func (in *ProjEnvCapsuleBase) DeepCopyInto(out *ProjEnvCapsuleBase)

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

type Project

type Project struct {
	metav1.TypeMeta `json:",inline"`
	// Name is unique
	Name string `json:"name" protobuf:"3"`
	// A capsule is only allowed in an environment if its project references the environment in this list
	Environments []string `json:"environments" protobuf:"4"`
	// Project level defaults
	CapsuleBase ProjEnvCapsuleBase `json:"capsuleBase" protobuf:"5"`
}

func (*Project) DeepCopy

func (in *Project) DeepCopy() *Project

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

func (*Project) DeepCopyInto

func (in *Project) DeepCopyInto(out *Project)

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

func (*Project) DeepCopyObject

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

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

Jump to

Keyboard shortcuts

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