yaml

package
v0.32.15 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build added in v0.30.0

func Build(resources *k8s.Resources) interface{}

Types

type DaemonSet

type DaemonSet struct {
	Kind       string        `yaml:"kind,omitempty"`
	ApiVersion string        `yaml:"apiVersion,omitempty"`
	Metadata   Metadata      `yaml:"metadata,omitempty"`
	Spec       DaemonSetSpec `yaml:"spec,omitempty"`
}

type DaemonSetSpec

type DaemonSetSpec struct {
	Selector       Selector
	UpdateStrategy UpdateStrategy
	Template       PodTemplate
}

type Metadata

type Metadata struct {
	Name        string            `yaml:"name,omitempty"`
	Namespace   string            `yaml:"namespace,omitempty"`
	Labels      map[string]string `yaml:"labels,omitempty"`
	Annotations map[string]string `yaml:"annotations,omitempty"`
}

type PodSpec

type PodSpec struct {
	Tolerations     []*Toleration
	SecurityContext struct{}
	HostPID         bool
	Containers      []struct{}
	Volumes         []struct{}
}

type PodTemplate

type PodTemplate struct {
	Metadata Metadata
	Spec     PodSpec
}

type RollingUpdate

type RollingUpdate struct {
	MaxUnavailable string
}

type Selector

type Selector struct {
	MatchLabels map[string]string
}

type Toleration

type Toleration struct {
	Key      string
	Operator string
	Effect   string
}

type UpdateStrategy

type UpdateStrategy struct {
	Type          string
	RollingUpdate struct {
		MaxUnavailable string
	}
}

Jump to

Keyboard shortcuts

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