Documentation ¶
Index ¶
- Constants
- func NewController() controller.Controller
- type PodReconciler
- func (r *PodReconciler) Healthz(*http.Request) error
- func (r *PodReconciler) Name() string
- func (r *PodReconciler) Reconcile(ctx context.Context, req reconcile.Request) (reconcile.Result, error)
- func (r *PodReconciler) SchemeBuilder() *scheme.Builder
- func (r *PodReconciler) Setup(ctx context.Context, mgr ctrl.Manager, _ *metrics.Metrics) error
Constants ¶
View Source
const (
StatusToProfLabel = "spo.x-k8s.io/profile-id"
)
Variables ¶
This section is empty.
Functions ¶
func NewController ¶ added in v0.4.0
func NewController() controller.Controller
NewController returns a new empty controller instance.
Types ¶
type PodReconciler ¶
type PodReconciler struct {
// contains filtered or unexported fields
}
A PodReconciler monitors pod changes and links them to SeccompProfiles.
func (*PodReconciler) Healthz ¶ added in v0.4.0
func (r *PodReconciler) Healthz(*http.Request) error
Healthz is the liveness probe endpoint of the controller.
func (*PodReconciler) Name ¶ added in v0.4.0
func (r *PodReconciler) Name() string
Name returns the name of the controller.
func (*PodReconciler) Reconcile ¶
func (r *PodReconciler) Reconcile(ctx context.Context, req reconcile.Request) (reconcile.Result, error)
Reconcile reacts to pod events and updates SeccompProfiles or SelinuxProfiles if in use or no longer in use by a pod.
func (*PodReconciler) SchemeBuilder ¶ added in v0.4.0
func (r *PodReconciler) SchemeBuilder() *scheme.Builder
SchemeBuilder returns the API scheme of the controller.
Click to show internal directories.
Click to hide internal directories.