mirror of https://github.com/k3s-io/k3s
fix comment in custommetrics
parent
ef2edcc94e
commit
f13563b73a
|
@ -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