deploy

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// StartAll deploys the clusterlink operator, converts the peer certificates to secrets,
	// and deploys the operator ClusterLink custom resource to create the ClusterLink components.
	StartAll = "all"
	// StartOperator deploys only the operator and converts the peer certificates to secrets.
	StartOperator = "operator"
	// NoStart doesn't deploy anything but creates custom resource YAMLs.
	NoStart = "none"
)

Variables

This section is empty.

Functions

func NewCmdDeploy

func NewCmdDeploy() *cobra.Command

NewCmdDeploy returns a cobra.Command to run the deploy command.

func NewCmdDeployPeer

func NewCmdDeployPeer() *cobra.Command

NewCmdDeployPeer returns a cobra.Command to run the 'deploy peer' subcommand.

Types

type PeerOptions

type PeerOptions struct {
	// Name of the peer to deploy.
	Name string
	// Name of the fabric that the peer belongs to.
	Fabric string
	// Namespace where the ClusterLink components are deployed.
	Namespace string
	// Path is the directory where the certificates for the fabric and peer are located.
	Path string
	// StartInstance, represents which component to deploy:
	// `all` (clusterlink control-plane, data-plane and operator), `operator`, or `none`.
	StartInstance string
	// Ingress, represents the type of service used to expose the ClusterLink deployment.
	Ingress string
	// IngressPort, represents the port number of the service used to expose the ClusterLink deployment.
	IngressPort uint16
	// IngressAnnotations represents the annotations that will be added to the ingress service.
	IngressAnnotations map[string]string
	// ContainerRegistry is the container registry to pull the project images.
	ContainerRegistry string
	// Tag represents the tag of the project images.
	Tag string
	// Dataplanes is the number of dataplanes to create.
	DataplaneReplicas uint16
	// DataplaneType is the type of dataplane to create (envoy or go-based)
	DataplaneType string
	// LogLevel is the log level.
	LogLevel string
	// CRDMode indicates whether to run a k8s CRD-based controlplane.
	// This flag will be removed once the CRD-based controlplane feature is complete and stable.
	CRDMode bool
}

PeerOptions contains everything necessary to create and run a 'deploy peer' subcommand.

func (*PeerOptions) AddFlags

func (o *PeerOptions) AddFlags(fs *pflag.FlagSet)

AddFlags adds flags to fs and binds them to options.

func (*PeerOptions) RequiredFlags

func (o *PeerOptions) RequiredFlags() []string

RequiredFlags are the names of flags that must be explicitly specified.

func (*PeerOptions) Run

func (o *PeerOptions) Run() error

Run the 'deploy peer' subcommand.

Jump to

Keyboard shortcuts

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