code: def get_k8s_upgrades_completion_list(cmd, prefix, namespace, **kwargs):  # pylint: disable=unused-argument
      
      resource_group = getattr(namespace, 'resource_group_name', None)
      name = getattr(namespace, 'name', None)
      return get_k8s_upgrades(cmd.cli_ctx, resource_group, name) if resource_group and name else None
docs: Return Kubernetes versions available for upgrading an existing cluster.