Documentation
¶
Overview ¶
Package v1beta1 contains API Schema definitions for the Halkyon Component v1beta1 API group +k8s:deepcopy-gen=package,register +groupName=halkyon.io
Index ¶
Constants ¶
const ( // ComponentPending means the component has been accepted by the system, but it is still being processed. This includes time // before being bound to a node, as well as time spent pulling images onto the host, building and wiring capabilities. ComponentPending = "Pending" // ComponentReady means the component is ready to accept code pushes ComponentReady = "Ready" // ComponentRunning means the component has been bound to a node and all of its dependencies are available. The component is // able to process requests. ComponentRunning = "Running" // ComponentFailed means that the component and its dependencies have terminated, and at least one container has // terminated in a failure (exited with a non-zero exit code or was stopped by the system). ComponentFailed = "Failed" // ComponentUnknown means that for some reason the state of the component could not be obtained, typically due // to an error in communicating with the host of the component. ComponentUnknown = "Unknown" // ComponentBuilding means that the Build mode has been configured and that a build task is running ComponentBuilding = "Building" // ComponentLinking means that the component is attempting to link to another component or capability ComponentLinking = "Linking" )
const Kind string = "Component"
Variables ¶
var ( // SchemeGroupVersion is the group version used to register these objects. SchemeGroupVersion = schema.GroupVersion{Group: api.GroupName, Version: api.V1Beta1Version} // AddToScheme is a function which adds this version to a scheme AddToScheme = schemeBuilder.AddToScheme )
Functions ¶
This section is empty.
Types ¶
type BuildConfig ¶
type BuildConfig struct { // Type is the mode that we would like to use to perform a container image build. // Optional. By default it is equal to s2i. Type string `json:"type,omitempty"` // URL is the Http or Web address of the Git repo to be cloned from the platforms such as : github, bitbucket, gitlab, ... // The syntax of the URL is : HTTPS://<git_server>/<git_org>/project.git URL string `json:"url"` // Ref is the git reference of the repo. // Optional. By default it is equal to "master". Ref string `json:"ref"` // moduleDirName is the name of the maven module / directory where build should be done. // Optional. By default, it is equal to "." ModuleDirName string `json:"moduleDirName,omitempty"` // contextPath is the directory relative to the git repository where the s2i build must take place. // Optional. By default, it is equal to "." ContextPath string `json:"contextPath,omitempty"` // Container image to be used as Base or From to build the final image BaseImage string `json:"baseImage,omitempty"` }
func (*BuildConfig) DeepCopy ¶
func (in *BuildConfig) DeepCopy() *BuildConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BuildConfig.
func (*BuildConfig) DeepCopyInto ¶
func (in *BuildConfig) DeepCopyInto(out *BuildConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CapabilitiesConfig ¶
type CapabilitiesConfig struct { Requires []RequiredCapabilityConfig `json:"requires,omitempty"` Provides []CapabilityConfig `json:"provides,omitempty"` }
func (*CapabilitiesConfig) DeepCopy ¶
func (in *CapabilitiesConfig) DeepCopy() *CapabilitiesConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CapabilitiesConfig.
func (*CapabilitiesConfig) DeepCopyInto ¶
func (in *CapabilitiesConfig) DeepCopyInto(out *CapabilitiesConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CapabilityConfig ¶
type CapabilityConfig struct { Name string `json:"name"` Spec v1beta1.CapabilitySpec `json:"spec"` }
func (*CapabilityConfig) DeepCopy ¶
func (in *CapabilityConfig) DeepCopy() *CapabilityConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CapabilityConfig.
func (*CapabilityConfig) DeepCopyInto ¶
func (in *CapabilityConfig) DeepCopyInto(out *CapabilityConfig)
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 ComponentSpec `json:"spec,omitempty"` Status ComponentStatus `json:"status,omitempty"` }
Component is the Schema for the components API +k8s:openapi-gen=true +genclient
func (*Component) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Component.
func (*Component) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Component) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Component) GetGroupVersionKind ¶
func (in *Component) GetGroupVersionKind() schema.GroupVersionKind
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 ComponentSpec ¶
type ComponentSpec struct { // DeploymentMode indicates the strategy to be adopted to install the resources into a namespace // and next to create a pod. 2 strategies are currently supported; inner and outer loop // where outer loop refers to a build of the code and the packaging of the application into a container's image // while the inner loop will install a pod's running a supervisord daemon used to trigger actions such as : assemble, run, ... DeploymentMode DeploymentMode `json:"deploymentMode,omitempty"` // Runtime is the framework/language used to start with a linux's container an application. // It corresponds to one of the following values: spring-boot, vertx, thorntail, nodejs, python, php, ruby // It will be used to select the appropriate runtime image and logic Runtime string `json:"runtime,omitempty"` // Runtime's version Version string `json:"version,omitempty"` // To indicate if we want to expose the service out side of the cluster as a route ExposeService bool `json:"exposeService,omitempty"` // Port is the HTTP/TCP port number used within the pod by the runtime Port int32 `json:"port,omitempty"` // Storage allows to specify the capacity and mode of the volume to be mounted for the pod Storage Storage `json:"storage,omitempty"` // Array of env variables containing extra/additional info to be used to configure the runtime Envs []common.NameValuePair `json:"envs,omitempty"` Revision string `json:"revision,omitempty"` // Build configuration used to execute a TekTon Build task BuildConfig BuildConfig `json:"buildConfig,omitempty"` Capabilities CapabilitiesConfig `json:"capabilities,omitempty"` }
ComponentSpec defines the desired state of Component +k8s:openapi-gen=true
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 ComponentStatus ¶
type ComponentStatus struct { common.Status `json:",inline"` PodName string `json:"podName,omitempty"` }
ComponentStatus defines the observed state of Component +k8s:openapi-gen=true
func (*ComponentStatus) DeepCopy ¶
func (in *ComponentStatus) DeepCopy() *ComponentStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ComponentStatus.
func (*ComponentStatus) DeepCopyInto ¶
func (in *ComponentStatus) DeepCopyInto(out *ComponentStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DeploymentMode ¶
type DeploymentMode string
const ( DevDeploymentMode DeploymentMode = "dev" BuildDeploymentMode DeploymentMode = "build" )
func (DeploymentMode) Equals ¶
func (dm DeploymentMode) Equals(other DeploymentMode) bool
func (DeploymentMode) String ¶
func (dm DeploymentMode) String() string
type RequiredCapabilityConfig ¶
type RequiredCapabilityConfig struct { CapabilityConfig `json:",inline"` BoundTo string `json:"boundTo,omitempty"` AutoBindable bool `json:"autoBindable,omitempty"` }
func (*RequiredCapabilityConfig) DeepCopy ¶
func (in *RequiredCapabilityConfig) DeepCopy() *RequiredCapabilityConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RequiredCapabilityConfig.
func (*RequiredCapabilityConfig) DeepCopyInto ¶
func (in *RequiredCapabilityConfig) DeepCopyInto(out *RequiredCapabilityConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Storage ¶
type Storage struct { Name string `json:"name,omitempty"` Capacity string `json:"capacity,omitempty"` Mode string `json:"mode,omitempty"` }
func (*Storage) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Storage.
func (*Storage) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.