Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
jacksontong committed Apr 14, 2024
1 parent d6fa4b2 commit ddf3bca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion api/application/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -479,11 +479,11 @@ type UpgradeJobSpec struct {
Target string
AppRefer string

Pause bool
BatchNum *int32
BatchIntervalSeconds *int32
MaxFailed *int32
MaxSurge *int32
Pause bool
}

// UpgradeJobStatus is the status of a upgradeJob.
Expand Down
6 changes: 3 additions & 3 deletions api/application/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -496,9 +496,6 @@ type UpgradeJobSpec struct {
// +optional
AppRefer string `json:"appRefer" protobuf:"bytes,3,opt,name=appRefer"`

// +optional
Pause bool `json:"pause" protobuf:"bytes,3,opt,name=pause"`

BatchNum *int32 `json:"batchNum" protobuf:"varint,4,opt,name=batchNum"`

// this is set to 30 by default
Expand All @@ -512,6 +509,9 @@ type UpgradeJobSpec struct {
// this is set to 3 by default
// +optional
MaxSurge *int32 `json:"maxSurge" protobuf:"varint,7,opt,name=maxSurge"`

// +optional
Pause bool `json:"pause" protobuf:"varint,8,opt,name=pause"`
}

// UpgradeJobStatus is the status of a upgradeJob.
Expand Down

0 comments on commit ddf3bca

Please sign in to comment.