Documentation ¶
Index ¶
- Constants
- func CapsBase26(v uint64) string
- func FindOwnerWorkload(ctx context.Context, obj k8sapi.Object) (k8sapi.Workload, error)
- func Generate(ctx context.Context, wl k8sapi.Workload, cfg *GeneratorConfig) (sc *agentconfig.Sidecar, err error)
- func GenerateForPod(ctx context.Context, pod *core.Pod, env *GeneratorConfig) (*agentconfig.Sidecar, error)
- type GeneratorConfig
Constants ¶
View Source
const ( ServicePortAnnotation = agentconfig.DomainPrefix + "inject-service-port" ServiceNameAnnotation = agentconfig.DomainPrefix + "inject-service-name" ManagerAppName = "traffic-manager" ManagerPortHTTP = 8081 AgentInjectorName = "agent-injector" )
Variables ¶
This section is empty.
Functions ¶
func CapsBase26 ¶
CapsBase26 converts the given number into base 26 represented using the letters 'A' to 'Z'
func FindOwnerWorkload ¶
func Generate ¶
func Generate(ctx context.Context, wl k8sapi.Workload, cfg *GeneratorConfig) (sc *agentconfig.Sidecar, err error)
func GenerateForPod ¶
func GenerateForPod(ctx context.Context, pod *core.Pod, env *GeneratorConfig) (*agentconfig.Sidecar, error)
Types ¶
type GeneratorConfig ¶
type GeneratorConfig struct { AgentPort uint16 APIPort uint16 TracingPort uint16 QualifiedAgentImage string ManagerNamespace string LogLevel string InitResources *core.ResourceRequirements Resources *core.ResourceRequirements }
Click to show internal directories.
Click to hide internal directories.