mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Merge pull request #44469 from siggy/siggy/custom-metrics-comment
Automatic merge from submit-queue comment spelling correction in custommetrics **What this PR does / why we need it**: fix spelling in a comment **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes # **Special notes for your reviewer**: **Release note**: ```release-note ```
This commit is contained in:
commit
884124272a
@ -32,7 +32,7 @@ const (
|
|||||||
// Alpha implementation.
|
// Alpha implementation.
|
||||||
// Returns a path to a cAdvisor-specific custom metrics configuration.
|
// Returns a path to a cAdvisor-specific custom metrics configuration.
|
||||||
func GetCAdvisorCustomMetricsDefinitionPath(container *v1.Container) (*string, error) {
|
func GetCAdvisorCustomMetricsDefinitionPath(container *v1.Container) (*string, error) {
|
||||||
// Assuemes that the container has Custom Metrics enabled if it has "/etc/custom-metrics" directory
|
// Assumes that the container has Custom Metrics enabled if it has "/etc/custom-metrics" directory
|
||||||
// mounted as a volume. Custom Metrics definition is expected to be in "definition.json".
|
// mounted as a volume. Custom Metrics definition is expected to be in "definition.json".
|
||||||
if container.VolumeMounts != nil {
|
if container.VolumeMounts != nil {
|
||||||
for _, volumeMount := range container.VolumeMounts {
|
for _, volumeMount := range container.VolumeMounts {
|
||||||
|
Loading…
Reference in New Issue
Block a user