model

package
v0.0.0-...-1614809 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// CNDRevisionAnnotation is the annotation added to a service to track the original deployment in k8
	CNDRevisionAnnotation = "deployment.okteto.com/parent"

	// CNDLabel is the label added to a dev deployment in k8
	CNDLabel = "deployment.okteto.com/cnd"

	// OldCNDLabel is the legacy label
	OldCNDLabel = "cnd"

	// RevisionAnnotation is the deployed revision
	RevisionAnnotation = "deployment.kubernetes.io/revision"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Dev

type Dev struct {
	Swap  swap  `yaml:"swap"`
	Mount mount `yaml:"mount"`
}

Dev represents a cloud native development environment

func ReadDev

func ReadDev(devPath string) (*Dev, error)

ReadDev returns a Dev object from a given file

func (*Dev) TurnIntoDevDeployment

func (dev *Dev) TurnIntoDevDeployment(d *appsv1.Deployment, parentRevision string)

TurnIntoDevDeployment modifies a k8 deployment with the cloud native environment settings

Jump to

Keyboard shortcuts

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