utils

package
v0.0.0-...-d4d4b81 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

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

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

Variables

View Source
var (
	AgentNamespace = os.Getenv("AGENT_NAMESPACE")
	Version        = os.Getenv("VERSION")
)

Functions

func PolicyAuditor

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

func RunDSInformer

func RunDSInformer(factory informers.SharedInformerFactory)

K8s informer watching for all the daemonset changes

func RunDeploymentInformer

func RunDeploymentInformer(factory informers.SharedInformerFactory)

K8s informer watching for all the deployment changes

func RunStsInformer

func RunStsInformer(factory informers.SharedInformerFactory)

K8s informer watching for all the Statefullset changes

func SendRequest

func SendRequest(workflowID string) (string, error)

Function to send request to litmus graphql server

Types

This section is empty.

Jump to

Keyboard shortcuts

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