operator

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: Apache-2.0 Imports: 43 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RoleHost   = "host"
	RoleMember = "member"

	ClientTLSSecretName = "api-client-tls"
)

Variables

This section is empty.

Functions

func Execute

func Execute() error

Types

type Options

type Options struct {
	Cluster string
	// ClusterRole will determine how operator will be running:
	// Host: operator will start an API server
	// Member: operator has to fetch CA cert and create certificate from host cluster's API server
	ClusterRole             string
	Namespace               string
	ClusterCIDRs            []string
	EdgePodCIDRv4           string
	EdgePodCIDRv6           string
	EdgePodCIDRMaskSizeIPv4 int
	EdgePodCIDRMaskSizeIPv6 int
	EndpointIDFormat        string
	EdgeLabels              map[string]string
	CNIType                 string
	AutoKeepIPPools         bool

	CASecretName        string
	CertValidPeriod     int64
	CertOrganization    string
	Agent               agentctl.Config
	Connector           connectorctl.Config
	ConnectorPublicPort uint
	ConnectorAsMediator bool

	ManagerOpts manager.Options

	APIServerCertFile      string
	APIServerKeyFile       string
	APIServerListenAddress string
	APIServerAddress       string
	TokenValidPeriod       time.Duration
	InitToken              string

	Store           storepkg.Interface
	ClusterCIDRsMap *types.ClusterCIDRsMap
	PodCIDRStore    types.PodCIDRStore
	NewEndpoint     types.NewEndpointFunc
	Manager         manager.Manager
	APIServer       *http.Server
	APIClient       fclient.Interface
	PrivateKey      *rsa.PrivateKey
}

func (*Options) AddFlags

func (opts *Options) AddFlags(flag *pflag.FlagSet)

func (*Options) Complete

func (opts *Options) Complete() (err error)

func (*Options) ExtractAgentArgumentMap added in v0.6.0

func (opts *Options) ExtractAgentArgumentMap()

ExtractAgentArgumentMap extract arguments of agent pod

func (Options) RunManager

func (opts Options) RunManager() error

func (Options) Validate

func (opts Options) Validate() (err error)

Directories

Path Synopsis
controllers

Jump to

Keyboard shortcuts

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