spoketoken

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(mgr manager.Manager, hubconfig *rest.Config, syncid *types.NamespacedName, standalone bool) error

Add creates a new agent token controller and adds it to the Manager if standalone is false.

Types

type Config

type Config struct {
	BearerToken     string          `json:"bearerToken"`
	TLSClientConfig map[string]bool `json:"tlsClientConfig"`
}

type ReconcileAgentToken

type ReconcileAgentToken struct {
	client.Client
	// contains filtered or unexported fields
}

ReconcileAppMgrToken syncid is the namespaced name of this managed cluster. host is the API server URL of this managed cluster.

func (*ReconcileAgentToken) Reconcile

func (r *ReconcileAgentToken) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)

Reconciles <clusterName>-cluster-secret secret in the managed cluster's namespace on the hub cluster to the klusterlet-addon-appmgr service account's token secret. If it is running on the hub, don't do anything.

Jump to

Keyboard shortcuts

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