fileintegrity

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultAideConfig = `` /* 1249-byte string literal not displayed */

NOTE: Needs to be in sync with `testAideConfig` in test/e2e/helpers.go, except for the heading comment.

Functions

func AddFileIntegrityController

func AddFileIntegrityController(mgr manager.Manager, met *metrics.Metrics) error

Add creates a new FileIntegrity Controller and adds it to the Manager. The Manager will set fields on the Controller and Start it when the Manager is Started.

Types

type FileIntegrityReconciler

type FileIntegrityReconciler struct {
	client.Client
	*runtime.Scheme
	*metrics.Metrics
}

FileIntegrityReconciler reconciles a FileIntegrity object

func (*FileIntegrityReconciler) FileIntegrityControllerReconcile

func (r *FileIntegrityReconciler) FileIntegrityControllerReconcile(request reconcile.Request) (reconcile.Result, error)

Note: The Controller will requeue the Request to be processed again if the returned error is non-nil or Result.Requeue is true, otherwise upon completion it will remove the work from the queue. Reconcile handles the creation and update of configMaps as well as the initial daemonSets for the AIDE pods.

func (*FileIntegrityReconciler) GetFailedNodes added in v1.3.0

func (r *FileIntegrityReconciler) GetFailedNodes(fi *v1alpha1.FileIntegrity) ([]string, error)

// GetFailedNodes from FileIntegrity instance

func (*FileIntegrityReconciler) Reconcile

func (r *FileIntegrityReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the FileIntegrity object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.10.0/pkg/reconcile

func (*FileIntegrityReconciler) SetupWithManager

func (r *FileIntegrityReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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