Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,26 @@
"gomodTidy",
"gomodUpdateImportPaths"
],
"regexManagers": [
{
"fileMatch": ["^Makefile$"],
"matchStrings": ["CONTROLLER_TOOLS_VERSION \\?= (?<currentValue>v[\\d.]+)"],
"depNameTemplate": "sigs.k8s.io/controller-tools",
"datasourceTemplate": "go"
},
{
"fileMatch": ["^Makefile$"],
"matchStrings": ["GOLANGCI_LINT_VERSION \\?= (?<currentValue>v[\\d.]+)"],
"depNameTemplate": "github.com/golangci/golangci-lint/v2",
"datasourceTemplate": "go"
},
{
"fileMatch": ["^Makefile$"],
"matchStrings": ["GOTESTSUM_VERSION \\?= (?<currentValue>v[\\d.]+)"],
"depNameTemplate": "gotest.tools/gotestsum",
"datasourceTemplate": "go"
}
],
"packageRules": [
{
"matchPackageNames": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -294,9 +294,9 @@ ProcessLoop:
// Build rejection reason from failed commitments
if len(failedCommitments) > 0 {
var reasonBuilder strings.Builder
reasonBuilder.WriteString(fmt.Sprintf("%d commitment(s) failed to apply: ", len(failedCommitments)))
fmt.Fprintf(&reasonBuilder, "%d commitment(s) failed to apply: ", len(failedCommitments))
for commitmentUUID, reason := range failedCommitments {
reasonBuilder.WriteString(fmt.Sprintf("\n- commitment %s: %s", commitmentUUID, reason))
fmt.Fprintf(&reasonBuilder, "\n- commitment %s: %s", commitmentUUID, reason)
}
resp.RejectionReason = reasonBuilder.String()
}
Expand Down
2 changes: 1 addition & 1 deletion internal/scheduling/reservations/commitments/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ func FromChangeCommitmentTargetState(
smallestFlavorMemoryBytes := int64(smallestFlavor.MemoryMB) * 1024 * 1024 //nolint:gosec // flavor memory from specs, realistically bounded

// Amount represents multiples of the smallest flavor in the group
totalMemoryBytes := int64(amountMultiple) * smallestFlavorMemoryBytes //nolint:gosec // commitment amount from Limes API, bounded by quota limits
totalMemoryBytes := int64(amountMultiple) * smallestFlavorMemoryBytes //nolint:gosec // commitment amount from Limes API, realistically bounded

return &CommitmentState{
CommitmentUUID: string(commitment.UUID),
Expand Down
2 changes: 1 addition & 1 deletion tools/logs/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ func formatWeightMapFullColorized(weights map[string]float64, indent int) string
if i%4 == 0 {
sb.WriteString(indentStr)
}
sb.WriteString(fmt.Sprintf("%s: %.4f", colorizeHost(hw.host), hw.weight))
fmt.Fprintf(&sb, "%s: %.4f", colorizeHost(hw.host), hw.weight)
if i < len(sorted)-1 {
sb.WriteString(", ")
}
Expand Down
Loading