Skip to content

Commit

Permalink
fix commands and test image
Browse files Browse the repository at this point in the history
Signed-off-by: Marc Sluiter <[email protected]>
  • Loading branch information
slintes committed Jul 4, 2024
1 parent 591c595 commit 50a0c76
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion e2e/self_node_remediation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ func killApiConnection(node *v1.Node, apiIPs []string, withReconnect bool) {
msg := fmt.Sprintf("killing api connectivity on NODE: %s and API ep: %v", node.Name, apiIPs)
By(msg)

script := "dnf -y install iproute && " + composeScript(disconnectCommand, apiIPs)
script := composeScript(disconnectCommand, apiIPs)
if withReconnect {
script += fmt.Sprintf(" && sleep %s && ", strconv.Itoa(int(reconnectInterval.Seconds())))
script += composeScript(reconnectCommand, apiIPs)
Expand Down
4 changes: 2 additions & 2 deletions e2e/utils/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ var (

// GetBootTime gets the boot time of the given node by running a pod on it executing uptime command
func GetBootTime(ctx context.Context, c *kubernetes.Clientset, nodeName string, ns string) (*time.Time, error) {
output, err := RunCommandInCluster(ctx, c, nodeName, ns, "microdnf install procps -y >/dev/null 2>&1 && uptime -s")
output, err := RunCommandInCluster(ctx, c, nodeName, ns, "dnf install procps -y >/dev/null 2>&1 && uptime -s")
if err != nil {
return nil, err
}
Expand Down Expand Up @@ -167,7 +167,7 @@ func getPod(nodeName string) *corev1.Pod {
Containers: []corev1.Container{
{
Name: "test",
Image: "registry.access.redhat.com/ubi8/ubi-minimal",
Image: "registry.access.redhat.com/ubi9/ubi:latest",
SecurityContext: &corev1.SecurityContext{
Privileged: pointer.Bool(true),
},
Expand Down

0 comments on commit 50a0c76

Please sign in to comment.