diff --git a/apis/project.cattle.io/v3/zz_generated_deepcopy.go b/apis/project.cattle.io/v3/zz_generated_deepcopy.go index c6c87a1e..bc08f671 100644 --- a/apis/project.cattle.io/v3/zz_generated_deepcopy.go +++ b/apis/project.cattle.io/v3/zz_generated_deepcopy.go @@ -1310,6 +1310,11 @@ func (in *PipelineConfig) DeepCopyInto(out *PipelineConfig) { *out = new(Constraint) (*in).DeepCopyInto(*out) } + if in.Notification != nil { + in, out := &in.Notification, &out.Notification + *out = new(PipelineNotification) + (*in).DeepCopyInto(*out) + } return } @@ -1463,6 +1468,32 @@ func (in *PipelineList) DeepCopyObject() runtime.Object { return nil } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *PipelineNotification) DeepCopyInto(out *PipelineNotification) { + *out = *in + if in.Recipients != nil { + in, out := &in.Recipients, &out.Recipients + *out = make([]Recipient, len(*in)) + copy(*out, *in) + } + if in.Condition != nil { + in, out := &in.Condition, &out.Condition + *out = make(stringorslice, len(*in)) + copy(*out, *in) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineNotification. +func (in *PipelineNotification) DeepCopy() *PipelineNotification { + if in == nil { + return nil + } + out := new(PipelineNotification) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *PipelineSetting) DeepCopyInto(out *PipelineSetting) { *out = *in @@ -1636,6 +1667,22 @@ func (in *PushPipelineConfigInput) DeepCopy() *PushPipelineConfigInput { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *Recipient) DeepCopyInto(out *Recipient) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Recipient. +func (in *Recipient) DeepCopy() *Recipient { + if in == nil { + return nil + } + out := new(Recipient) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *RegistryCredential) DeepCopyInto(out *RegistryCredential) { *out = *in diff --git a/client/project/v3/zz_generated_pipeline_config.go b/client/project/v3/zz_generated_pipeline_config.go index 8c88a519..94296631 100644 --- a/client/project/v3/zz_generated_pipeline_config.go +++ b/client/project/v3/zz_generated_pipeline_config.go @@ -1,14 +1,16 @@ package client const ( - PipelineConfigType = "pipelineConfig" - PipelineConfigFieldBranch = "branch" - PipelineConfigFieldStages = "stages" - PipelineConfigFieldTimeout = "timeout" + PipelineConfigType = "pipelineConfig" + PipelineConfigFieldBranch = "branch" + PipelineConfigFieldNotification = "notification" + PipelineConfigFieldStages = "stages" + PipelineConfigFieldTimeout = "timeout" ) type PipelineConfig struct { - Branch *Constraint `json:"branch,omitempty" yaml:"branch,omitempty"` - Stages []Stage `json:"stages,omitempty" yaml:"stages,omitempty"` - Timeout int64 `json:"timeout,omitempty" yaml:"timeout,omitempty"` + Branch *Constraint `json:"branch,omitempty" yaml:"branch,omitempty"` + Notification *PipelineNotification `json:"notification,omitempty" yaml:"notification,omitempty"` + Stages []Stage `json:"stages,omitempty" yaml:"stages,omitempty"` + Timeout int64 `json:"timeout,omitempty" yaml:"timeout,omitempty"` } diff --git a/client/project/v3/zz_generated_pipeline_notification.go b/client/project/v3/zz_generated_pipeline_notification.go new file mode 100644 index 00000000..32bc88ed --- /dev/null +++ b/client/project/v3/zz_generated_pipeline_notification.go @@ -0,0 +1,14 @@ +package client + +const ( + PipelineNotificationType = "pipelineNotification" + PipelineNotificationFieldCondition = "condition" + PipelineNotificationFieldMessage = "message" + PipelineNotificationFieldRecipients = "recipients" +) + +type PipelineNotification struct { + Condition []string `json:"condition,omitempty" yaml:"condition,omitempty"` + Message string `json:"message,omitempty" yaml:"message,omitempty"` + Recipients []Recipient `json:"recipients,omitempty" yaml:"recipients,omitempty"` +} diff --git a/client/project/v3/zz_generated_recipient.go b/client/project/v3/zz_generated_recipient.go new file mode 100644 index 00000000..27c4c3d9 --- /dev/null +++ b/client/project/v3/zz_generated_recipient.go @@ -0,0 +1,12 @@ +package client + +const ( + RecipientType = "recipient" + RecipientFieldNotifier = "notifier" + RecipientFieldRecipient = "recipient" +) + +type Recipient struct { + Notifier string `json:"notifier,omitempty" yaml:"notifier,omitempty"` + Recipient string `json:"recipient,omitempty" yaml:"recipient,omitempty"` +}