controllers

package
v0.0.0-...-61a2cff Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetResourceName

func GetResourceName(namespaceName, podName string, seqID int64) string

Types

type PodResourceReconciler

type PodResourceReconciler struct {
	client.Client
	Scheme *runtime.Scheme
	logr.Logger
	MeteringSystemNamespace string
}

PodResourceReconciler reconciles a PodResource object

func (*PodResourceReconciler) CreateOrUpdateExtensionResourcesPrice

func (r *PodResourceReconciler) CreateOrUpdateExtensionResourcesPrice(ctx context.Context, obj client.Object) error

CreateOrUpdateExtensionResourcesPrice need to create a ExtensionResourcesPrice to make metering-quota know this resource

func (*PodResourceReconciler) Reconcile

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

func (*PodResourceReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

func (*PodResourceReconciler) UpdateResourceUsed

func (r *PodResourceReconciler) UpdateResourceUsed(ctx context.Context, obj client.Object) error

Jump to

Keyboard shortcuts

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