Documentation
¶
Index ¶
- func AddContainer(spec *corev1.PodSpec, c util.PodRouteConfig, connectNamespace string, ...)
- func AddEnvoyContainer(spec *v1.PodTemplateSpec, ns, nodeId string, ipv6 bool, ...)
- func AddMeshContainer(spec *v1.PodTemplateSpec, ns, nodeId string, c util.PodRouteConfig, ipv6 bool, ...)
- func CleanupUselessInfo(pod *v1.Pod)
- func CreateAfterDeletePod(ctx context.Context, factory util.Factory, p *v1.Pod, helper *resource.Helper) error
- func GetEnvoyConfig(tmplStr string, value string) string
- func GetPort(templateSpec *v1.PodTemplateSpec, portMaps []string) ([]v1.ContainerPort, map[int32]string)
- func InjectEnvoySidecar(ctx context.Context, f cmdutil.Factory, clientset *kubernetes.Clientset, ...) (err error)
- func InjectVPNAndEnvoySidecar(ctx context.Context, f cmdutil.Factory, mapInterface v12.ConfigMapInterface, ...) (err error)
- func InjectVPNSidecar(ctx context.Context, f util.Factory, connectNamespace string, ...) error
- func ModifyServiceTargetPort(ctx context.Context, clientset *kubernetes.Clientset, namespace string, ...) error
- func RemoveContainer(spec *corev1.PodSpec)
- func RemoveContainers(spec *v1.PodTemplateSpec)
- func UnPatchContainer(ctx context.Context, factory cmdutil.Factory, ...) (bool, error)
- type P
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddContainer ¶
func AddEnvoyContainer ¶ added in v2.3.10
func AddMeshContainer ¶
func AddMeshContainer(spec *v1.PodTemplateSpec, ns, nodeId string, c util.PodRouteConfig, ipv6 bool, connectNamespace string, secret *v1.Secret)
AddMeshContainer todo envoy support ipv6
func CleanupUselessInfo ¶
func CreateAfterDeletePod ¶
func GetEnvoyConfig ¶ added in v2.5.1
func GetPort ¶ added in v2.3.10
func GetPort(templateSpec *v1.PodTemplateSpec, portMaps []string) ([]v1.ContainerPort, map[int32]string)
func InjectEnvoySidecar ¶ added in v2.3.10
func InjectEnvoySidecar(ctx context.Context, f cmdutil.Factory, clientset *kubernetes.Clientset, connectNamespace string, object *runtimeresource.Info, headers map[string]string, portMap []string, secret *v1.Secret) (err error)
InjectEnvoySidecar patch a sidecar, using iptables to do port-forward let this pod decide should go to 233.254.254.100 or request to 127.0.0.1 https://istio.io/latest/docs/ops/deployment/requirements/#ports-used-by-istio
func InjectVPNAndEnvoySidecar ¶
func InjectVPNAndEnvoySidecar(ctx context.Context, f cmdutil.Factory, mapInterface v12.ConfigMapInterface, connectNamespace string, object *runtimeresource.Info, c util.PodRouteConfig, headers map[string]string, portMaps []string, secret *v1.Secret) (err error)
InjectVPNAndEnvoySidecar patch a sidecar, using iptables to do port-forward let this pod decide should go to 233.254.254.100 or request to 127.0.0.1
func InjectVPNSidecar ¶
func ModifyServiceTargetPort ¶ added in v2.3.10
func RemoveContainer ¶
func RemoveContainers ¶
func RemoveContainers(spec *v1.PodTemplateSpec)
func UnPatchContainer ¶
func UnPatchContainer(ctx context.Context, factory cmdutil.Factory, mapInterface v12.ConfigMapInterface, object *runtimeresource.Info, isMeFunc func(isFargateMode bool, rule *controlplane.Rule) bool) (bool, error)
Types ¶
Click to show internal directories.
Click to hide internal directories.