Documentation ¶
Overview ¶
Package kubernetes provides the ability for Vela to integrate with Kubernetes as a runtime environment.
Usage:
import "github.com/go-vela/worker/runtime/kubernetes"
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ClientOpt ¶
type ClientOpt func(*client) error
ClientOpt represents a configuration option to initialize the runtime client for Kubernetes.
func WithConfigFile ¶
WithConfigFile sets the config file in the runtime client for Kubernetes.
func WithHostVolumes ¶
WithHostVolumes sets the host volumes in the runtime client for Kubernetes.
func WithLogger ¶ added in v0.12.0
WithLogger sets the logger in the runtime client for Kubernetes.
func WithNamespace ¶
WithNamespace sets the namespace in the runtime client for Kubernetes.
func WithPodsTemplate ¶ added in v0.14.0
WithPodsTemplate sets the PipelinePodsTemplateName or loads the PipelinePodsTemplate from file in the runtime client for Kubernetes.
func WithPrivilegedImages ¶
WithPrivilegedImages sets the privileged images in the runtime client for Kubernetes.
type MockKubernetesRuntime ¶ added in v0.17.0
type MockKubernetesRuntime interface { SetupMock() error MarkPodTrackerReady() StartPodTracker(context.Context) WaitForPodTrackerReady() WaitForPodCreate(string, string) SimulateResync(*v1.Pod) SimulateStatusUpdate(*v1.Pod, []v1.ContainerStatus) error }
MockKubernetesRuntime makes it possible to use the client mocks in other packages.
This interface is intended for running tests only.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package apis defines the worker-config CRD and related utilities.
|
Package apis defines the worker-config CRD and related utilities. |
vela/v1alpha1
Package v1alpha1 defines version 1alpha1 of the worker-config CRD.
|
Package v1alpha1 defines version 1alpha1 of the worker-config CRD. |
generated
|
|
clientset/versioned
This package has the automatically generated clientset.
|
This package has the automatically generated clientset. |
clientset/versioned/fake
This package has the automatically generated fake clientset.
|
This package has the automatically generated fake clientset. |
clientset/versioned/scheme
This package contains the scheme of the automatically generated clientset.
|
This package contains the scheme of the automatically generated clientset. |
clientset/versioned/typed/vela/v1alpha1
This package has the automatically generated typed clients.
|
This package has the automatically generated typed clients. |
clientset/versioned/typed/vela/v1alpha1/fake
Package fake has the automatically generated clients.
|
Package fake has the automatically generated clients. |