manifest

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. A copy of the License is located at

http://aws.amazon.com/apache2.0/

or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

View Source
var (
	BusyBoxContainer = v1.Container{
		Name:            "busybox",
		Image:           "busybox",
		Command:         []string{"sleep", "3600"},
		ImagePullPolicy: "IfNotPresent",
	}

	WindowsContainer = v1.Container{
		Name:  "windows-server-iis",
		Image: "mcr.microsoft.com/windows/servercore:1809",
		Ports: []v1.ContainerPort{{
			Name:          "http",
			ContainerPort: 80,
		}},
	}
)

Functions

This section is empty.

Types

type DeploymentBuilder

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

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) Name

func (*DeploymentBuilder) Namespace

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

func (*DeploymentBuilder) OS

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 PodBuilder

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

func NewDefaultPodBuilder

func NewDefaultPodBuilder() *PodBuilder

func (*PodBuilder) Build

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

func (*PodBuilder) Container

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

func (*PodBuilder) Labels

func (p *PodBuilder) Labels(labels map[string]string) *PodBuilder

func (*PodBuilder) Name

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

func (*PodBuilder) Namespace

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

func (*PodBuilder) OS

func (p *PodBuilder) OS(os string) *PodBuilder

func (*PodBuilder) ServiceAccount

func (p *PodBuilder) ServiceAccount(serviceAccountName string) *PodBuilder

func (*PodBuilder) TerminationGracePeriod

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

type SGPBuilder

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

func NewSGPBuilder

func NewSGPBuilder() *SGPBuilder

func (*SGPBuilder) Build

func (*SGPBuilder) Name

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

func (*SGPBuilder) Namespace

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

func (*SGPBuilder) PodMatchExpression

func (s *SGPBuilder) PodMatchExpression(key string, operator v1.LabelSelectorOperator, values ...string) *SGPBuilder

func (*SGPBuilder) PodMatchLabel

func (s *SGPBuilder) PodMatchLabel(key string, value string) *SGPBuilder

func (*SGPBuilder) SecurityGroup

func (s *SGPBuilder) SecurityGroup(securityGroup []string) *SGPBuilder

func (*SGPBuilder) ServiceAccountMatchExpression

func (s *SGPBuilder) ServiceAccountMatchExpression(key string, operator v1.LabelSelectorOperator, values ...string) *SGPBuilder

func (*SGPBuilder) ServiceAccountMatchLabel

func (s *SGPBuilder) ServiceAccountMatchLabel(key string, value string) *SGPBuilder

type ServiceAccountBuilder

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

func NewServiceAccountBuilder

func NewServiceAccountBuilder() *ServiceAccountBuilder

func (*ServiceAccountBuilder) Build

func (*ServiceAccountBuilder) Label

func (s *ServiceAccountBuilder) Label(labelKey string, labelValue string) *ServiceAccountBuilder

func (*ServiceAccountBuilder) Name

func (*ServiceAccountBuilder) Namespace

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

Jump to

Keyboard shortcuts

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