agent

package
v0.0.0-...-ddc3efe Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	HeartBeatDelay = time.Second * 5
)

Functions

func BuildHubClusterConfig

func BuildHubClusterConfig(spokeClient client.Client, jcc *JoinedClusterCoordinates) (*rest.Config, error)

Types

type JoinedClusterCoordinates

type JoinedClusterCoordinates struct {
	APIEndpoint string
	Name        string
	Namespace   string
	Token       []byte
	CABundle    []byte
}

func GetJoinedClusterCoordinates

func GetJoinedClusterCoordinates(spokeClient client.Client) (*JoinedClusterCoordinates, error)

type JoinedClusterReconciler

type JoinedClusterReconciler struct {
	HubClient       client.Client
	SpokeClient     client.Client
	DiscoveryClient *discovery.DiscoveryClient
	Log             logr.Logger
}

JoinedClusterReconciler reconciles a JoinedCluster object

func (*JoinedClusterReconciler) Reconcile

func (r *JoinedClusterReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)

func (*JoinedClusterReconciler) SetupWithManager

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

Jump to

Keyboard shortcuts

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