Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ Markers can now indicate their priority when applying #706

Merged
merged 11 commits into from
Feb 5, 2024
Prev Previous commit
Next Next commit
change marker constants
  • Loading branch information
dprotaso committed May 29, 2023
commit 0db0ef20f77c4300804b82e9a89ccdf5b3ddc4f5
6 changes: 2 additions & 4 deletions pkg/crd/markers/priority.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,16 @@ limitations under the License.

package markers

import "math"

type ApplyPriority int64

const (
// ApplyPriorityDefault is the default priority for markers
// that don't implement ApplyPriorityMarker
ApplyPriorityDefault ApplyPriority = math.MaxInt64 >> 2
ApplyPriorityDefault ApplyPriority = 10

// ApplyPriorityFirst is the priority value assigned to markers
// that implement the ApplyFirst() method
ApplyPriorityFirst ApplyPriority = ApplyPriorityDefault - 10
ApplyPriorityFirst ApplyPriority = 1
)

// ApplyPriorityMarker designates the order markers should be applied.
Expand Down