observability

package
v0.0.0-...-197a678 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Public Constants
	StackstateName         = "stackstate"
	ObservabilitySteveType = "configurations.observability.rancher.io"
	CrdGroup               = "observability.rancher.io"
	ApiExtenisonsCRD       = "apiextensions.k8s.io.customresourcedefinition"
)

Variables

This section is empty.

Functions

func InstallStackstateCRD

func InstallStackstateCRD(client *rancher.Client) error

InstallStackstateCRD is a helper that utilizes the rancher client and installs the stackstate crds.

func NewStackstateCRDConfiguration

func NewStackstateCRDConfiguration(namespace, name string, stackstateCRDConfig *StackStateConfig) *unstructured.Unstructured

NewStackstateCRDConfiguration is a constructor that takes in the configuration and creates an unstructured type to install the CRD

func WhitelistStackstateDomains

func WhitelistStackstateDomains(client *rancher.Client, whitelistDomains []string) error

WhitelistStackstateDomains is a helper that utilizes the rancher client and add the stackstate domains to whitelist them. This is a temporary solution from upstream and will need to be removed once this has been fixed.

Types

type StackStateConfig

type StackStateConfig struct {
	ServiceToken   string `json:"serviceToken" yaml:"serviceToken"`
	Url            string `json:"url" yaml:"url"`
	ClusterApiKey  string `json:"clusterApiKey" yaml:"clusterApiKey"`
	UpgradeVersion string `json:"upgradeVersion" yaml:"upgradeVersion"`
}

Jump to

Keyboard shortcuts

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