common

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2025 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoWebhookServicePodReady = errors.New("no webhook service pod found in a Ready state")

Functions

func CheckRunningPodLabels added in v1.0.0

func CheckRunningPodLabels(r client.Reader, ctx context.Context, namespace string, matchingLabels client.MatchingLabels) (bool, error)

func ConditionsUpdate

func ConditionsUpdate(r client.Client, ctx context.Context, req ctrl.Request, log logr.Logger, falconObject client.Object, falconStatus *falconv1alpha1.FalconCRStatus, falconCondition metav1.Condition) error

ConditionsUpdate updates the Falcon Object CR conditions

func Create

func Create(r client.Client, sch *runtime.Scheme, ctx context.Context, req ctrl.Request, log logr.Logger, falconObject client.Object, falconStatus *falconv1alpha1.FalconCRStatus, obj runtime.Object) error

func Delete

func Delete(r client.Client, ctx context.Context, req ctrl.Request, log logr.Logger, falconObject client.Object, falconStatus *falconv1alpha1.FalconCRStatus, obj runtime.Object) error

func GetDeployment

func GetDeployment(r client.Client, ctx context.Context, namespace string, matchingLabels client.MatchingLabels) (*appsv1.Deployment, error)

func GetOpenShiftNamespaceNamesSort added in v1.0.0

func GetOpenShiftNamespaceNamesSort(ctx context.Context, cli client.Reader) ([]string, error)

func GetReadyPod

func GetReadyPod(r client.Reader, ctx context.Context, namespace string, matchingLabels client.MatchingLabels) (*corev1.Pod, error)

func GetRunningFalconNS added in v1.0.0

func GetRunningFalconNS(r client.Reader, ctx context.Context) ([]string, error)

func NewReconcileTrigger added in v1.2.0

func NewReconcileTrigger(c controller.Controller) (func(client.Object), error)

func Update

func Update(r client.Client, ctx context.Context, req ctrl.Request, log logr.Logger, falconObject client.Object, falconStatus *falconv1alpha1.FalconCRStatus, obj runtime.Object) error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳