types

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Image

type Image struct {
	// The container repository
	Repository string `json:"repository,omitempty"`
	// The container tag
	Tag string `json:"tag,omitempty"`

	PullPolicy v1.PullPolicy `json:"imagePullPolicy,omitempty"`
}

Image represents the container image of a pod

func (Image) Name

func (in Image) Name() string

Name returns the actual docker image name in the format <repository>:<tag> Deprecated. New code should use ToString

func (*Image) SetDefaults added in v0.1.5

func (in *Image) SetDefaults(repository, tag string, pullPolicy v1.PullPolicy) (changed bool)

func (Image) ToString added in v0.1.4

func (in Image) ToString() string

ToString returns the actual docker image name in the format <repository>:<tag>

type PodConfig

type PodConfig struct {

	// Affinity defines the pod's scheduling constraints
	Affinity v1.Affinity `json:"affinity,omitempty"`

	NodeSelector map[string]string `json:"nodeSelector,omitempty"`

	// Optional duration in seconds the pod may be active on the node relative to
	// StartTime before the system will actively try to mark it failed and kill associated containers.
	// Value must be a positive integer.
	ActiveDeadlineSeconds int64 `json:"activeDeadlineSeconds,omitempty"`
	// Restart policy for all containers within the pod.
	// One of Always, OnFailure, Never.
	// Default to Always.
	RestartPolicy v1.RestartPolicy `json:"restartPolicy,omitempty"`

	// PodSecurityContext holds pod-level security attributes and common container settings.
	// Some fields are also present in container.securityContext.  Field values of
	// container.securityContext take precedence over field values of PodSecurityContext.
	SecurityContext v1.PodSecurityContext `json:"securityContext,omitempty"`

	// Tolerations are attached to tolerates any taint that matches
	// the triple <key,value,effect> using the matching operator <operator>.
	Tolerations []v1.Toleration `json:"tolerations,omitempty"`

	// Labels defines the labels to attach to the broker pod
	Labels map[string]string `json:"labels,omitempty"`

	// Annotations defines the annotations to attach to the pod
	Annotations map[string]string `json:"annotations,omitempty"`
}

PodConfig defines the configurations of a kubernetes pod

func (*PodConfig) DeepCopy

func (in *PodConfig) DeepCopy() *PodConfig

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

func (*PodConfig) DeepCopyInto

func (in *PodConfig) DeepCopyInto(out *PodConfig)

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

Jump to

Keyboard shortcuts

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