Documentation ¶
Index ¶
Constants ¶
View Source
const ( ServicePortAnnotation = agentconfig.DomainPrefix + "inject-service-port" ServiceNameAnnotation = agentconfig.DomainPrefix + "inject-service-name" ManagerAppName = "traffic-manager" )
Variables ¶
View Source
var GeneratorConfigFunc func(qualifiedAgentImage string) (GeneratorConfig, error) //nolint:gochecknoglobals // extension point
Functions ¶
func CapsBase26 ¶
CapsBase26 converts the given number into base 26 represented using the letters 'A' to 'Z'.
Types ¶
type BasicGeneratorConfig ¶ added in v2.14.1
type BasicGeneratorConfig struct { ManagerPort uint16 AgentPort uint16 APIPort uint16 TracingPort uint16 QualifiedAgentImage string ManagerNamespace string LogLevel string InitResources *core.ResourceRequirements Resources *core.ResourceRequirements PullPolicy string PullSecrets []core.LocalObjectReference AppProtocolStrategy k8sapi.AppProtocolStrategy }
func (*BasicGeneratorConfig) Generate ¶ added in v2.14.1
func (cfg *BasicGeneratorConfig) Generate( ctx context.Context, wl k8sapi.Workload, existingConfig agentconfig.SidecarExt, ) (sc agentconfig.SidecarExt, err error)
type GeneratorConfig ¶
type GeneratorConfig interface { // Generate generates a configuration for the given workload. If replaceContainers is given it will be used to configure // container replacement EXCEPT if existingConfig is not nil, in which replaceContainers will be // ignored and the value from existingConfig used. 0 can be conventionally passed in as replaceContainers in this case. Generate( ctx context.Context, wl k8sapi.Workload, existingConfig agentconfig.SidecarExt, ) (sc agentconfig.SidecarExt, err error) }
Click to show internal directories.
Click to hide internal directories.