openshift

package
v1.4.0-rc.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 11, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const Name = "openshift"

Variables

View Source
var DefaultArguments = Config{
	ResourceAttributes: ResourceAttributesConfig{
		CloudPlatform:  rac.ResourceAttributeConfig{Enabled: true},
		CloudProvider:  rac.ResourceAttributeConfig{Enabled: true},
		CloudRegion:    rac.ResourceAttributeConfig{Enabled: true},
		K8sClusterName: rac.ResourceAttributeConfig{Enabled: true},
	},
}

DefaultArguments holds default settings for Config.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Address is the address of the openshift api server
	Address string `alloy:"address,attr,optional"`

	// Token is used to identify against the openshift api server
	Token string `alloy:"token,attr,optional"`

	// TLSSettings contains TLS configurations that are specific to client
	// connection used to communicate with the Openshift API.
	TLSSettings otelcol.TLSClientArguments `alloy:"tls,block,optional"`

	ResourceAttributes ResourceAttributesConfig `alloy:"resource_attributes,block,optional"`
}

Config can contain user-specified inputs to overwrite default values. See `openshift.go#NewDetector` for more information.

func (Config) Convert

func (args Config) Convert() map[string]interface{}

func (*Config) SetToDefault

func (args *Config) SetToDefault()

SetToDefault implements syntax.Defaulter.

type ResourceAttributesConfig

type ResourceAttributesConfig struct {
	CloudPlatform  rac.ResourceAttributeConfig `alloy:"cloud.platform,block,optional"`
	CloudProvider  rac.ResourceAttributeConfig `alloy:"cloud.provider,block,optional"`
	CloudRegion    rac.ResourceAttributeConfig `alloy:"cloud.region,block,optional"`
	K8sClusterName rac.ResourceAttributeConfig `alloy:"k8s.cluster.name,block,optional"`
}

ResourceAttributesConfig provides config for openshift resource attributes.

func (ResourceAttributesConfig) Convert

func (r ResourceAttributesConfig) Convert() map[string]interface{}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL