v1

package
v0.0.0-...-ed832b3 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package v1 is the v1 version of the API. +groupName=custom.k8s.io

Index

Constants

View Source
const KCDAPP = "kcdapp"

KCDAPP is KCDAPP

Variables

View Source
var (
	// SchemeBuilder for CV resource
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	// AddToScheme for CV resource
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: custom.GroupName, Version: "v1"}

SchemeGroupVersion is group version used to register these objects

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type BlueGreenSpec

type BlueGreenSpec struct {
	ServiceName             string   `json:"serviceName"`
	VerificationServiceName string   `json:"verificationServiceName"`
	LabelNames              []string `json:"labelNames"`
	ScaleDown               bool     `json:"scaleDown"`
}

BlueGreenSpec defines a strategy for rolling out a workload via a blue-green deployment.

func (*BlueGreenSpec) DeepCopy

func (in *BlueGreenSpec) DeepCopy() *BlueGreenSpec

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

func (*BlueGreenSpec) DeepCopyInto

func (in *BlueGreenSpec) DeepCopyInto(out *BlueGreenSpec)

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

type ConfigSpec

type ConfigSpec struct {
	Name string `json:"name"`
	Key  string `json:"key"`
}

ConfigSpec is spec for Config resources

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 ContainerSpec

type ContainerSpec struct {
	Name   string       `json:"name"`
	Verify []VerifySpec `json:"verify"`
}

ContainerSpec defines a name of container and option container level verification step

func (*ContainerSpec) DeepCopy

func (in *ContainerSpec) DeepCopy() *ContainerSpec

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

func (*ContainerSpec) DeepCopyInto

func (in *ContainerSpec) DeepCopyInto(out *ContainerSpec)

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

type HistorySpec

type HistorySpec struct {
	Enabled bool   `json:"enabled"`
	Name    string `json:"name"`
}

HistorySpec contains configuration for saving rollout history.

func (*HistorySpec) DeepCopy

func (in *HistorySpec) DeepCopy() *HistorySpec

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

func (*HistorySpec) DeepCopyInto

func (in *HistorySpec) DeepCopyInto(out *HistorySpec)

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

type KCD

type KCD struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   KCDSpec   `json:"spec"`
	Status KCDStatus `json:"status"`
}

KCD is KCD resource

func (*KCD) DeepCopy

func (in *KCD) DeepCopy() *KCD

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

func (*KCD) DeepCopyInto

func (in *KCD) DeepCopyInto(out *KCD)

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

func (*KCD) DeepCopyObject

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

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

type KCDList

type KCDList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []KCD `json:"items"`
}

KCDList is a list of KCD resources

func (*KCDList) DeepCopy

func (in *KCDList) DeepCopy() *KCDList

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

func (*KCDList) DeepCopyInto

func (in *KCDList) DeepCopyInto(out *KCDList)

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

func (*KCDList) DeepCopyObject

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

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

type KCDSpec

type KCDSpec struct {
	ImageRepo     string `json:"imageRepo"`
	Tag           string `json:"tag"`
	VersionSyntax string `json:"versionSyntax"`

	PollIntervalSeconds int `json:"pollIntervalSeconds"`
	LivenessSeconds     int `json:"livenessSeconds"`
	TimeoutSeconds      int `json:"timeoutSeconds"`

	Selector  map[string]string `json:"selector,omitempty" protobuf:"bytes,2,rep,name=selector"`
	Container ContainerSpec     `json:"container"`

	Strategy StrategySpec `json:"strategy"`

	History  HistorySpec  `json:"history"`
	Rollback RollbackSpec `json:"rollback"`

	Config *ConfigSpec `json:"config"`
}

KCDSpec is KCDSpec

func (*KCDSpec) DeepCopy

func (in *KCDSpec) DeepCopy() *KCDSpec

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

func (*KCDSpec) DeepCopyInto

func (in *KCDSpec) DeepCopyInto(out *KCDSpec)

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

type KCDStatus

type KCDStatus struct {
	Created bool `json:"deployed"`

	// CurrVersion is the most recent version of a rollout, which has a status.
	// CurrStatusTime is the time of the last status change.
	CurrVersion    string      `json:"currVersion"`
	CurrStatus     string      `json:"currStatus"`
	CurrStatusTime metav1.Time `json:"currStatusTime"`

	// SuccessVersion is the last version that was successfully deployed.
	SuccessVersion string `json:"successVersion"`
}

KCDStatus is status for Deployment resources

func (*KCDStatus) DeepCopy

func (in *KCDStatus) DeepCopy() *KCDStatus

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

func (*KCDStatus) DeepCopyInto

func (in *KCDStatus) DeepCopyInto(out *KCDStatus)

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

type RollbackSpec

type RollbackSpec struct {
	Enabled bool `json:"enabled"`
}

RollbackSpec contains configuration for checking and rolling back failed deployments.

func (*RollbackSpec) DeepCopy

func (in *RollbackSpec) DeepCopy() *RollbackSpec

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

func (*RollbackSpec) DeepCopyInto

func (in *RollbackSpec) DeepCopyInto(out *RollbackSpec)

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

type StrategySpec

type StrategySpec struct {
	Kind      string         `json:"kind"`
	BlueGreen *BlueGreenSpec `json:"blueGreen"`
	Verify    []VerifySpec   `json:"verify"`
}

StrategySpec defines a rollout strategy and optional verification steps.

func (*StrategySpec) DeepCopy

func (in *StrategySpec) DeepCopy() *StrategySpec

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

func (*StrategySpec) DeepCopyInto

func (in *StrategySpec) DeepCopyInto(out *StrategySpec)

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

type VerifySpec

type VerifySpec struct {
	Kind  string `json:"kind"`
	Image string `json:"image"`
	Tag   string `json:"tag"`
}

VerifySpec defines various verification types performed during a rollout.

func (*VerifySpec) DeepCopy

func (in *VerifySpec) DeepCopy() *VerifySpec

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

func (*VerifySpec) DeepCopyInto

func (in *VerifySpec) DeepCopyInto(out *VerifySpec)

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