Documentation
¶
Index ¶
- Variables
- func AddFileIntegrityController(mgr manager.Manager, met *metrics.Metrics) error
- func GetAideConfigDefault() string
- type FileIntegrityReconciler
- func (r *FileIntegrityReconciler) FileIntegrityControllerReconcile(request reconcile.Request) (reconcile.Result, error)
- func (r *FileIntegrityReconciler) GetFailedNodes(fi *v1alpha1.FileIntegrity) ([]string, error)
- func (r *FileIntegrityReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *FileIntegrityReconciler) SetupWithManager(mgr ctrl.Manager) error
Constants ¶
This section is empty.
Variables ¶
var DefaultAideConfigCommonEnd = `# Catch everything else in /etc
/hostroot/etc/ CONTENT_EX`
var DefaultAideConfigCommonEnd018 = `# Catch everything else in /etc
/hostroot/etc/ CONTENTEX`
var DefaultAideConfigCommonStart = `` /* 511-byte string literal not displayed */
var DefaultAideConfigCommonStart018 = `` /* 521-byte string literal not displayed */
var DefaultAideConfigExclude = `` /* 858-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 ¶
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.
func GetAideConfigDefault ¶ added in v1.3.6
func GetAideConfigDefault() string
Types ¶
type FileIntegrityReconciler ¶
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.