discovery

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ClusternetAgentDeployment is the clusternet-agent Deployment manifest
	ClusternetAgentDeployment = `` /* 2045-byte string literal not displayed */

	// ClusternetAgentRBACRules is the clusternet-agent RBAC rules manifest
	ClusternetAgentRBACRules = `` /* 1730-byte string literal not displayed */

)

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterMetadata

type ClusterMetadata struct {
	Name      string
	Namespace string

	UID types.UID

	CreationTimestamp metav1.Time
	DeletionTimestamp *metav1.Time

	Labels      map[string]string
	Annotations map[string]string

	// FailureMessage indicates that there is a fatal problem reconciling the
	// state, and will be set to a descriptive error message.
	FailureMessage *string

	// Phase represents the current phase of cluster actuation.
	Phase string
}

type Controller

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

Controller is a controller that discovers clusters provisioned with cluster-api. Please make sure that feature gate ClusterResourceSet is enabled in capi-controller-manager running in cluster-api management cluster. This controller only interacts with cluster-api management cluster

func NewController

func NewController(clusterapiClient dynamic.Interface, kubeClient kubernetes.Interface, defaultResync time.Duration) *Controller

NewController creates a new Controller

func (*Controller) Run

func (c *Controller) Run(ctx context.Context)

type RegistrationConfig

type RegistrationConfig struct {
	Image             []byte `json:"image,omitempty"`
	ParentURL         []byte `json:"parentURL,omitempty"`
	RegistrationToken []byte `json:"regToken,omitempty"`
}

Jump to

Keyboard shortcuts

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