Skip to content

Commit

Permalink
Minor fixes (#700)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelawyu authored Feb 29, 2024
1 parent 67256dd commit 3e74bfa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions apis/placement/v1beta1/clusterresourceplacement_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -239,10 +239,10 @@ const (
//
// * a weight of 100 to the cluster with the maximum observed value (100); and
// * a weight of 0 to the cluster with the minimum observed value (10); and
// * a weight of 89 to the cluster with an observed value of 20.
// * a weight of 11 to the cluster with an observed value of 20.
//
// It is calculated using the formula below:
// (1 - ((20 - 10) / (100 - 10))) * 100 = 89
// ((20 - 10)) / (100 - 10)) * 100 = 11
Descending PropertySortOrder = "Descending"

// Ascending instructs Fleet to sort in ascending order, that is, the clusters with lower
Expand All @@ -255,10 +255,10 @@ const (
//
// * a weight of 0 to the cluster with the maximum observed value (100); and
// * a weight of 100 to the cluster with the minimum observed value (10); and
// * a weight of 11 to the cluster with an observed value of 20.
// * a weight of 89 to the cluster with an observed value of 20.
//
// It is calculated using the formula below:
// ((20 - 10)) / (100 - 10)) * 100 = 11
// (1 - ((20 - 10) / (100 - 10))) * 100 = 89
Ascending PropertySortOrder = "Ascending"
)

Expand Down

0 comments on commit 3e74bfa

Please sign in to comment.