controllers

package
v0.0.0-...-8540621 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddDefaultTableStoreSize

func AddDefaultTableStoreSize(pemMemoryRequest string, customPEMFlags map[string]string)

AddDefaultTableStoreSize computes and (if not already provided) adds the PEM flag for table store size.

func AddFeatureFlagToTemplate

func AddFeatureFlagToTemplate(client VizierFeatureFlagClient, orgID uuid.UUID, featureFlag string, pemFlag string, defaultVal interface{},
	tmplValues *vizieryamls.VizierTmplValues)

AddFeatureFlagToTemplate adds an individual feature flag to the Vizier template.

func AddFeatureFlagsToTemplate

func AddFeatureFlagsToTemplate(client VizierFeatureFlagClient, orgID uuid.UUID, tmplValues *vizieryamls.VizierTmplValues)

AddFeatureFlagsToTemplate adds any feature flags to the specified Vizier template. If the flag has already been specified by the user, we should use the value they provided.

Types

type Server

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

Server defines an gRPC server type.

func NewServer

func NewServer(atClient atpb.ArtifactTrackerClient, deployKeyClient vzmgrpb.VZDeploymentKeyServiceClient, ldSDKKey string, vzmgrClient vzmgrpb.VZMgrServiceClient) *Server

NewServer creates GRPC handlers.

func (*Server) GetConfigForOperator

func (s *Server) GetConfigForOperator(ctx context.Context, in *cpb.ConfigForOperatorRequest) (*cpb.ConfigForOperatorResponse, error)

GetConfigForOperator provides the key for the operator that is used to send errors and stacktraces to Sentry

func (*Server) GetConfigForVizier

func (s *Server) GetConfigForVizier(ctx context.Context,
	in *cpb.ConfigForVizierRequest) (*cpb.ConfigForVizierResponse, error)

GetConfigForVizier provides yaml names and content that can be used to deploy Vizier

type VizierFeatureFlagClient

type VizierFeatureFlagClient interface {
	BoolFlag(flagName string, orgID uuid.UUID, defaultVal bool) (bool, error)
	IntFlag(flagName string, orgID uuid.UUID, defaultVal int) (int, error)
}

VizierFeatureFlagClient is an interface for getting feature flags. It can be implemented with LaunchDarkly if LaunchDarkly is enabled.

func NewVizierFeatureFlagClient

func NewVizierFeatureFlagClient(ldSDKKey string) VizierFeatureFlagClient

NewVizierFeatureFlagClient creates a LaunchDarkly feature flag client if the SDK key is provided, otherwise it creates a default feature flag client which always returns the default value. If LaunchDarkly times out, it will return the default feature flag client.

Jump to

Keyboard shortcuts

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