Skip to content

Commit

Permalink
reorder volume claim batch request raft message
Browse files Browse the repository at this point in the history
For backwards compatibility during upgrades, new raft message types
need to come at the end of the enum.
  • Loading branch information
tgross committed May 6, 2020
1 parent 1531db8 commit 7c5cd22
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nomad/structs/structs.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ var (

type MessageType uint8

// note: new raft message types need to be added to the end of this
// list of contents
const (
NodeRegisterRequestType MessageType = iota
NodeDeregisterRequestType
Expand Down Expand Up @@ -90,8 +92,8 @@ const (
CSIVolumeRegisterRequestType
CSIVolumeDeregisterRequestType
CSIVolumeClaimRequestType
CSIVolumeClaimBatchRequestType
ScalingEventRegisterRequestType
CSIVolumeClaimBatchRequestType
)

const (
Expand Down

0 comments on commit 7c5cd22

Please sign in to comment.