Skip to content

Commit

Permalink
Merge pull request #1442 from dgrisonnet/fix-singular-name-0.7
Browse files Browse the repository at this point in the history
release-0.7: Fix kubectl get PodMetrics/NodeMetrics
  • Loading branch information
k8s-ci-robot committed Mar 13, 2024
2 parents e0a95ff + 9ea6311 commit 89490cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/api/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,5 +178,5 @@ func (m *nodeMetrics) NamespaceScoped() bool {

// GetSingularName implements rest.SingularNameProvider interface
func (m *nodeMetrics) GetSingularName() string {
return "node"
return ""
}
2 changes: 1 addition & 1 deletion pkg/api/pod.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,5 +185,5 @@ func (m *podMetrics) NamespaceScoped() bool {

// GetSingularName implements rest.SingularNameProvider interface
func (m *podMetrics) GetSingularName() string {
return "pod"
return ""
}

0 comments on commit 89490cb

Please sign in to comment.