Skip to content

Commit

Permalink
Merge pull request #1151 from machi1990/chore/add-comments
Browse files Browse the repository at this point in the history
chore(types): add comments to DynamicCapacityInfo struct
  • Loading branch information
machi1990 committed Jun 30, 2022
2 parents 7e779b4 + f701088 commit c2f44a9
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions pkg/api/cluster_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,14 @@ type StrimziVersion struct {
}

type DynamicCapacityInfo struct {
MaxNodes int32 `json:"max_nodes"`
MaxUnits int32 `json:"max_units"`
//MaxNodes is the maximum number of worker nodes assigned to the corresponding machine pool.
//The value is read from the configuration and updated once the machine pool has been created
MaxNodes int32 `json:"max_nodes"`
//MaxUnits is the maximum number of streaming units that can fit into the given MaxNodes value.
//The value is updated each time by kas-fleetshard-sync cluster status update API call
MaxUnits int32 `json:"max_units"`
//RemainingUnits is the remaining number of streaming units to be placed into the machine pool.
// The value is updated each time by kas-fleetshard-sync cluster status update API call
RemainingUnits int32 `json:"remaining_units"`
}

Expand Down

0 comments on commit c2f44a9

Please sign in to comment.