Skip to content

Commit

Permalink
bumping version to 0.1.1, readme update
Browse files Browse the repository at this point in the history
  • Loading branch information
robscott committed Feb 4, 2019
1 parent 50a6f58 commit 6acd6c9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ example-node-2 tiller tiller-deploy 140m (14%) 180m (18%)

It's worth noting that utilization numbers from pods will likely not add up to the total node utilization numbers. Unlike request and limit numbers where node and cluster level numbers represent a sum of pod values, node metrics come directly from metrics-server and will likely include other forms of resource utilization.

## Kubernetes Configuration
If a `KUBECONFIG` environment variable is specified, rbac-lookup will attempt to use the config at that path, otherwise it will default to `~/.kube/config`.

## Similar Projects
There are already some great projects out there that have similar goals.

Expand Down
4 changes: 2 additions & 2 deletions pkg/capacity/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,9 @@ func resourceString(actual, allocatable resource.Quantity, resourceType string)
if allocatable.MilliValue() > 0 {
utilPercent = float64(actual.MilliValue()) / float64(allocatable.MilliValue()) * 100
}

if resourceType == "cpu" {
return fmt.Sprintf("%dm (%d%%)", actual.MilliValue(), int64(utilPercent))
} else {
return fmt.Sprintf("%dMi (%d%%)", actual.Value()/1048576, int64(utilPercent))
}
return fmt.Sprintf("%dMi (%d%%)", actual.Value()/1048576, int64(utilPercent))
}
2 changes: 1 addition & 1 deletion pkg/cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ var versionCmd = &cobra.Command{
Use: "version",
Short: "Print the version number of kube-capacity",
Run: func(cmd *cobra.Command, args []string) {
fmt.Println("kube-capacity version 0.1.0")
fmt.Println("kube-capacity version 0.1.1")
},
}

0 comments on commit 6acd6c9

Please sign in to comment.