falcon

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2023 License: Apache-2.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FcLabels = map[string]string{
		common.FalconInstanceNameKey: injectorName,
		common.FalconInstanceKey:     "container_sensor",
		common.FalconComponentKey:    "container_sensor",
		common.FalconManagedByKey:    injectorName,
		common.FalconProviderKey:     common.FalconProviderValue,
		common.FalconPartOfKey:       "Falcon",
		common.FalconControllerKey:   "controller-manager",
	}
)

Functions

This section is empty.

Types

type FalconContainerReconciler

type FalconContainerReconciler struct {
	client.Client
	Log        logr.Logger
	Scheme     *runtime.Scheme
	RestConfig *rest.Config
}

FalconContainerReconciler reconciles a FalconContainer object

func (*FalconContainerReconciler) Create

func (r *FalconContainerReconciler) Create(ctx context.Context, falconContainer *v1alpha1.FalconContainer, obj runtime.Object) error

func (*FalconContainerReconciler) Delete

func (r *FalconContainerReconciler) Delete(ctx context.Context, falconContainer *v1alpha1.FalconContainer, obj runtime.Object) error

func (*FalconContainerReconciler) Error

func (r *FalconContainerReconciler) Error(ctx context.Context, req ctrl.Request, falconContainer *v1alpha1.FalconContainer, message string)

func (*FalconContainerReconciler) Namespace

func (r *FalconContainerReconciler) Namespace() string

func (*FalconContainerReconciler) NamespaceLabels

func (r *FalconContainerReconciler) NamespaceLabels() map[string]string

func (*FalconContainerReconciler) PushImage

func (r *FalconContainerReconciler) PushImage(ctx context.Context, falconContainer *v1alpha1.FalconContainer) error

func (*FalconContainerReconciler) Reconcile

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

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

func (*FalconContainerReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

func (*FalconContainerReconciler) Update

func (r *FalconContainerReconciler) Update(ctx context.Context, falconContainer *v1alpha1.FalconContainer, obj runtime.Object) error

func (*FalconContainerReconciler) UpdateStatus

func (*FalconContainerReconciler) UpsertECRRepo

func (r *FalconContainerReconciler) UpsertECRRepo(ctx context.Context) (*types.Repository, error)

type ImageRefresher

type ImageRefresher struct {
	// contains filtered or unexported fields
}

func NewImageRefresher

func NewImageRefresher(ctx context.Context, log logr.Logger, falconConfig *falcon.ApiConfig, pushAuth auth.Credentials, insecureSkipTLSVerify bool) *ImageRefresher

func (*ImageRefresher) Refresh

func (r *ImageRefresher) Refresh(imageDestination string, versionRequested *string) (string, error)

Jump to

Keyboard shortcuts

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