lib/elemental3.pm

elemental3_cmd

elemental3_cmd( config_dir => <value>, cmd => <value>, uri => <value>,
                timeout => <value> );

Execute elemental3 command from container.

get_container_uri

get_container_uri( url => <value>, arch => <value>, regex => <value> );

Get URI from registry file.

get_sysext

get_sysext( tmpdir => <value>, timeout => <value> );

Get systemd system extensions from SYSEXT_IMAGES_TO_TEST list and prepare them to be used by elemental tool.

get_values

get_values( url => <value>, arch => <value>, regex => <value> );

Get values from filelist webpage based on provided regex.

kubectl_cmd

kubectl_cmd( cmd => <value> [, timeout => <value> ] );

Checks for up to $timeout seconds whether kubectl command is executed. Returns 0 if command is successful or croaks on timeout.

wait_k8s_state

wait_k8s_state( regex => <value> [, timeout => <value> ] );

Checks for up to $timeout seconds whether K8s cluster is running. Returns 0 if cluster is running or croaks on timeout.

wait_kubectl_cmd

wait_kubectl_cmd( [ timeout => <value> ] );

Wait for kubectl command to be available.

wait_nodes_ready

wait_nodes_ready( [ timeout => <value> ] );

Wait for up to $timeout seconds until K8s nodes are ready. Returns 0 if nodes are ready or croaks on timeout.

wait_on_cmd

wait_on_cmd( cmd => <value> [, timeout => <value> ] );

Checks for up to $timeout seconds whether command is executed. Returns 0 if command is successful or croaks on timeout.

wait_script_output

wait_script_output( cmd => <value> [, timeout => <value> ] );

Checks for up to $timeout seconds whether command is executed. Returns command output if successful or croaks on timeout.