manifest

package
v1.12.2 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container struct {
	// contains filtered or unexported fields
}

func NewBaseContainer

func NewBaseContainer() *Container

func NewBusyBoxContainerBuilder

func NewBusyBoxContainerBuilder() *Container

func NewCurlContainer

func NewCurlContainer() *Container

func NewNetCatAlpineContainer

func NewNetCatAlpineContainer() *Container

func NewTestHelperContainer

func NewTestHelperContainer() *Container

See test/agent/README.md in this repository for more details

func (*Container) Args

func (w *Container) Args(arg []string) *Container

func (*Container) Build

func (w *Container) Build() v1.Container

func (*Container) CapabilitiesForSecurityContext

func (w *Container) CapabilitiesForSecurityContext(add []v1.Capability, drop []v1.Capability) *Container

func (*Container) Command

func (w *Container) Command(cmd []string) *Container

func (*Container) Image

func (w *Container) Image(image string) *Container

func (*Container) ImagePullPolicy

func (w *Container) ImagePullPolicy(policy v1.PullPolicy) *Container

func (*Container) LivenessProbe

func (w *Container) LivenessProbe(probe *v1.Probe) *Container

func (*Container) Name

func (w *Container) Name(name string) *Container

func (*Container) Port

func (w *Container) Port(port v1.ContainerPort) *Container

type DeploymentBuilder

type DeploymentBuilder struct {
	// contains filtered or unexported fields
}

func NewBusyBoxDeploymentBuilder

func NewBusyBoxDeploymentBuilder() *DeploymentBuilder

func NewCalicoStarDeploymentBuilder

func NewCalicoStarDeploymentBuilder() *DeploymentBuilder

func NewDefaultDeploymentBuilder

func NewDefaultDeploymentBuilder() *DeploymentBuilder

func (*DeploymentBuilder) Build

func (d *DeploymentBuilder) Build() *v1.Deployment

func (*DeploymentBuilder) Container

func (d *DeploymentBuilder) Container(container corev1.Container) *DeploymentBuilder

func (*DeploymentBuilder) HostNetwork

func (d *DeploymentBuilder) HostNetwork(hostNetwork bool) *DeploymentBuilder

func (*DeploymentBuilder) Labels

func (d *DeploymentBuilder) Labels(labels map[string]string) *DeploymentBuilder

func (*DeploymentBuilder) MountVolume

func (d *DeploymentBuilder) MountVolume(volume []corev1.Volume, volumeMount []corev1.VolumeMount) *DeploymentBuilder

func (*DeploymentBuilder) Name

func (*DeploymentBuilder) Namespace

func (d *DeploymentBuilder) Namespace(namespace string) *DeploymentBuilder

func (*DeploymentBuilder) NodeName

func (d *DeploymentBuilder) NodeName(nodeName string) *DeploymentBuilder

func (*DeploymentBuilder) NodeSelector

func (d *DeploymentBuilder) NodeSelector(labelKey string, labelVal string) *DeploymentBuilder

func (*DeploymentBuilder) PodLabel

func (d *DeploymentBuilder) PodLabel(labelKey string, labelValue string) *DeploymentBuilder

func (*DeploymentBuilder) Replicas

func (d *DeploymentBuilder) Replicas(replicas int) *DeploymentBuilder

func (*DeploymentBuilder) TerminationGracePeriod

func (d *DeploymentBuilder) TerminationGracePeriod(tg int) *DeploymentBuilder

type ENIConfigBuilder

type ENIConfigBuilder struct {
	// contains filtered or unexported fields
}

func NewENIConfigBuilder

func NewENIConfigBuilder() *ENIConfigBuilder

func (*ENIConfigBuilder) Build

func (e *ENIConfigBuilder) Build() (*v1alpha1.ENIConfig, error)

func (*ENIConfigBuilder) Name

func (e *ENIConfigBuilder) Name(name string) *ENIConfigBuilder

func (*ENIConfigBuilder) SecurityGroup

func (e *ENIConfigBuilder) SecurityGroup(securityGroup []string) *ENIConfigBuilder

func (*ENIConfigBuilder) SubnetID

func (e *ENIConfigBuilder) SubnetID(subnetID string) *ENIConfigBuilder

type JobBuilder

type JobBuilder struct {
	// contains filtered or unexported fields
}

func NewDefaultJobBuilder

func NewDefaultJobBuilder() *JobBuilder

func (*JobBuilder) Build

func (j *JobBuilder) Build() *batchV1.Job

func (*JobBuilder) Container

func (j *JobBuilder) Container(container v1.Container) *JobBuilder

func (*JobBuilder) HostNetwork

func (j *JobBuilder) HostNetwork(hostNetwork bool) *JobBuilder

func (*JobBuilder) Name

func (j *JobBuilder) Name(name string) *JobBuilder

func (*JobBuilder) Namespace

func (j *JobBuilder) Namespace(namespace string) *JobBuilder

func (*JobBuilder) NodeName

func (j *JobBuilder) NodeName(nodeName string) *JobBuilder

func (*JobBuilder) NodeSelector

func (j *JobBuilder) NodeSelector(selectorKey string, selectorVal string) *JobBuilder

func (*JobBuilder) Parallelism

func (j *JobBuilder) Parallelism(parallelism int) *JobBuilder

func (*JobBuilder) PodLabels

func (j *JobBuilder) PodLabels(labelKey string, labelVal string) *JobBuilder

func (*JobBuilder) TerminationGracePeriod

func (j *JobBuilder) TerminationGracePeriod(terminationGracePeriod int) *JobBuilder

type PodBuilder

type PodBuilder struct {
	// contains filtered or unexported fields
}

func NewDefaultPodBuilder

func NewDefaultPodBuilder() *PodBuilder

func (*PodBuilder) Build

func (p *PodBuilder) Build() *v1.Pod

func (*PodBuilder) Container

func (p *PodBuilder) Container(container v1.Container) *PodBuilder

func (*PodBuilder) HostNetwork

func (p *PodBuilder) HostNetwork(hostNetwork bool) *PodBuilder

func (*PodBuilder) MountVolume

func (p *PodBuilder) MountVolume(volume []v1.Volume, volumeMount []v1.VolumeMount) *PodBuilder

func (*PodBuilder) Name

func (p *PodBuilder) Name(name string) *PodBuilder

func (*PodBuilder) Namespace

func (p *PodBuilder) Namespace(namespace string) *PodBuilder

func (*PodBuilder) NodeName

func (p *PodBuilder) NodeName(nodeName string) *PodBuilder

func (*PodBuilder) NodeSelector

func (p *PodBuilder) NodeSelector(nodeLabelKey string, nodeLabelVal string) *PodBuilder

func (*PodBuilder) PodLabel

func (p *PodBuilder) PodLabel(labelKey string, labelVal string) *PodBuilder

func (*PodBuilder) RestartPolicy

func (p *PodBuilder) RestartPolicy(policy v1.RestartPolicy) *PodBuilder

func (*PodBuilder) TerminationGracePeriod

func (p *PodBuilder) TerminationGracePeriod(period int) *PodBuilder

type ServiceBuilder

type ServiceBuilder struct {
	// contains filtered or unexported fields
}

func NewHTTPService

func NewHTTPService() *ServiceBuilder

func (*ServiceBuilder) Annotations

func (s *ServiceBuilder) Annotations(annotations map[string]string) *ServiceBuilder

func (*ServiceBuilder) Build

func (s *ServiceBuilder) Build() *v1.Service

func (*ServiceBuilder) Name

func (s *ServiceBuilder) Name(name string) *ServiceBuilder

func (*ServiceBuilder) Namespace

func (s *ServiceBuilder) Namespace(namespace string) *ServiceBuilder

func (*ServiceBuilder) NodePort

func (s *ServiceBuilder) NodePort(nodePort int32) *ServiceBuilder

func (*ServiceBuilder) Port

func (s *ServiceBuilder) Port(port int32) *ServiceBuilder

func (*ServiceBuilder) Protocol

func (s *ServiceBuilder) Protocol(protocol v1.Protocol) *ServiceBuilder

func (*ServiceBuilder) Selector

func (s *ServiceBuilder) Selector(labelKey string, labelVal string) *ServiceBuilder

func (*ServiceBuilder) ServiceType

func (s *ServiceBuilder) ServiceType(serviceType v1.ServiceType) *ServiceBuilder

Jump to

Keyboard shortcuts

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