Documentation ¶
Index ¶
- func DetectKubeProxyMode(c *client.Client, configmapname string, containerName string, namespace string) (string, error)
- func FindKubeProxyPod(c *client.Client, containerName string, namespace string) (string, error)
- func SaveCurrentFirewallState(c *client.Client, configmapname string, containerName string, namespace string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DetectKubeProxyMode ¶
func DetectKubeProxyMode(c *client.Client, configmapname string, containerName string, namespace string) (string, error)
DetectKubeProxyMode will detect kube-proxy mode
Args:
- Pointer to a Client struct
- configmapname
- containerName
- namespace
Returns:
string (ipvs or iptables) OR error type
func FindKubeProxyPod ¶
FindKubeProxyPod will return one of the daemonsets pods names for kubeproxy so we can connect to pod and execute commands or other actions
Args:
- Pointer to a Client struct
- containerName A substring of kube-proxy pod name
- namespace
Returns:
the first kube-proxy pod found from the daemonsets or error
func SaveCurrentFirewallState ¶
func SaveCurrentFirewallState(c *client.Client, configmapname string, containerName string, namespace string) (string, error)
SaveCurrentFirewallState will save the current state from the kubeproxy pod
Args:
- Pointer to a Client struct
- podname A substring of kube-proxy pod name
- namespace
Returns:
filename storing the firewall rules or error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.