mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-26 12:46:06 +00:00
fix comment in custommetrics
This commit is contained in:
@@ -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 {
|
||||||
|
Reference in New Issue
Block a user