v1

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2018 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package v1 is the v1 version of the API. +groupName=lattice.mlab.com

Index

Constants

View Source
const GroupName = "lattice.mlab.com"

Variables

View Source
var (
	AddressKind     = SchemeGroupVersion.WithKind("Address")
	AddressListKind = SchemeGroupVersion.WithKind("AddressList")

	AddressPathLabelKey = fmt.Sprintf("address.%v/path", GroupName)
)
View Source
var (
	BuildKind     = SchemeGroupVersion.WithKind("Build")
	BuildListKind = SchemeGroupVersion.WithKind("BuildList")

	BuildDefinitionVersionLabelKey = fmt.Sprintf("build.%v/definition-version", GroupName)
)
View Source
var (
	ConfigKind     = SchemeGroupVersion.WithKind("Config")
	ConfigListKind = SchemeGroupVersion.WithKind("ConfigList")
)
View Source
var (
	ContainerBuildKind     = SchemeGroupVersion.WithKind("ContainerBuild")
	ContainerBuildListKind = SchemeGroupVersion.WithKind("ContainerBuildList")

	ContainerBuildIDLabelKey             = fmt.Sprintf("containerbuild.%v/id", GroupName)
	ContainerBuildDefinitionHashLabelKey = fmt.Sprintf("containerbuild.%v/definition-hash", GroupName)

	ContainerBuildJobDockerImageFQNAnnotationKey = fmt.Sprintf("containerbuild.%v/docker-image-fqn", GroupName)

	ContainerBuildFailureInfoAnnotationKey       = fmt.Sprintf("containerbuild.%v/failure-info", GroupName)
	ContainerBuildLastObservedPhaseAnnotationKey = fmt.Sprintf("containerbuild.%v/last-observed-phase", GroupName)
)
View Source
var (
	DeployKind     = SchemeGroupVersion.WithKind("Deploy")
	DeployListKind = SchemeGroupVersion.WithKind("DeployList")
)
View Source
var (
	GitTemplateKind     = SchemeGroupVersion.WithKind("GitTemplate")
	GitTemplateListKind = SchemeGroupVersion.WithKind("GitTemplateList")

	GitTemplateRepoURLLabelKey = fmt.Sprintf("gittemplate.%v/repo-url", GroupName)
	GitTemplateCommitLabelKey  = fmt.Sprintf("gittemplate.%v/commit", GroupName)
	GitTemplateFileLabelKey    = fmt.Sprintf("gittemplate.%v/file", GroupName)
)
View Source
var (
	JobKind     = SchemeGroupVersion.WithKind("Job")
	JobListKind = SchemeGroupVersion.WithKind("JobList")

	// JobID label is the key that should be used in a label referencing a job's ID.
	JobIDLabelKey = fmt.Sprintf("job.%v/id", GroupName)

	// JobID label is the key that should be used for the path of the job.
	JobPathLabelKey = fmt.Sprintf("job.%v/path", GroupName)
)
View Source
var (
	JobRunKind     = SchemeGroupVersion.WithKind("JobRun")
	JobRunListKind = SchemeGroupVersion.WithKind("JobRunList")

	// JobRunID label is the key that should be used in a label referencing a jobRun's ID.
	JobRunIDLabelKey = fmt.Sprintf("jobrun.%v/id", GroupName)

	// JobRunID label is the key that should be used for the path of the jobRun.
	JobRunPathLabelKey = fmt.Sprintf("jobrun.%v/path", GroupName)
)
View Source
var (
	NodePoolKind     = SchemeGroupVersion.WithKind("NodePool")
	NodePoolListKind = SchemeGroupVersion.WithKind("NodePoolList")

	NodePoolIDLabelKey = fmt.Sprintf("node-pool.%v/id", GroupName)

	// NodePoolServiceDedicatedID is the key for a label indicating that the node pool is dedicated for a service.
	// The label's value should be the ID of the service.
	// TODO: should we just use ServiceIDLabelKey here instead? if so what do we use for shared/lattice node pools
	NodePoolServiceDedicatedIDLabelKey = fmt.Sprintf("service.dedicated.node-pool.%v/id", GroupName)

	// NodePoolSystemSharedPathLabelKey is the key for a label indicating that the node pool is shared for a system.
	// The label's value should be the node pool's path in the system definition.
	NodePoolSystemSharedPathLabelKey = fmt.Sprintf("shared.node-pool.%v/path", GroupName)
	NodePoolSystemSharedNameLabelKey = fmt.Sprintf("shared.node-pool.%v/name", GroupName)

	// NodePoolWorkloadAnnotationKey is the key that should be used in an annotation by
	// workloads that run on a node pool.
	NodePoolWorkloadAnnotationKey = fmt.Sprintf("workload.%v/node-pools", GroupName)

	AllNodePoolsSelector = corev1.NodeSelector{
		NodeSelectorTerms: []corev1.NodeSelectorTerm{
			{
				MatchExpressions: []corev1.NodeSelectorRequirement{
					{
						Key:      NodePoolIDLabelKey,
						Operator: corev1.NodeSelectorOpExists,
					},
				},
			},
		},
	}

	AllNodePoolAffinity = corev1.NodeAffinity{
		RequiredDuringSchedulingIgnoredDuringExecution: &AllNodePoolsSelector,
	}

	AllNodePoolToleration = corev1.Toleration{
		Key:      NodePoolIDLabelKey,
		Operator: corev1.TolerationOpExists,
		Effect:   corev1.TaintEffectNoSchedule,
	}
)
View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme

	SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1"}

	Resources = []struct {
		Type     runtime.Object
		ListType runtime.Object
	}{
		{
			Type:     &Address{},
			ListType: &AddressList{},
		},
		{
			Type:     &Build{},
			ListType: &BuildList{},
		},
		{
			Type:     &ContainerBuild{},
			ListType: &ContainerBuildList{},
		},
		{
			Type:     &Config{},
			ListType: &ConfigList{},
		},
		{
			Type:     &Deploy{},
			ListType: &DeployList{},
		},
		{
			Type:     &GitTemplate{},
			ListType: &GitTemplateList{},
		},
		{
			Type:     &Job{},
			ListType: &JobList{},
		},
		{
			Type:     &JobRun{},
			ListType: &JobRunList{},
		},
		{
			Type:     &NodePool{},
			ListType: &NodePoolList{},
		},
		{
			Type:     &Service{},
			ListType: &ServiceList{},
		},
		{
			Type:     &System{},
			ListType: &SystemList{},
		},
		{
			Type:     &Teardown{},
			ListType: &TeardownList{},
		},
		{
			Type:     &Template{},
			ListType: &TemplateList{},
		},
	}
)
View Source
var (
	ServiceKind     = SchemeGroupVersion.WithKind("Service")
	ServiceListKind = SchemeGroupVersion.WithKind("ServiceList")

	// ServiceID label is the key that should be used in a label referencing a service's ID.
	ServiceIDLabelKey = fmt.Sprintf("service.%v/id", GroupName)

	// ServiceID label is the key that should be used for the path of the service.
	ServicePathLabelKey = fmt.Sprintf("service.%v/path", GroupName)

	ServiceDeploymentSpecHashAnnotationKey = fmt.Sprintf("service.%v/deployment-spec-hash", GroupName)
)
View Source
var (
	SystemKind     = SchemeGroupVersion.WithKind("System")
	SystemListKind = SchemeGroupVersion.WithKind("SystemList")

	SystemDefinitionVersionLabelKey = fmt.Sprintf("system.%v/definition-version", GroupName)
)
View Source
var (
	TeardownKind     = SchemeGroupVersion.WithKind("Teardown")
	TeardownListKind = SchemeGroupVersion.WithKind("TeardownList")
)
View Source
var (
	TemplateKind     = SchemeGroupVersion.WithKind("Template")
	TemplateListKind = SchemeGroupVersion.WithKind("TemplateList")
)
View Source
var (
	// SecretPath label is the key that should be used for the path of the secret.
	SecretPathLabelKey = fmt.Sprintf("secret.%v/path", GroupName)
)

Functions

func GroupVersionResource

func GroupVersionResource(resource string) schema.GroupVersionResource

func KubeContainerForContainer

func KubeContainerForContainer(
	container definitionv1.Container,
	containerName string,
	buildArtifacts ContainerBuildArtifacts,
	componentPath tree.Path,
) (corev1.Container, error)

func PodTemplateSpecForV1Workload

func PodTemplateSpecForV1Workload(
	workload definitionv1.Workload,
	path tree.Path,
	latticeID v1.LatticeID,
	internalDNSDomain string,
	namespacePrefix, namespace, name string,
	labels map[string]string,
	buildArtifacts WorkloadContainerBuildArtifacts,
	restartPolicy corev1.RestartPolicy,
	affinity *corev1.Affinity,
	tolerations []corev1.Toleration,
) (*corev1.PodTemplateSpec, error)

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group-qualified GroupResource.

Types

type Address

type Address struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`
	Spec              AddressSpec   `json:"spec"`
	Status            AddressStatus `json:"status"`
}

func (*Address) DeepCopy

func (in *Address) DeepCopy() *Address

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

func (*Address) DeepCopyInto

func (in *Address) DeepCopyInto(out *Address)

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

func (*Address) DeepCopyObject

func (in *Address) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*Address) Description

func (a *Address) Description(namespacePrefix string) string

func (*Address) Failed

func (a *Address) Failed() bool

func (*Address) PathLabel

func (a *Address) PathLabel() (tree.Path, error)

func (*Address) Reason

func (a *Address) Reason() string

func (*Address) Stable

func (a *Address) Stable() bool

func (*Address) UpdateProcessed

func (a *Address) UpdateProcessed() bool

type AddressList

type AddressList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`
	Items           []Address `json:"items"`
}

func (*AddressList) DeepCopy

func (in *AddressList) DeepCopy() *AddressList

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

func (*AddressList) DeepCopyInto

func (in *AddressList) DeepCopyInto(out *AddressList)

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

func (*AddressList) DeepCopyObject

func (in *AddressList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type AddressSpec

type AddressSpec struct {
	Service      *tree.Path `json:"service,omitempty"`
	ExternalName *string    `json:"externalName,omitempty"`
}

func (*AddressSpec) DeepCopy

func (in *AddressSpec) DeepCopy() *AddressSpec

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

func (*AddressSpec) DeepCopyInto

func (in *AddressSpec) DeepCopyInto(out *AddressSpec)

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

type AddressState

type AddressState string
const (
	AddressStatePending  AddressState = ""
	AddressStateUpdating AddressState = "updating"
	AddressStateStable   AddressState = "stable"
	AddressStateFailed   AddressState = "failed"
	AddressStateDeleting AddressState = "deleting"
)

type AddressStatus

type AddressStatus struct {
	ObservedGeneration int64 `json:"observedGeneration"`

	State       AddressState              `json:"state"`
	Message     *string                   `json:"message"`
	FailureInfo *AddressStatusFailureInfo `json:"failureInfo"`

	// Ports maps ports to their publicly accessible address
	Ports map[int32]string `json:"ports"`
}

func (*AddressStatus) DeepCopy

func (in *AddressStatus) DeepCopy() *AddressStatus

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

func (*AddressStatus) DeepCopyInto

func (in *AddressStatus) DeepCopyInto(out *AddressStatus)

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

type AddressStatusFailureInfo

type AddressStatusFailureInfo struct {
	Message string      `json:"message"`
	Time    metav1.Time `json:"time"`
}

func (*AddressStatusFailureInfo) DeepCopy

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

func (*AddressStatusFailureInfo) DeepCopyInto

func (in *AddressStatusFailureInfo) DeepCopyInto(out *AddressStatusFailureInfo)

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

type Build

type Build struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`
	Spec              BuildSpec   `json:"spec"`
	Status            BuildStatus `json:"status,omitempty"`
}

func (*Build) DeepCopy

func (in *Build) DeepCopy() *Build

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

func (*Build) DeepCopyInto

func (in *Build) DeepCopyInto(out *Build)

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

func (*Build) DeepCopyObject

func (in *Build) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*Build) DefinitionVersionLabel

func (b *Build) DefinitionVersionLabel() (v1.Version, bool)

func (*Build) Description

func (b *Build) Description(namespacePrefix string) string

type BuildList

type BuildList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`
	Items           []Build `json:"items"`
}

func (*BuildList) DeepCopy

func (in *BuildList) DeepCopy() *BuildList

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

func (*BuildList) DeepCopyInto

func (in *BuildList) DeepCopyInto(out *BuildList)

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

func (*BuildList) DeepCopyObject

func (in *BuildList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type BuildSpec

type BuildSpec struct {
	Version *v1.Version `json:"version"`
	Path    *tree.Path  `json:"path"`
}

func (*BuildSpec) DeepCopy

func (sbs *BuildSpec) DeepCopy() *BuildSpec

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

func (*BuildSpec) DeepCopyInto

func (sbs *BuildSpec) DeepCopyInto(out *BuildSpec)

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

type BuildState

type BuildState string
const (
	BuildStatePending   BuildState = ""
	BuildStateAccepted  BuildState = "accepted"
	BuildStateRunning   BuildState = "running"
	BuildStateSucceeded BuildState = "succeeded"
	BuildStateFailed    BuildState = "failed"
)

type BuildStatus

type BuildStatus struct {
	State   BuildState `json:"state"`
	Message string     `json:"message"`

	InternalError *string `json:"internalError,omitempty"`

	Definition *resolver.ResolutionTree `json:"definition,omitempty"`
	Path       *tree.Path               `json:"path,omitempty"`
	Version    *v1.Version              `json:"version,omitempty"`

	StartTimestamp      *metav1.Time `json:"startTimestamp,omitempty"`
	CompletionTimestamp *metav1.Time `json:"completionTimestamp,omitempty"`

	// Maps a workload path to the information about its container builds
	Workloads map[tree.Path]BuildStatusWorkload `json:"workloads"`

	// Maps a container build's ID to its status
	ContainerBuildStatuses map[v1.ContainerBuildID]ContainerBuildStatus `json:"containerBuildStatuses"`
}

+k8s:deepcopy-gen=false

func (*BuildStatus) DeepCopy

func (in *BuildStatus) DeepCopy() *BuildStatus

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

func (*BuildStatus) DeepCopyInto

func (in *BuildStatus) DeepCopyInto(out *BuildStatus)

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

type BuildStatusWorkload

type BuildStatusWorkload struct {
	MainContainer v1.ContainerBuildID            `json:"mainContainer"`
	Sidecars      map[string]v1.ContainerBuildID `json:"sidecars"`
}

func (*BuildStatusWorkload) DeepCopy

func (in *BuildStatusWorkload) DeepCopy() *BuildStatusWorkload

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

func (*BuildStatusWorkload) DeepCopyInto

func (in *BuildStatusWorkload) DeepCopyInto(out *BuildStatusWorkload)

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

type ComponentBuildState

type ComponentBuildState string
const (
	ContainerBuildStatePending   ComponentBuildState = ""
	ContainerBuildStateQueued    ComponentBuildState = "queued"
	ContainerBuildStateRunning   ComponentBuildState = "running"
	ContainerBuildStateSucceeded ComponentBuildState = "succeeded"
	ContainerBuildStateFailed    ComponentBuildState = "failed"
)

type Config

type Config struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`
	Spec              ConfigSpec `json:"spec"`
}

func (*Config) DeepCopy

func (in *Config) DeepCopy() *Config

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

func (*Config) DeepCopyInto

func (in *Config) DeepCopyInto(out *Config)

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

func (*Config) DeepCopyObject

func (in *Config) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ConfigCloudProvider

type ConfigCloudProvider struct {
	Local *ConfigCloudProviderLocal `json:"local,omitempty"`
	AWS   *ConfigCloudProviderAWS   `json:"aws,omitempty"`
}

func (*ConfigCloudProvider) DeepCopy

func (in *ConfigCloudProvider) DeepCopy() *ConfigCloudProvider

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

func (*ConfigCloudProvider) DeepCopyInto

func (in *ConfigCloudProvider) DeepCopyInto(out *ConfigCloudProvider)

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

type ConfigCloudProviderAWS

type ConfigCloudProviderAWS struct {
	WorkerNodeAMIID string `json:"workerNodeAmiId"`
	KeyName         string `json:"keyName"`
}

func (*ConfigCloudProviderAWS) DeepCopy

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

func (*ConfigCloudProviderAWS) DeepCopyInto

func (in *ConfigCloudProviderAWS) DeepCopyInto(out *ConfigCloudProviderAWS)

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

type ConfigCloudProviderLocal

type ConfigCloudProviderLocal struct {
}

func (*ConfigCloudProviderLocal) DeepCopy

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

func (*ConfigCloudProviderLocal) DeepCopyInto

func (in *ConfigCloudProviderLocal) DeepCopyInto(out *ConfigCloudProviderLocal)

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

type ConfigComponentBuildBuilder

type ConfigComponentBuildBuilder struct {
	Image string `json:"image"`

	// Version of the docker API used by the build node docker daemons
	DockerAPIVersion string `json:"dockerApiVersion"`
}

func (*ConfigComponentBuildBuilder) DeepCopy

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

func (*ConfigComponentBuildBuilder) DeepCopyInto

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

type ConfigComponentBuildDockerArtifact

type ConfigComponentBuildDockerArtifact struct {
	// Registry used to tag images.
	Registry string `json:"registry"`

	// If auth is required, specify the auth type
	RegistryAuthType *string `json:"registryAuthType"`

	// If true, make a new repository for the image.
	// If false, use Repository as the repository for the image and give it
	// a unique tag.
	RepositoryPerImage bool   `json:"repositoryPerImage"`
	Repository         string `json:"repository"`

	// If true push the image to the repository.
	// Set to false for the local case.
	Push bool `json:"push"`
}

func (*ConfigComponentBuildDockerArtifact) DeepCopy

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

func (*ConfigComponentBuildDockerArtifact) DeepCopyInto

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

type ConfigContainerBuild

type ConfigContainerBuild struct {
	Builder        ConfigComponentBuildBuilder        `json:"builderConfig"`
	DockerArtifact ConfigComponentBuildDockerArtifact `json:"dockerConfig"`
}

func (*ConfigContainerBuild) DeepCopy

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

func (*ConfigContainerBuild) DeepCopyInto

func (in *ConfigContainerBuild) DeepCopyInto(out *ConfigContainerBuild)

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

type ConfigList

type ConfigList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`
	Items           []Config `json:"items"`
}

func (*ConfigList) DeepCopy

func (in *ConfigList) DeepCopy() *ConfigList

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

func (*ConfigList) DeepCopyInto

func (in *ConfigList) DeepCopyInto(out *ConfigList)

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

func (*ConfigList) DeepCopyObject

func (in *ConfigList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ConfigServiceMesh

type ConfigServiceMesh struct {
	Envoy *ConfigServiceMeshEnvoy `json:"envoy"`
}

func (*ConfigServiceMesh) DeepCopy

func (in *ConfigServiceMesh) DeepCopy() *ConfigServiceMesh

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

func (*ConfigServiceMesh) DeepCopyInto

func (in *ConfigServiceMesh) DeepCopyInto(out *ConfigServiceMesh)

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

type ConfigServiceMeshEnvoy

type ConfigServiceMeshEnvoy struct {
	PrepareImage string `json:"prepareImage"`
	Image        string `json:"image"`
	XDSAPIImage  string `json:"xdsApiImage"`
}

func (*ConfigServiceMeshEnvoy) DeepCopy

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

func (*ConfigServiceMeshEnvoy) DeepCopyInto

func (in *ConfigServiceMeshEnvoy) DeepCopyInto(out *ConfigServiceMeshEnvoy)

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

type ConfigSpec

type ConfigSpec struct {
	CloudProvider  ConfigCloudProvider  `json:"cloudProvider"`
	ContainerBuild ConfigContainerBuild `json:"containerBuild"`
	ServiceMesh    ConfigServiceMesh    `json:"serviceMesh"`
}

func (*ConfigSpec) DeepCopy

func (in *ConfigSpec) DeepCopy() *ConfigSpec

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

func (*ConfigSpec) DeepCopyInto

func (in *ConfigSpec) DeepCopyInto(out *ConfigSpec)

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

type ContainerBuild

type ContainerBuild struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`
	Spec              ContainerBuildSpec   `json:"spec"`
	Status            ContainerBuildStatus `json:"status"`
}

func (*ContainerBuild) DeepCopy

func (in *ContainerBuild) DeepCopy() *ContainerBuild

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

func (*ContainerBuild) DeepCopyInto

func (in *ContainerBuild) DeepCopyInto(out *ContainerBuild)

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

func (*ContainerBuild) DeepCopyObject

func (in *ContainerBuild) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*ContainerBuild) DefinitionHashLabel

func (b *ContainerBuild) DefinitionHashLabel() (string, bool)

func (*ContainerBuild) Description

func (b *ContainerBuild) Description(namespacePrefix string) string

func (*ContainerBuild) FailureInfoAnnotation

func (b *ContainerBuild) FailureInfoAnnotation() (*v1.ContainerBuildFailureInfo, error)

func (*ContainerBuild) LastObservedPhaseAnnotation

func (b *ContainerBuild) LastObservedPhaseAnnotation() (v1.ContainerBuildPhase, bool)

type ContainerBuildArtifacts

type ContainerBuildArtifacts struct {
	DockerImageFQN string `json:"dockerImageFqn"`
}

func (*ContainerBuildArtifacts) DeepCopy

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

func (*ContainerBuildArtifacts) DeepCopyInto

func (in *ContainerBuildArtifacts) DeepCopyInto(out *ContainerBuildArtifacts)

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

type ContainerBuildList

type ContainerBuildList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`
	Items           []ContainerBuild `json:"items"`
}

func (*ContainerBuildList) DeepCopy

func (in *ContainerBuildList) DeepCopy() *ContainerBuildList

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

func (*ContainerBuildList) DeepCopyInto

func (in *ContainerBuildList) DeepCopyInto(out *ContainerBuildList)

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

func (*ContainerBuildList) DeepCopyObject

func (in *ContainerBuildList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ContainerBuildSpec

type ContainerBuildSpec struct {
	Definition *definitionv1.ContainerBuild `json:"definition"`
}

+k8s:deepcopy-gen=false

func (*ContainerBuildSpec) DeepCopy

func (in *ContainerBuildSpec) DeepCopy() *ContainerBuildSpec

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

func (*ContainerBuildSpec) DeepCopyInto

func (in *ContainerBuildSpec) DeepCopyInto(out *ContainerBuildSpec)

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

type ContainerBuildStatus

type ContainerBuildStatus struct {
	State       ComponentBuildState           `json:"state"`
	FailureInfo *v1.ContainerBuildFailureInfo `json:"failureInfo,omitempty"`

	StartTimestamp      *metav1.Time `json:"startTimestamp,omitempty"`
	CompletionTimestamp *metav1.Time `json:"completionTimestamp,omitempty"`

	Artifacts         *ContainerBuildArtifacts `json:"artifacts,omitempty"`
	LastObservedPhase *v1.ContainerBuildPhase  `json:"lastObservedPhase,omitempty"`
}

func (*ContainerBuildStatus) DeepCopy

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

func (*ContainerBuildStatus) DeepCopyInto

func (in *ContainerBuildStatus) DeepCopyInto(out *ContainerBuildStatus)

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

type Deploy

type Deploy struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`
	Spec              DeploySpec   `json:"spec"`
	Status            DeployStatus `json:"status"`
}

func (*Deploy) DeepCopy

func (in *Deploy) DeepCopy() *Deploy

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

func (*Deploy) DeepCopyInto

func (in *Deploy) DeepCopyInto(out *Deploy)

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

func (*Deploy) DeepCopyObject

func (in *Deploy) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*Deploy) Description

func (d *Deploy) Description(namespacePrefix string) string

func (*Deploy) V1ID

func (d *Deploy) V1ID() v1.DeployID

type DeployList

type DeployList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`
	Items           []Deploy `json:"items"`
}

func (*DeployList) DeepCopy

func (in *DeployList) DeepCopy() *DeployList

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

func (*DeployList) DeepCopyInto

func (in *DeployList) DeepCopyInto(out *DeployList)

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

func (*DeployList) DeepCopyObject

func (in *DeployList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type DeploySpec

type DeploySpec struct {
	Build   *v1.BuildID `json:"build,omitempty"`
	Version *v1.Version `json:"version,omitempty"`
	Path    *tree.Path  `json:"path"`
}

func (*DeploySpec) DeepCopy

func (in *DeploySpec) DeepCopy() *DeploySpec

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

func (*DeploySpec) DeepCopyInto

func (in *DeploySpec) DeepCopyInto(out *DeploySpec)

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

type DeployState

type DeployState string
const (
	DeployStatePending    DeployState = ""
	DeployStateAccepted   DeployState = "accepted"
	DeployStateInProgress DeployState = "in progress"
	DeployStateSucceeded  DeployState = "succeeded"
	DeployStateFailed     DeployState = "failed"
)

type DeployStatus

type DeployStatus struct {
	State   DeployState `json:"state"`
	Message string      `json:"message,omitempty"`

	InternalError *string `json:"internalError,omitempty"`

	Build   *v1.BuildID `json:"build,omitempty"`
	Path    *tree.Path  `json:"path,omitempty"`
	Version *v1.Version `json:"version,omitempty"`

	StartTimestamp      *metav1.Time `json:"startTimestamp,omitempty"`
	CompletionTimestamp *metav1.Time `json:"completionTimestamp,omitempty"`
}

func (*DeployStatus) DeepCopy

func (in *DeployStatus) DeepCopy() *DeployStatus

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

func (*DeployStatus) DeepCopyInto

func (in *DeployStatus) DeepCopyInto(out *DeployStatus)

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

type GitTemplate

type GitTemplate struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`
	Spec              GitTemplateSpec `json:"spec"`
}

func (*GitTemplate) DeepCopy

func (in *GitTemplate) DeepCopy() *GitTemplate

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

func (*GitTemplate) DeepCopyInto

func (in *GitTemplate) DeepCopyInto(out *GitTemplate)

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

func (*GitTemplate) DeepCopyObject

func (in *GitTemplate) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type GitTemplateList

type GitTemplateList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`
	Items           []GitTemplate `json:"items"`
}

func (*GitTemplateList) DeepCopy

func (in *GitTemplateList) DeepCopy() *GitTemplateList

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

func (*GitTemplateList) DeepCopyInto

func (in *GitTemplateList) DeepCopyInto(out *GitTemplateList)

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

func (*GitTemplateList) DeepCopyObject

func (in *GitTemplateList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type GitTemplateSpec

type GitTemplateSpec struct {
	TemplateDigest string `json:"templateDigest"`
}

func (*GitTemplateSpec) DeepCopy

func (in *GitTemplateSpec) DeepCopy() *GitTemplateSpec

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

func (*GitTemplateSpec) DeepCopyInto

func (in *GitTemplateSpec) DeepCopyInto(out *GitTemplateSpec)

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

type Job

type Job struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`
	Spec              JobSpec `json:"spec"`
}

func (*Job) DeepCopy

func (in *Job) DeepCopy() *Job

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

func (*Job) DeepCopyInto

func (in *Job) DeepCopyInto(out *Job)

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

func (*Job) DeepCopyObject

func (in *Job) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*Job) Deleted

func (s *Job) Deleted() bool

func (*Job) Description

func (s *Job) Description(namespacePrefix string) string

func (*Job) NodePoolAnnotation

func (s *Job) NodePoolAnnotation() (NodePoolAnnotationValue, error)

func (*Job) PathLabel

func (s *Job) PathLabel() (tree.Path, error)

type JobList

type JobList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`
	Items           []Job `json:"items"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*JobList) DeepCopy

func (in *JobList) DeepCopy() *JobList

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

func (*JobList) DeepCopyInto

func (in *JobList) DeepCopyInto(out *JobList)

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

func (*JobList) DeepCopyObject

func (in *JobList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type JobRun

type JobRun struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`
	Spec              JobRunSpec   `json:"spec"`
	Status            JobRunStatus `json:"status,omitempty"`
}

func (*JobRun) DeepCopy

func (in *JobRun) DeepCopy() *JobRun

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

func (*JobRun) DeepCopyInto

func (in *JobRun) DeepCopyInto(out *JobRun)

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

func (*JobRun) DeepCopyObject

func (in *JobRun) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*JobRun) Deleted

func (s *JobRun) Deleted() bool

func (*JobRun) Description

func (s *JobRun) Description(namespacePrefix string) string

func (*JobRun) NodePoolAnnotation

func (s *JobRun) NodePoolAnnotation() (NodePoolAnnotationValue, error)

func (*JobRun) PathLabel

func (s *JobRun) PathLabel() (tree.Path, error)

type JobRunList

type JobRunList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`
	Items           []JobRun `json:"items"`
}

func (*JobRunList) DeepCopy

func (in *JobRunList) DeepCopy() *JobRunList

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

func (*JobRunList) DeepCopyInto

func (in *JobRunList) DeepCopyInto(out *JobRunList)

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

func (*JobRunList) DeepCopyObject

func (in *JobRunList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type JobRunSpec

type JobRunSpec struct {
	Definition definitionv1.Job `json:"definition"`

	NumRetries  *int32                            `json:"numRetries"`
	Command     []string                          `json:"command"`
	Environment definitionv1.ContainerEnvironment `json:"environment"`

	// ContainerBuildArtifacts maps container names to the artifacts created by their build
	ContainerBuildArtifacts WorkloadContainerBuildArtifacts `json:"containerBuildArtifacts"`
}

+k8s:deepcopy-gen=false

func (*JobRunSpec) DeepCopy

func (in *JobRunSpec) DeepCopy() *JobRunSpec

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

func (*JobRunSpec) DeepCopyInto

func (in *JobRunSpec) DeepCopyInto(out *JobRunSpec)

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

type JobRunState

type JobRunState string
const (
	JobRunStatePending  JobRunState = ""
	JobRunStateDeleting JobRunState = "deleting"

	JobRunStateQueued    JobRunState = "queued"
	JobRunStateRunning   JobRunState = "running"
	JobRunStateSucceeded JobRunState = "succeeded"
	JobRunStateFailed    JobRunState = "failed"
)

type JobRunStatus

type JobRunStatus struct {
	State JobRunState `json:"state"`

	StartTimestamp      *metav1.Time `json:"startTimestamp,omitempty"`
	CompletionTimestamp *metav1.Time `json:"completionTimestamp,omitempty"`
}

func (*JobRunStatus) DeepCopy

func (in *JobRunStatus) DeepCopy() *JobRunStatus

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

func (*JobRunStatus) DeepCopyInto

func (in *JobRunStatus) DeepCopyInto(out *JobRunStatus)

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

type JobSpec

type JobSpec struct {
	Definition definitionv1.Job `json:"definition"`

	// ContainerBuildArtifacts maps Sidecar names to the artifacts created by their build
	ContainerBuildArtifacts WorkloadContainerBuildArtifacts `json:"containerBuildArtifacts"`
}

+k8s:deepcopy-gen=false

func (*JobSpec) DeepCopy

func (in *JobSpec) DeepCopy() *JobSpec

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

func (*JobSpec) DeepCopyInto

func (in *JobSpec) DeepCopyInto(out *JobSpec)

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

type NodePool

type NodePool struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`
	Spec              NodePoolSpec   `json:"spec"`
	Status            NodePoolStatus `json:"status,omitempty"`
}

func (*NodePool) Affinity

func (np *NodePool) Affinity(epoch NodePoolEpoch) *corev1.NodeAffinity

func (*NodePool) DeepCopy

func (in *NodePool) DeepCopy() *NodePool

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

func (*NodePool) DeepCopyInto

func (in *NodePool) DeepCopyInto(out *NodePool)

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

func (*NodePool) DeepCopyObject

func (in *NodePool) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*NodePool) Description

func (np *NodePool) Description(namespacePrefix string) string

func (*NodePool) Failed

func (np *NodePool) Failed() bool

func (*NodePool) ID

func (np *NodePool) ID(epoch NodePoolEpoch) string

func (*NodePool) Reason

func (np *NodePool) Reason() string

func (*NodePool) ServiceDedicatedIDLabel

func (np *NodePool) ServiceDedicatedIDLabel() (string, bool)

func (*NodePool) Stable

func (np *NodePool) Stable() bool

func (*NodePool) SystemSharedPathLabel

func (np *NodePool) SystemSharedPathLabel() (tree.PathSubcomponent, bool, error)

func (*NodePool) Toleration

func (np *NodePool) Toleration(epoch NodePoolEpoch) corev1.Toleration

func (*NodePool) TypeDescription

func (np *NodePool) TypeDescription() string

func (*NodePool) UpdateProcessed

func (np *NodePool) UpdateProcessed() bool

type NodePoolAnnotationValue

type NodePoolAnnotationValue map[string]NodePoolAnnotationValueNamespace

NodePoolAnnotation is the type that should be the value of the NodePoolWorkloadAnnotationKey annotation. It maps from namespaces to a map of names to a slice of epochs. For example, if a service is currently running on the abc node pool in namespace bar, and is on both epochs 1 and 2 of that node pool, and is also currently running on the xyz node pool in namespace foo, and is running on epoch 5 of that node pool, the annotation should have the following value:

{
	"bar": { "abc": [1, 2] },
	"foo": { "xyz": [5] }
}

+k8s:deepcopy-gen=false

func (NodePoolAnnotationValue) Add

func (a NodePoolAnnotationValue) Add(namespace, nodePool string, epoch NodePoolEpoch)

func (NodePoolAnnotationValue) ContainsEpoch

func (a NodePoolAnnotationValue) ContainsEpoch(namespace, nodePool string, epoch NodePoolEpoch) bool

func (NodePoolAnnotationValue) ContainsLargerEpoch

func (a NodePoolAnnotationValue) ContainsLargerEpoch(namespace, nodePool string, epoch NodePoolEpoch) bool

func (NodePoolAnnotationValue) ContainsNodePool

func (a NodePoolAnnotationValue) ContainsNodePool(namespace, nodePool string) bool

func (NodePoolAnnotationValue) Epochs

func (a NodePoolAnnotationValue) Epochs(namespace, nodePool string) ([]NodePoolEpoch, bool)

func (NodePoolAnnotationValue) IsEmpty

func (a NodePoolAnnotationValue) IsEmpty() bool

func (NodePoolAnnotationValue) NodePools

func (a NodePoolAnnotationValue) NodePools(namespace string) (map[string][]NodePoolEpoch, bool)

type NodePoolAnnotationValueNamespace

type NodePoolAnnotationValueNamespace map[string][]NodePoolEpoch

+k8s:deepcopy-gen=false

type NodePoolEpoch

type NodePoolEpoch int64

func NodePoolIDLabelInfo

func NodePoolIDLabelInfo(namespacePrefix, value string) (v1.SystemID, string, NodePoolEpoch, error)

type NodePoolList

type NodePoolList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`
	Items           []NodePool `json:"items"`
}

func (*NodePoolList) DeepCopy

func (in *NodePoolList) DeepCopy() *NodePoolList

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

func (*NodePoolList) DeepCopyInto

func (in *NodePoolList) DeepCopyInto(out *NodePoolList)

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

func (*NodePoolList) DeepCopyObject

func (in *NodePoolList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type NodePoolSpec

type NodePoolSpec struct {
	NumInstances int32  `json:"numInstances"`
	InstanceType string `json:"instanceType"`
}

func (*NodePoolSpec) DeepCopy

func (in *NodePoolSpec) DeepCopy() *NodePoolSpec

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

func (*NodePoolSpec) DeepCopyInto

func (in *NodePoolSpec) DeepCopyInto(out *NodePoolSpec)

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

type NodePoolState

type NodePoolState string
const (
	NodePoolStatePending  NodePoolState = ""
	NodePoolStateScaling  NodePoolState = "scaling"
	NodePoolStateUpdating NodePoolState = "updating"
	NodePoolStateStable   NodePoolState = "stable"
	NodePoolStateFailed   NodePoolState = "failed"
	NodePoolStateDeleting NodePoolState = "deleting"
)

type NodePoolStatus

type NodePoolStatus struct {
	ObservedGeneration int64 `json:"observedGeneration"`

	State       NodePoolState              `json:"state"`
	FailureInfo *NodePoolStatusFailureInfo `json:"failureInfo"`

	// Epochs is a mapping from an epoch to the status of that epoch.
	// An epoch is a manifestation of the node pool that requires replacing infrastructure.
	// For example, changing the instance type of a node pool will require new nodes,
	// and thus requires a new epoch of the node pool.
	// Changing the number of nodes in a node pool does not require replacing the
	// existing nodes, simply scaling them, and thus does not require a new epoch.
	Epochs NodePoolStatusEpochs `json:"epochs"`
}

func (*NodePoolStatus) DeepCopy

func (in *NodePoolStatus) DeepCopy() *NodePoolStatus

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

func (*NodePoolStatus) DeepCopyInto

func (in *NodePoolStatus) DeepCopyInto(out *NodePoolStatus)

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

type NodePoolStatusEpoch

type NodePoolStatusEpoch struct {
	Spec   NodePoolSpec              `json:"spec"`
	Status NodePoolStatusEpochStatus `json:"status"`
}

func (*NodePoolStatusEpoch) DeepCopy

func (in *NodePoolStatusEpoch) DeepCopy() *NodePoolStatusEpoch

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

func (*NodePoolStatusEpoch) DeepCopyInto

func (in *NodePoolStatusEpoch) DeepCopyInto(out *NodePoolStatusEpoch)

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

type NodePoolStatusEpochStatus

type NodePoolStatusEpochStatus struct {
	NumInstances int32         `json:"numInstances"`
	InstanceType string        `json:"instanceType"`
	State        NodePoolState `json:"state"`
}

func (*NodePoolStatusEpochStatus) DeepCopy

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

func (*NodePoolStatusEpochStatus) DeepCopyInto

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

type NodePoolStatusEpochs

type NodePoolStatusEpochs map[NodePoolEpoch]NodePoolStatusEpoch

func (NodePoolStatusEpochs) CurrentEpoch

func (e NodePoolStatusEpochs) CurrentEpoch() (NodePoolEpoch, bool)

func (NodePoolStatusEpochs) DeepCopy

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

func (NodePoolStatusEpochs) DeepCopyInto

func (in NodePoolStatusEpochs) DeepCopyInto(out *NodePoolStatusEpochs)

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

func (NodePoolStatusEpochs) Epoch

func (NodePoolStatusEpochs) Epochs

func (e NodePoolStatusEpochs) Epochs() []NodePoolEpoch

func (NodePoolStatusEpochs) NextEpoch

func (e NodePoolStatusEpochs) NextEpoch() NodePoolEpoch

type NodePoolStatusFailureInfo

type NodePoolStatusFailureInfo struct {
	Message   string      `json:"message"`
	Timestamp metav1.Time `json:"time"`
}

func (*NodePoolStatusFailureInfo) DeepCopy

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

func (*NodePoolStatusFailureInfo) DeepCopyInto

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

type NodePoolType

type NodePoolType string
const (
	NodePoolTypeServiceDedicated NodePoolType = "service-dedicated"
	NodePoolTypeSystemShared     NodePoolType = "system-shared"
)

type Service

type Service struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`
	Spec              ServiceSpec   `json:"spec"`
	Status            ServiceStatus `json:"status,omitempty"`
}

func (*Service) DeepCopy

func (in *Service) DeepCopy() *Service

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

func (*Service) DeepCopyInto

func (in *Service) DeepCopyInto(out *Service)

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

func (*Service) DeepCopyObject

func (in *Service) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*Service) Deleted

func (s *Service) Deleted() bool

func (*Service) DeploymentSpecHashAnnotation

func (s *Service) DeploymentSpecHashAnnotation() (string, bool)

func (*Service) Description

func (s *Service) Description(namespacePrefix string) string

func (*Service) NeedsAddressLoadBalancer

func (s *Service) NeedsAddressLoadBalancer() bool

func (*Service) NodePoolAnnotation

func (s *Service) NodePoolAnnotation() (NodePoolAnnotationValue, error)

func (*Service) PathLabel

func (s *Service) PathLabel() (tree.Path, error)

func (*Service) Stable

func (s *Service) Stable() bool

func (*Service) UpdateProcessed

func (s *Service) UpdateProcessed() bool

type ServiceList

type ServiceList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`
	Items           []Service `json:"items"`
}

func (*ServiceList) DeepCopy

func (in *ServiceList) DeepCopy() *ServiceList

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

func (*ServiceList) DeepCopyInto

func (in *ServiceList) DeepCopyInto(out *ServiceList)

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

func (*ServiceList) DeepCopyObject

func (in *ServiceList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ServiceSpec

type ServiceSpec struct {
	Definition definitionv1.Service `json:"definition"`

	// ContainerBuildArtifacts maps Sidecar names to the artifacts created by their build
	ContainerBuildArtifacts WorkloadContainerBuildArtifacts `json:"containerBuildArtifacts"`
}

+k8s:deepcopy-gen=false

func (*ServiceSpec) DeepCopy

func (in *ServiceSpec) DeepCopy() *ServiceSpec

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

func (*ServiceSpec) DeepCopyInto

func (in *ServiceSpec) DeepCopyInto(out *ServiceSpec)

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

type ServiceState

type ServiceState string
const (
	ServiceStatePending  ServiceState = ""
	ServiceStateDeleting ServiceState = "deleting"

	ServiceStateScaling  ServiceState = "scaling"
	ServiceStateUpdating ServiceState = "updating"
	ServiceStateStable   ServiceState = "stable"
	ServiceStateFailed   ServiceState = "failed"
)

type ServiceStatus

type ServiceStatus struct {
	ObservedGeneration int64 `json:"observedGeneration"`

	State       ServiceState              `json:"state"`
	Message     *string                   `json:"message"`
	FailureInfo *ServiceStatusFailureInfo `json:"failureInfo,omitempty"`

	AvailableInstances   int32 `json:"availableInstances"`
	UpdatedInstances     int32 `json:"updatedInstances"`
	StaleInstances       int32 `json:"staleInstances"`
	TerminatingInstances int32 `json:"terminatingInstances"`

	Ports map[int32]string `json:"ports"`
}

func (*ServiceStatus) DeepCopy

func (in *ServiceStatus) DeepCopy() *ServiceStatus

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

func (*ServiceStatus) DeepCopyInto

func (in *ServiceStatus) DeepCopyInto(out *ServiceStatus)

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

type ServiceStatusFailureInfo

type ServiceStatusFailureInfo struct {
	Message   string      `json:"message"`
	Internal  bool        `json:"internal"`
	Timestamp metav1.Time `json:"timestamp"`
}

func (*ServiceStatusFailureInfo) DeepCopy

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

func (*ServiceStatusFailureInfo) DeepCopyInto

func (in *ServiceStatusFailureInfo) DeepCopyInto(out *ServiceStatusFailureInfo)

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

type System

type System struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`
	Spec              SystemSpec   `json:"spec"`
	Status            SystemStatus `json:"status,omitempty"`
}

func (*System) DeepCopy

func (in *System) DeepCopy() *System

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

func (*System) DeepCopyInto

func (in *System) DeepCopyInto(out *System)

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

func (*System) DeepCopyObject

func (in *System) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*System) DefinitionVersionLabel

func (s *System) DefinitionVersionLabel() (v1.Version, bool)

func (*System) Description

func (s *System) Description() string

func (*System) ResourceNamespace

func (s *System) ResourceNamespace(namespacePrefix string) string

func (*System) Stable

func (s *System) Stable() bool

func (*System) UpdateProcessed

func (s *System) UpdateProcessed() bool

func (*System) V1ID

func (s *System) V1ID() v1.SystemID

type SystemList

type SystemList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`
	Items           []System `json:"items"`
}

func (*SystemList) DeepCopy

func (in *SystemList) DeepCopy() *SystemList

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

func (*SystemList) DeepCopyInto

func (in *SystemList) DeepCopyInto(out *SystemList)

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

func (*SystemList) DeepCopyObject

func (in *SystemList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type SystemSpec

type SystemSpec struct {
	DefinitionURL string `json:"definitionUrl"`

	Definition             *resolver.ResolutionTree          `json:"definition"`
	WorkloadBuildArtifacts *SystemSpecWorkloadBuildArtifacts `json:"workloadBuildArtifacts"`
}

N.B.: important: if you update the SystemSpec or SystemSpecServiceInfo you must also update the systemSpecEncoder and SystemSpec's UnmarshalJSON +k8s:deepcopy-gen=false

func (*SystemSpec) DeepCopy

func (in *SystemSpec) DeepCopy() *SystemSpec

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

func (*SystemSpec) DeepCopyInto

func (in *SystemSpec) DeepCopyInto(out *SystemSpec)

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

type SystemSpecWorkloadBuildArtifacts

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

+k8s:deepcopy-gen=false

func NewSystemSpecWorkloadBuildArtifacts

func NewSystemSpecWorkloadBuildArtifacts() *SystemSpecWorkloadBuildArtifacts

func (*SystemSpecWorkloadBuildArtifacts) Get

func (*SystemSpecWorkloadBuildArtifacts) Insert

func (*SystemSpecWorkloadBuildArtifacts) MarshalJSON

func (a *SystemSpecWorkloadBuildArtifacts) MarshalJSON() ([]byte, error)

func (*SystemSpecWorkloadBuildArtifacts) ReplacePrefix

func (*SystemSpecWorkloadBuildArtifacts) UnmarshalJSON

func (a *SystemSpecWorkloadBuildArtifacts) UnmarshalJSON(data []byte) error

type SystemState

type SystemState string
const (
	// lifecycle states
	// note that the "deleting" state is implied by a non-nil metadata.DeletionTimestamp
	SystemStatePending SystemState = ""
	SystemStateFailed  SystemState = "failed"

	// transient states once the system has been created
	SystemStateStable   SystemState = "stable"
	SystemStateDegraded SystemState = "degraded"
	SystemStateScaling  SystemState = "scaling"
	SystemStateUpdating SystemState = "updating"
)

type SystemStatus

type SystemStatus struct {
	ObservedGeneration int64 `json:"observedGeneration"`

	State SystemState `json:"state"`

	Services  map[tree.Path]SystemStatusService              `json:"services"`
	NodePools map[tree.PathSubcomponent]SystemStatusNodePool `json:"nodePools"`
}

+k8s:deepcopy-gen=false

func (*SystemStatus) DeepCopy

func (in *SystemStatus) DeepCopy() *SystemStatus

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

func (*SystemStatus) DeepCopyInto

func (in *SystemStatus) DeepCopyInto(out *SystemStatus)

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

type SystemStatusNodePool

type SystemStatusNodePool struct {
	Name       string `json:"name"`
	Generation int64  `json:"generation"`
	NodePoolStatus
}

func (*SystemStatusNodePool) DeepCopy

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

func (*SystemStatusNodePool) DeepCopyInto

func (in *SystemStatusNodePool) DeepCopyInto(out *SystemStatusNodePool)

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

type SystemStatusService

type SystemStatusService struct {
	Name       string `json:"name"`
	Generation int64  `json:"generation"`
	ServiceStatus
}

func (*SystemStatusService) DeepCopy

func (in *SystemStatusService) DeepCopy() *SystemStatusService

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

func (*SystemStatusService) DeepCopyInto

func (in *SystemStatusService) DeepCopyInto(out *SystemStatusService)

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

type Teardown

type Teardown struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`
	Spec              TeardownSpec   `json:"spec"`
	Status            TeardownStatus `json:"status"`
}

func (*Teardown) DeepCopy

func (in *Teardown) DeepCopy() *Teardown

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

func (*Teardown) DeepCopyInto

func (in *Teardown) DeepCopyInto(out *Teardown)

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

func (*Teardown) DeepCopyObject

func (in *Teardown) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*Teardown) Description

func (t *Teardown) Description(namespacePrefix string) string

func (*Teardown) V1ID

func (t *Teardown) V1ID() v1.TeardownID

type TeardownList

type TeardownList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`
	Items           []Teardown `json:"items"`
}

func (*TeardownList) DeepCopy

func (in *TeardownList) DeepCopy() *TeardownList

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

func (*TeardownList) DeepCopyInto

func (in *TeardownList) DeepCopyInto(out *TeardownList)

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

func (*TeardownList) DeepCopyObject

func (in *TeardownList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type TeardownSpec

type TeardownSpec struct {
}

func (*TeardownSpec) DeepCopy

func (in *TeardownSpec) DeepCopy() *TeardownSpec

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

func (*TeardownSpec) DeepCopyInto

func (in *TeardownSpec) DeepCopyInto(out *TeardownSpec)

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

type TeardownState

type TeardownState string
const (
	TeardownStatePending    TeardownState = ""
	TeardownStateInProgress TeardownState = "in progress"
	TeardownStateSucceeded  TeardownState = "succeeded"
	TeardownStateFailed     TeardownState = "failed"
)

type TeardownStatus

type TeardownStatus struct {
	ObservedGeneration int64 `json:"observedGeneration"`

	State   TeardownState `json:"state"`
	Message string        `json:"message"`

	StartTimestamp      *metav1.Time `json:"startTimestamp,omitempty"`
	CompletionTimestamp *metav1.Time `json:"completionTimestamp,omitempty"`
}

func (*TeardownStatus) DeepCopy

func (in *TeardownStatus) DeepCopy() *TeardownStatus

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

func (*TeardownStatus) DeepCopyInto

func (in *TeardownStatus) DeepCopyInto(out *TeardownStatus)

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

type Template

type Template struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`
	Spec              TemplateSpec `json:"spec"`
}

func (*Template) DeepCopy

func (in *Template) DeepCopy() *Template

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

func (*Template) DeepCopyInto

func (in *Template) DeepCopyInto(out *Template)

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

func (*Template) DeepCopyObject

func (in *Template) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type TemplateList

type TemplateList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`
	Items           []Template `json:"items"`
}

func (*TemplateList) DeepCopy

func (in *TemplateList) DeepCopy() *TemplateList

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

func (*TemplateList) DeepCopyInto

func (in *TemplateList) DeepCopyInto(out *TemplateList)

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

func (*TemplateList) DeepCopyObject

func (in *TemplateList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type TemplateSpec

type TemplateSpec struct {
	Template *template.Template `json:"template"`
}

func (*TemplateSpec) DeepCopy

func (sbs *TemplateSpec) DeepCopy() *TemplateSpec

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

func (*TemplateSpec) DeepCopyInto

func (sbs *TemplateSpec) DeepCopyInto(out *TemplateSpec)

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

type WorkloadContainerBuildArtifacts

type WorkloadContainerBuildArtifacts struct {
	MainContainer ContainerBuildArtifacts            `json:"mainContainer"`
	Sidecars      map[string]ContainerBuildArtifacts `json:"sidecars"`
}

func (*WorkloadContainerBuildArtifacts) DeepCopy

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

func (*WorkloadContainerBuildArtifacts) DeepCopyInto

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