Skip to content

Commit 5806067

Browse files
authored
adding kubevirt node name and exit on fail (#305)
Signed-off-by: Paige Patton <prubenda@redhat.com>
1 parent 6962599 commit 5806067

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

config.yaml.template

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,6 @@ kubevirt_checks: # Utilizing virt che
7272
name: $KUBE_VIRT_NAME # Regex Name style of VMI's to watch, optional, will watch all VMI names in the namespace if left blank
7373
only_failures: $KUBE_VIRT_FAILURES # Boolean of whether to show all VMI's failures and successful ssh connection (False), or only failure status' (True)
7474
disconnected: $KUBE_VIRT_DISCONNECTED # Boolean of how to try to connect to the VMIs; if True will use the ip_address to try ssh from within a node, if false will use the name and uses virtctl to try to connect; Default is False
75-
ssh_node: $KUBE_VIRT_SSH_NODE
75+
ssh_node: $KUBE_VIRT_SSH_NODE
76+
node_names: $KUBE_VIRT_NODE_NAME # Filter only VMI's running a specific node name
77+
exit_on_failure: $KUBE_VIRT_EXIT_ON_FAIL # If value is True and VMI's are failing post chaos returns failure, values can be True/False

env.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,6 @@ export KUBE_VIRT_NAMESPACE=${KUBE_VIRT_NAMESPACE:=""}
6969
export KUBE_VIRT_NAME=${KUBE_VIRT_NAME:=""}
7070
export KUBE_VIRT_FAILURES=${KUBE_VIRT_FAILURES:=False}
7171
export KUBE_VIRT_DISCONNECTED=${KUBE_VIRT_DISCONNECTED:=False}
72-
export KUBE_VIRT_SSH_NODE=${KUBE_VIRT_SSH_NODE:""}
72+
export KUBE_VIRT_SSH_NODE=${KUBE_VIRT_SSH_NODE:""}
73+
export KUBE_VIRT_NODE_NAME=${KUBE_VIRT_NODE_NAME:""} # Filter only VMI's running a specific node name
74+
export KUBE_VIRT_EXIT_ON_FAIL=${KUBE_VIRT_EXIT_ON_FAIL:False}

0 commit comments

Comments
 (0)