unitcluster

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 2 more Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultKinsNamespace          = "kins-system"
	KinsResourceNameSuffix        = "kins"
	KinsResourceLabelKey          = "site.superedge.io/kins-resource"
	KinsRoleLabelKey              = "site.superedge.io/kins-role"
	KinsUnitClusterClearAnno      = "site.superedge.io/clear-cluster"
	KinsRoleLabelServer           = "server"
	KinsRoleLabelAgent            = "agent"
	DefaultKinsServiceCIDR        = "26.%d.0.%s"
	DefaultKinsNodePortRangeStart = 40000
	DefaultKinsCRIWImage          = "ccr.ccs.tencentyun.com/tkeedge/cri-w:v0.1.0"
	DefaultK3SImage               = "ccr.ccs.tencentyun.com/tkeedge/k3s:v1.22.6-revison-1"

	ParameterK3SImageKey      = "k3s-image"
	ParameterCRIWImageKey     = "criw-image"
	ParameterServiceCIDRKey   = "service-cidr"
	ParameterNodePortRangeKey = "node-port-range"
)
View Source
const Finalizers = `
{"metadata":{"finalizers":null}}
`
View Source
const ServerLabel = `
{"metadata":{"labels":{"site.superedge.io/kins-role":null}}}
`

Variables

This section is empty.

Functions

func BuildUnitClusterClientSet

func BuildUnitClusterClientSet(k8sClientSet clientset.Interface, nu *sitev1alpha2.NodeUnit) (clientset.Interface, error)

Types

type KinsController

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

func NewKinsController

func NewKinsController(
	kubeClient clientset.Interface,
	crdClient *crdClientset.Clientset,
	nodeLister corelisters.NodeLister,
	dsLister applisters.DaemonSetLister,
	nodeUnitLister crdv1listers.NodeUnitLister,
) *KinsController

func (*KinsController) ReconcileUnitCluster

func (kc *KinsController) ReconcileUnitCluster(nu *sitev1alpha2.NodeUnit) error

func (*KinsController) UpdateUnitClusterStatus

func (kc *KinsController) UpdateUnitClusterStatus(nu *sitev1alpha2.NodeUnit) (*sitev1alpha2.UnitClusterStatus, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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