utils

package
v0.0.0-...-bcdb799 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AgentConfigName = "subscriber-config"
	AgentSecretName = "subscriber-secret"

	ConditionPassed = "ConditionPassed"
)
View Source
const (
	StateFulSet = "statefulset"
	Deployment  = "deployment"
	DaemonSet   = "daemonset"
)

Variables

This section is empty.

Functions

func PolicyAuditor

func PolicyAuditor(resourceType string, newObj interface{}, oldObj interface{}, experimentId string) error

func RunDSInformer

func RunDSInformer(factory informers.SharedInformerFactory)

RunDSInformer K8s informer watching for all the daemonset changes

func RunDeploymentInformer

func RunDeploymentInformer(factory informers.SharedInformerFactory)

RunDeploymentInformer K8s informer watching for all the deployment changes

func RunStsInformer

func RunStsInformer(factory informers.SharedInformerFactory)

RunStsInformer K8s informer watching for all the Statefullset changes

func SendRequest

func SendRequest(experimentId string) (string, error)

SendRequest Function to send request to litmus graphql server

Types

type Envs

type Envs struct {
	Version          string `required:"true"`
	InfraScope       string `required:"true" split_words:"true"`
	IsInfraConfirmed string `required:"true" split_words:"true"`
	AccessKey        string `required:"true" split_words:"true"`
	InfraId          string `required:"true" split_words:"true"`
	ServerAddr       string `required:"true" split_words:"true"`
	InfraNamespace   string `required:"true" split_words:"true"`
	CustomTLSCert    string `envconfig:"CUSTOM_TLS_CERT" split_words:"true"`
	SkipSSLVerify    bool   `default:"false" split_words:"true"`
}
var Config Envs

Jump to

Keyboard shortcuts

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