Documentation ¶
Index ¶
- func AddDefaultTableStoreSize(pemMemoryRequest string, customPEMFlags map[string]string)
- func AddFeatureFlagToTemplate(client VizierFeatureFlagClient, orgID uuid.UUID, featureFlag string, ...)
- func AddFeatureFlagsToTemplate(client VizierFeatureFlagClient, orgID uuid.UUID, ...)
- type Server
- type VizierFeatureFlagClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddDefaultTableStoreSize ¶
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.