kube

package
v0.0.0-...-3b61a40 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2018 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// RoleNameLabel is the recommended kube label to specify the rolename
	RoleNameLabel = "app.kubernetes.io/component"
	// VolumeStorageClassAnnotation is the annotation label for storage/v1beta1/StorageClass
	VolumeStorageClassAnnotation = "volume.beta.kubernetes.io/storage-class"
)

Variables

This section is empty.

Functions

func MakeBasicValues

func MakeBasicValues() *helm.Mapping

MakeBasicValues returns a Mapping with the default values that do not depend on any configuration. This is exported so the tests from other packages can access them.

func MakeRegistryCredentials

func MakeRegistryCredentials(settings ExportSettings) (helm.Node, error)

MakeRegistryCredentials generates a template that contains Docker Registry credentials

func MakeSecrets

func MakeSecrets(secrets model.CVMap, settings ExportSettings) (helm.Node, error)

MakeSecrets creates Secret KubeConfig filled with the key/value pairs from the specified map.

func MakeValues

func MakeValues(settings ExportSettings) (helm.Node, error)

MakeValues returns a Mapping with all default values for the Helm chart

func NewDeployment

func NewDeployment(instanceGroup *model.InstanceGroup, settings ExportSettings, grapher util.ModelGrapher) (helm.Node, helm.Node, error)

NewDeployment creates a Deployment for the given instance group, and its attached services

func NewJob

func NewJob(instanceGroup *model.InstanceGroup, settings ExportSettings, grapher util.ModelGrapher) (helm.Node, error)

NewJob creates a new Job for the given instance group, as well as any objects it depends on

func NewPod

func NewPod(role *model.InstanceGroup, settings ExportSettings, grapher util.ModelGrapher) (helm.Node, error)

NewPod creates a new Pod for the given role, as well as any objects it depends on

func NewPodTemplate

func NewPodTemplate(role *model.InstanceGroup, settings ExportSettings, grapher util.ModelGrapher) (helm.Node, error)

NewPodTemplate creates a new pod template spec for a given role, as well as any objects it depends on

func NewRBACAccount

func NewRBACAccount(name string, account model.AuthAccount, settings ExportSettings) ([]helm.Node, error)

NewRBACAccount creates a new (Kubernetes RBAC) service account and associated bindings.

func NewRBACClusterRolePSP

func NewRBACClusterRolePSP(psp string, settings ExportSettings) (helm.Node, error)

NewRBACClusterRolePSP creates a new (Kubernetes RBAC) cluster role referencing a pod security policy (PSP)

func NewRBACRole

func NewRBACRole(name string, authRole model.AuthRole, settings ExportSettings) (helm.Node, error)

NewRBACRole creates a new (Kubernetes RBAC) role

func NewServiceList

func NewServiceList(role *model.InstanceGroup, clustering bool, settings ExportSettings) (helm.Node, error)

NewServiceList creates a list of services clustering should be true if a kubernetes headless service should be created (for self-clustering roles, to reach each pod individually)

func NewStatefulSet

func NewStatefulSet(role *model.InstanceGroup, settings ExportSettings, grapher util.ModelGrapher) (helm.Node, helm.Node, error)

NewStatefulSet returns a stateful set and a list of services for the given role

Types

type ExportSettings

type ExportSettings struct {
	OutputDir       string
	Repository      string
	Defaults        map[string]string
	Registry        string
	Username        string
	Password        string
	Organization    string
	UseMemoryLimits bool
	UseCPULimits    bool
	FissileVersion  string
	TagExtra        string
	RoleManifest    *model.RoleManifest
	Opinions        *model.Opinions
	CreateHelmChart bool
	AuthType        string
}

ExportSettings are configuration for creating Kubernetes configs

Jump to

Keyboard shortcuts

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