Documentation ¶
Overview ¶
+k8s:deepcopy-gen=package,register +groupName=devops.dmall.com
Index ¶
Constants ¶
const ( // GroupName is the group name use in this package GroupName = "devops.dmall.com" // ResourceVersion represent the resource version ResourceVersion = "v1" )
const ( // ResourcePlural is the id to indentify pluarals ResourcePlural = "migrates" // ResourceSingular represents the id for identify singular resource ResourceSingular = "migrate" // ResourceKind represent the resource kind ResourceKind = "Migrate" )
const MigrateResourceName = ResourcePlural + "." + GroupName
Variables ¶
var ( // SchemeBuilder localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes. SchemeBuilder runtime.SchemeBuilder // AddToScheme localSchemeBuilder AddToScheme AddToScheme = localSchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: ResourceVersion}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func NewCrdMigrate ¶
func NewCrdMigrate() *crdapi.CustomResourceDefinition
NewCrd defines a Resource as a k8s CR
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type Migrate ¶
type Migrate struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec MigrateSpec `json:"spec,omitempty"` Status MigrateStatus `json:"status,omitempty"` }
Migrate +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*Migrate) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Migrate.
func (*Migrate) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Migrate) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MigrateActionType ¶
type MigrateActionType string
const ( MigrateActionInstall MigrateActionType = "Install" MigrateActionUpdate MigrateActionType = "Update" MigrateActionDelete MigrateActionType = "Delete" )
type MigrateCondition ¶
type MigrateCondition struct { Type string `json:"type"` Status string `json:"status"` LastProbeTime metav1.Time `json:"lastProbeTime,omitempty"` LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"` Reason string `json:"reason,omitempty"` Message string `json:"message,omitempty"` }
func (*MigrateCondition) DeepCopy ¶
func (in *MigrateCondition) DeepCopy() *MigrateCondition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MigrateCondition.
func (*MigrateCondition) DeepCopyInto ¶
func (in *MigrateCondition) DeepCopyInto(out *MigrateCondition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MigrateList ¶
type MigrateList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Migrate `json:"items"` }
MigrateList +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*MigrateList) DeepCopy ¶
func (in *MigrateList) DeepCopy() *MigrateList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MigrateList.
func (*MigrateList) DeepCopyInto ¶
func (in *MigrateList) DeepCopyInto(out *MigrateList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MigrateList) DeepCopyObject ¶
func (in *MigrateList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MigrateSpec ¶
type MigrateSpec struct { AppName string `json:"appName,omitempty"` Action MigrateActionType `json:"action,omitempty"` Meta map[string]string `json:"meta,omitempty"` Chart []byte `json:"chart,omitempty"` Releases []*ReleasesConfig `json:"releases,omitempty"` }
MigrateSpec
func (*MigrateSpec) DeepCopy ¶
func (in *MigrateSpec) DeepCopy() *MigrateSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MigrateSpec.
func (*MigrateSpec) DeepCopyInto ¶
func (in *MigrateSpec) DeepCopyInto(out *MigrateSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MigrateStatus ¶
type MigrateStatus struct { Finished string `json:"finished"` ReleaseRevision map[string]int32 `json:"ReleaseRevision,omitempty"` Conditions []MigrateCondition `json:"conditions,omitempty"` StartTime *metav1.Time `json:"startTime,omitempty"` LastUpdateTime *metav1.Time `json:"lastUpdateTime,omitempty"` }
MigrateStatus
func (*MigrateStatus) DeepCopy ¶
func (in *MigrateStatus) DeepCopy() *MigrateStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MigrateStatus.
func (*MigrateStatus) DeepCopyInto ¶
func (in *MigrateStatus) DeepCopyInto(out *MigrateStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ReleasesConfig ¶
type ReleasesConfig struct { Name string `json:"name,omitempty"` Namespace string `json:"namespace,omitempty"` Replicas int32 `json:"replicas,omitempty"` Raw string `json:"raw,omitempty"` Values map[string]string `json:"values,omitempty"` Meta map[string]string `json:"meta,omitempty"` }
ReleasesConfig
func (*ReleasesConfig) DeepCopy ¶
func (in *ReleasesConfig) DeepCopy() *ReleasesConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReleasesConfig.
func (*ReleasesConfig) DeepCopyInto ¶
func (in *ReleasesConfig) DeepCopyInto(out *ReleasesConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.