Documentation ¶
Index ¶
- Variables
- func GetImage(apiReader client.Reader, key client.ObjectKey) (string, error)
- func SetupCRBReconciler(mgr manager.Manager) error
- func SetupPodWatcher(mgr ctrl.Manager, ns, name string, ft founat.FoUTunnel, encapSportAuto bool, ...) error
- type AddressBlockReconciler
- type AddressPoolReconciler
- type BlockRequestReconciler
- type BlockRequestWatcher
- type EgressReconciler
- type EgressWatcher
Constants ¶
This section is empty.
Variables ¶
var ( ClientPods = prometheus.NewGaugeVec( prometheus.GaugeOpts{ Namespace: constants.MetricsNS, Subsystem: "egress", Name: "client_pod_count", Help: "the number of client pods which use this egress", }, []string{"namespace", "egress"}, ) ClientPodInfo = prometheus.NewGaugeVec( prometheus.GaugeOpts{ Namespace: constants.MetricsNS, Subsystem: "egress", Name: "client_pod_info", Help: "information of a client pod which uses this egress", }, []string{"namespace", "pod", "pod_ip", "interface", "egress", "egress_namespace"}, ) )
Functions ¶
func GetImage ¶
GetImage returns the current pod's container image. This is intended to prepare the image name for EgressReconciler.
func SetupCRBReconciler ¶
SetupCRBReconciler setups ClusterResourceBinding reconciler for coil-controller.
Types ¶
type AddressBlockReconciler ¶
type AddressBlockReconciler struct {
Notify chan<- struct{}
}
AddressBlockReconciler watches AddressBlocks and notifies a channel
func (*AddressBlockReconciler) Reconcile ¶
func (r *AddressBlockReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile implements Reconciler interface.
func (*AddressBlockReconciler) SetupWithManager ¶
func (r *AddressBlockReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager registers this with the manager.
type AddressPoolReconciler ¶
AddressPoolReconciler watches child AddressBlocks and pool itself for deletion.
func (*AddressPoolReconciler) Reconcile ¶
func (r *AddressPoolReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile implements Reconciler interface. https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.8.3/pkg/reconcile?tab=doc#Reconciler
func (*AddressPoolReconciler) SetupWithManager ¶
func (r *AddressPoolReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager registers this with the manager.
type BlockRequestReconciler ¶
type BlockRequestReconciler struct { client.Client Scheme *runtime.Scheme Manager ipam.PoolManager }
BlockRequestReconciler reconciles a BlockRequest object
func (*BlockRequestReconciler) Reconcile ¶
func (r *BlockRequestReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile implements Reconciler interface. https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.8.3/pkg/reconcile?tab=doc#Reconciler
func (*BlockRequestReconciler) SetupWithManager ¶
func (r *BlockRequestReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager registers this with the manager.
type BlockRequestWatcher ¶
BlockRequestWatcher watches BlockRequest status on each node.
func (*BlockRequestWatcher) Reconcile ¶
Reconcile implements Reconcile interface. https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.8.3/pkg/reconcile?tab=doc#Watcher
func (*BlockRequestWatcher) SetupWithManager ¶
func (r *BlockRequestWatcher) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager registers this with the manager.
type EgressReconciler ¶
EgressReconciler reconciles a Egress object
func (*EgressReconciler) Reconcile ¶
Reconcile implements Reconciler interface. - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.8.3/pkg/reconcile
func (*EgressReconciler) SetupWithManager ¶
func (r *EgressReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager registers this with the manager.
type EgressWatcher ¶ added in v2.5.0
type EgressWatcher struct { client.Client NodeName string PodNet nodenet.PodNetwork EgressPort int }
func (*EgressWatcher) Reconcile ¶ added in v2.5.0
Reconcile implements Reconciler interface. - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.8.3/pkg/reconcile
func (*EgressWatcher) SetupWithManager ¶ added in v2.5.0
func (r *EgressWatcher) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager registers this with the manager.