def get_gvk(crd):
    """ Extracts group, version(s), kind data from CRD """
    group = crd["spec"]["group"].split(".")[0]
    kind = crd["spec"]["names"]["kind"].lower()

    try:
        version = crd["spec"]["version"]  # v1beta1 CRD
    except KeyError:
        version = crd["spec"]["versions"]  # v1 CRD

    return group, version, kind