Skip to content
This repository has been archived by the owner on Oct 15, 2020. It is now read-only.

Commit

Permalink
Adds some logging if the instance type is not found in the mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
errm committed Sep 18, 2018
1 parent a5c1b43 commit 9df3894
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ func reservedCPU(instanceType *string) string {
}
}
if reserved == 0.0 {
log.Printf("The number of CPU cores is unknown for the %s instance type, --kube-reserved will not be configured", *instanceType)
return ""
}
return fmt.Sprintf("%.0fm", reserved)
Expand All @@ -147,6 +148,7 @@ func reservedMemory(instanceType *string) string {
}
}
if reserved == 0.0 {
log.Printf("The Memory of the %s instance type is unknown, --kube-reserved will not be configured", *instanceType)
return ""
}
return fmt.Sprintf("%.0fMi", reserved)
Expand Down

0 comments on commit 9df3894

Please sign in to comment.