Skip to content

fix: export ResourceUsage.Resources #20

fix: export ResourceUsage.Resources

fix: export ResourceUsage.Resources #20

Triggered via push September 12, 2024 23:23
Status Failure
Total duration 1m 16s
Artifacts

ci.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

12 errors and 1 warning
test: cmd/kuota-calc.go#L127
fmt.Fprintf format %s has arg u.Resources.CPUMin of wrong type k8s.io/apimachinery/pkg/api/resource.Quantity
test
Process completed with exit code 1.
lint: internal/calc/deployment.go#L24
newDeref: replace `*new(Resources)` with `Resources{}` (gocritic)
lint: internal/calc/deployment.go#L96
underef: could simplify (*podResources).Mul to podResources.Mul (gocritic)
lint: internal/calc/deploymentConfig.go#L24
newDeref: replace `*new(Resources)` with `Resources{}` (gocritic)
lint: internal/calc/deploymentConfig.go#L97
underef: could simplify (*podResources).Mul to podResources.Mul (gocritic)
lint: internal/calc/statefulset.go#L21
underef: could simplify (*podResources).Mul to podResources.Mul (gocritic)
lint: internal/calc/calc.go#L63
exported: exported type Resources should have comment or be unexported (revive)
lint: internal/calc/calc.go#L70
exported: exported function ConvertToResources should have comment or be unexported (revive)
lint: cmd/kuota-calc.go#L127
printf: fmt.Fprintf format %s has arg u.Resources.CPUMin of wrong type k8s.io/apimachinery/pkg/api/resource.Quantity (govet)
lint: internal/calc/calc.go#L85
return statements should not be cuddled if block has more than two lines (wsl)
lint: internal/calc/calc.go#L95
return statements should not be cuddled if block has more than two lines (wsl)
test
Failed to restore: "/usr/bin/tar" failed with error: The process '/usr/bin/tar' failed with exit code 2