lib/elemental3.pm

elemental3_cmd

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

Execute elemental3 command from container.

elemental3ctl_cmd

elemental3ctl_cmd( cmd => <value>, uri => <value> [, config_dir => <value> ]
                   [, device => <value> ] [, overlay_dir => <value> ]
                   [, timeout => <value> ] );

Execute elemental3ctl command from container.

get_artifact_uri

get_artifact_uri( url => <value>, regex => <value>, [arch => <value>,] [dir => <value>,] [prefix => <value>]);

Get URI from registry file.

get_sysext

get_sysext( tmpdir => <value>, uri => <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>, 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 command status if command is successful or die 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 die on timeout.

wait_on_cmd

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

Checks for up to $timeout seconds whether command is executed. Returns command status if command is successful or die 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 die on timeout.