Update lua configuration_data when number of controller pod change
This commit is contained in:
parent
55b4f00368
commit
f90881b367
10 changed files with 113 additions and 19 deletions
|
|
@ -28,6 +28,16 @@ import (
|
|||
"k8s.io/api/core/v1"
|
||||
)
|
||||
|
||||
// ExecIngressPod executes a command inside the first container in ingress controller running pod
|
||||
func (f *Framework) ExecIngressPod(command string) (string, error) {
|
||||
pod, err := getIngressNGINXPod(f.IngressController.Namespace, f.KubeClientSet)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
||||
return f.ExecCommand(pod, command)
|
||||
}
|
||||
|
||||
// ExecCommand executes a command inside a the first container in a running pod
|
||||
func (f *Framework) ExecCommand(pod *v1.Pod, command string) (string, error) {
|
||||
var (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue