controller

package
v0.0.0-...-82a4a0c Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PathPrefix string

Functions

func UpdateConfigMapData

func UpdateConfigMapData(config *opv1.KubeArmorConfigSpec) bool

func UpdateIfDefinedAndUpdated

func UpdateIfDefinedAndUpdated(common *string, in string) bool

func UpdateImages

func UpdateImages(config *opv1.KubeArmorConfigSpec) []string

func UpdateTlsArguments

func UpdateTlsArguments(args *[]string, action string)

func UpdateTlsData

func UpdateTlsData(config *opv1.KubeArmorConfigSpec) bool

func UpdatedKubearmorRelayEnv

func UpdatedKubearmorRelayEnv(config *opv1.KubeArmorConfigSpec) bool

func UpdatedSeccomp

func UpdatedSeccomp(config *opv1.KubeArmorConfigSpec) bool

Types

type ClusterWatcher

type ClusterWatcher struct {
	Nodes          []Node
	NodesLock      *sync.Mutex
	Log            *zap.SugaredLogger
	Client         *kubernetes.Clientset
	ExtClient      *apiextensionsclientset.Clientset
	Opv1Client     *opv1client.Clientset
	Daemonsets     map[string]int
	DaemonsetsLock *sync.Mutex
}

func NewClusterWatcher

func NewClusterWatcher(client *kubernetes.Clientset, log *zap.SugaredLogger, extClient *apiextensionsclientset.Clientset, opv1Client *opv1client.Clientset, pathPrefix, deploy_name string) *ClusterWatcher

func (*ClusterWatcher) AreAllNodesProcessed

func (clusterWatcher *ClusterWatcher) AreAllNodesProcessed() bool

func (*ClusterWatcher) DeleteAllTlsSecrets

func (clusterWatcher *ClusterWatcher) DeleteAllTlsSecrets() error

func (*ClusterWatcher) RotateTlsCerts

func (clusterWatcher *ClusterWatcher) RotateTlsCerts()

func (*ClusterWatcher) UpdateCrdStatus

func (clusterWatcher *ClusterWatcher) UpdateCrdStatus(cfg, phase, message string)

func (*ClusterWatcher) UpdateDaemonsets

func (clusterWatcher *ClusterWatcher) UpdateDaemonsets(action, enforcer, runtime, socket, btfPresent, apparmorfs, seccompPresent string)

func (*ClusterWatcher) UpdateKubeArmorConfigMap

func (clusterWatcher *ClusterWatcher) UpdateKubeArmorConfigMap(cfg *opv1.KubeArmorConfig)

func (*ClusterWatcher) UpdateKubeArmorImages

func (clusterWatcher *ClusterWatcher) UpdateKubeArmorImages(images []string) error

func (*ClusterWatcher) UpdateKubearmorRelayEnv

func (clusterWatcher *ClusterWatcher) UpdateKubearmorRelayEnv(cfg *opv1.KubeArmorConfig) error

func (*ClusterWatcher) UpdateKubearmorSeccomp

func (clusterWatcher *ClusterWatcher) UpdateKubearmorSeccomp(cfg *opv1.KubeArmorConfig) error

func (*ClusterWatcher) UpdateTlsConfigurations

func (clusterWatcher *ClusterWatcher) UpdateTlsConfigurations(tlsEnabled bool) error

func (*ClusterWatcher) UpdateTlsVolumeAndVolumeMounts

func (clusterWatcher *ClusterWatcher) UpdateTlsVolumeAndVolumeMounts(action string) error

func (*ClusterWatcher) WatchConfigCrd

func (clusterWatcher *ClusterWatcher) WatchConfigCrd()

func (*ClusterWatcher) WatchNodes

func (clusterWatcher *ClusterWatcher) WatchNodes()

func (*ClusterWatcher) WatchRequiredResources

func (clusterWatcher *ClusterWatcher) WatchRequiredResources()

func (*ClusterWatcher) WatchTlsState

func (clusterWatcher *ClusterWatcher) WatchTlsState(tlsEnabled bool) error

type Node

type Node struct {
	Name          string
	Enforcer      string
	Runtime       string
	RuntimeSocket string
	Arch          string
	BTF           string
	ApparmorFs    string
	Seccomp       string
}

Jump to

Keyboard shortcuts

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