Documentation ¶
Index ¶
- Constants
- Variables
- func CentralLoggingConfiguration() (component.CentralLoggingConfig, error)
- func New(client client.Client, namespace string, ...) component.DeployWaiter
- func NewCustomResourceStateConfig(options ...Option) customresourcestate.Metrics
- func WithGardenResourceMetrics(c *customresourcestate.Metrics)
- func WithVPAMetrics(c *customresourcestate.Metrics)
- type Option
- type Values
Constants ¶
const ( // SuffixSeed is the suffix for seed kube-state-metrics resources. SuffixSeed = "-seed" // SuffixRuntime is the suffix for garden-runtime kube-state-metrics resources. SuffixRuntime = "-runtime" )
Variables ¶
var TimeoutWaitForManagedResource = 2 * time.Minute
TimeoutWaitForManagedResource is the timeout used while waiting for the ManagedResources to become healthy or deleted.
Functions ¶
func CentralLoggingConfiguration ¶
func CentralLoggingConfiguration() (component.CentralLoggingConfig, error)
CentralLoggingConfiguration returns a fluent-bit parser and filter for the kube-state-metrics logs.
func New ¶
func New( client client.Client, namespace string, secretsManager secretsmanager.Interface, values Values, ) component.DeployWaiter
New creates a new instance of DeployWaiter for the kube-state-metrics.
func NewCustomResourceStateConfig ¶ added in v1.102.0
func NewCustomResourceStateConfig(options ...Option) customresourcestate.Metrics
NewCustomResourceStateConfig returns a new CustomResourceState configuration that can be serialized and passed to the kube-state-metrics binary to create metrics from custom resource definitions
func WithGardenResourceMetrics ¶ added in v1.103.0
func WithGardenResourceMetrics(c *customresourcestate.Metrics)
WithGardenResourceMetrics adds the custom resource state configuration for the Garden resource
func WithVPAMetrics ¶ added in v1.103.0
func WithVPAMetrics(c *customresourcestate.Metrics)
WithVPAMetrics adds the custom resource state configuration for the VerticalPodAutoscaler resource
Types ¶
type Option ¶ added in v1.103.0
type Option func(*customresourcestate.Metrics)
Option is a functional option type used to configure the CustomResourceState settings
type Values ¶
type Values struct { // ClusterType specifies the type of the cluster to which kube-state-metrics is being deployed. ClusterType component.ClusterType // KubernetesVersion is the Kubernetes version of the cluster. KubernetesVersion *semver.Version // Image is the container image. Image string // PriorityClassName is the name of the priority class. PriorityClassName string // Replicas is the number of replicas. Replicas int32 // NameSuffix is attached to the deployment name and related resources. NameSuffix string }
Values is a set of configuration values for the kube-state-metrics.