Documentation ¶
Overview ¶
Package v1 is the v1 version of the API. +groupName=custom.k8s.io
Index ¶
Constants ¶
const KCDAPP = "kcdapp"
KCDAPP is KCDAPP
Variables ¶
var ( // SchemeBuilder for CV resource SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) // AddToScheme for CV resource AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: custom.GroupName, Version: "v1"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
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 ¶
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 ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KCD.
func (*KCD) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KCD) DeepCopyObject ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KCDList.
func (*KCDList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KCDList) DeepCopyObject ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KCDSpec.
func (*KCDSpec) DeepCopyInto ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KCDStatus.
func (*KCDStatus) DeepCopyInto ¶
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.