images/dataplane/daemonset/app/daemonset.py [59:77]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
kube_config_path = '/tmp/kubeconfig'

os.environ['KUBECONFIG'] = kube_config_path


def get_stdout(output):
    """
    validates command output returncode and returns stdout
    """
    logger.info(output)
    if output.returncode == 0:
        command_output = output.stdout
    else:
        raise Exception(f'Command failed for - stderr: {output.stderr} - returncode: {output.returncode}')
    return command_output


def update_cluster(config_dict):
    cluster_name = config_dict[ConfigKey.cluster_name_key]
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



images/dataplane/nodegroup/app/nodegroup_ver_update.py [46:63]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
kube_config_path = '/tmp/kubeconfig'
os.environ['KUBECONFIG'] = kube_config_path


def get_stdout(output):
    """
    validates command output returncode and returns stdout
    """
    logger.info(output)
    if output.returncode == 0:
        command_output = output.stdout
    else:
        raise Exception(f'Command failed for - stderr: {output.stderr} - returncode: {output.returncode}')
    return command_output


def update_cluster(config_dict):
    cluster_name = config_dict[ConfigKey.cluster_name_key]
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



