1
0
mirror of https://github.com/rancher/norman.git synced 2025-08-20 16:23:07 +00:00
norman/pkg/kwrapper/k8s/k3s.go
Ricardo Weir 20335edec8 Remove controller metrics
Norman metrics' labels have too high of a cardinality as they
include object key as a label. This is a problem because metrics
produces a data row for every combination of labels. This can
have a large impact on performance and is cautioned against in
the prometheus docs. Norman now uses lasso which has metrics with
matching functionality apart from the object key, so norman
metrics will be removed in favor of lasso metrics.
2022-04-27 11:45:54 -07:00

16 lines
263 B
Go

//go:build !linux
// +build !linux
package k8s
import (
"context"
"fmt"
"k8s.io/client-go/tools/clientcmd"
)
func getEmbedded(ctx context.Context) (bool, clientcmd.ClientConfig, error) {
return false, nil, fmt.Errorf("embedded only supported on linux")
}