platform

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: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DataplaneTypeEnvoy represents an envoy-type dataplane.
	DataplaneTypeEnvoy = "envoy"
	// DataplaneTypeGo represents a go-type dataplane.
	DataplaneTypeGo = "go"
)
View Source
const (
	ClusterLinkInstanceTemplate = `` /* 623-byte string literal not displayed */

)

Variables

This section is empty.

Functions

func K8SCertificateConfig

func K8SCertificateConfig(config *Config) ([]byte, error)

K8SCertificateConfig returns a kubernetes secrets that contains all the certificates.

func K8SClusterLinkInstanceConfig

func K8SClusterLinkInstanceConfig(config *Config, name string) ([]byte, error)

K8SClusterLinkInstanceConfig returns a YAML file for the ClusterLink instance.

func K8SConfig

func K8SConfig(config *Config) ([]byte, error)

K8SConfig returns a kubernetes deployment file.

func K8SEmptyCertificateConfig added in v0.2.0

func K8SEmptyCertificateConfig(config *Config) ([]byte, error)

K8SEmptyCertificateConfig returns Kubernetes empty secrets for the control plane and data plane, used for deleting the secrets.

Types

type Config

type Config struct {
	// Peer is the peer name.
	Peer string
	// Namespace is the namespace the components deployed.
	Namespace string

	// FabricCertificate is the fabric certificate.
	FabricCertificate *bootstrap.Certificate
	// PeerCertificate is the peer certificate.
	PeerCertificate *bootstrap.Certificate
	// ControlplaneCertificate is the controlplane certificate.
	ControlplaneCertificate *bootstrap.Certificate
	// DataplaneCertificate is the dataplane certificate.
	DataplaneCertificate *bootstrap.Certificate
	// GWCTLCertificate is the gwctl certificate.
	GWCTLCertificate *bootstrap.Certificate

	// Dataplanes is the number of dataplane servers to run.
	Dataplanes uint16
	// DataplaneType is the type of dataplane to create (envoy or go-based)
	DataplaneType string

	// LogLevel is the log level.
	LogLevel string
	// ContainerRegistry is the container registry to pull the project images.
	ContainerRegistry string
	// Tag represents the tag of the project images.
	Tag string
	// IngressType is the type of ingress to create.
	IngressType string
	// IngressPort is the ingress port number to create.
	IngressPort uint16
	// IngressAnnotations is the annotations added to the ingress service.
	IngressAnnotations map[string]string
	// CRDMode indicates a CRD-based controlplane.
	CRDMode bool
}

Config holds a configuration to instantiate a template.

Jump to

Keyboard shortcuts

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