node

package
v0.0.0-...-5b8e9e1 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Overview

Copyright 2018 The Kubernetes Authors.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

View Source
const (
	// RETRY_COUNT controls the number of retries of writing NodeStatus update.
	RETRY_COUNT = 5

	// NODE_CONTROLLER name of node controller
	NODE_CONTROLLER = "cloud-node-controller"

	// MAX_BATCH_NUM batch process per loop.
	MAX_BATCH_NUM = 50
)

Variables

View Source
var ErrNotFound = errors.New("instance not found")

Functions

func Add

func Add(mgr manager.Manager, ctx *shared.SharedContext) error

func NewEnqueueRequestForNodeEvent

func NewEnqueueRequestForNodeEvent() *enqueueRequestForNodeEvent

NewEnqueueRequestForNodeEvent, event handler for node event

func NodeList

func NodeList(kclient client.Client) (*v1.NodeList, error)

Types

type ReconcileNode

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

ReconcileNode reconciles a AutoRepair object

func (*ReconcileNode) PeriodicalSync

func (m *ReconcileNode) PeriodicalSync()

func (*ReconcileNode) Reconcile

func (m *ReconcileNode) Reconcile(_ context.Context, request reconcile.Request) (reconcile.Result, error)

Jump to

Keyboard shortcuts

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