Commit 88412427 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

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 ```
parents c285328a f13563b7
...@@ -32,7 +32,7 @@ const ( ...@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment