def get_infra_annotations(): """Get infra annotations.""" annotations = {} annotations['owner'] = vnc_kube_config.cluster_owner() annotations['cluster'] = vnc_kube_config.cluster_name() # "project" annotations, though infrstructural, are namespace specific. # So "project" annotations are added when callee adds annotations on # objects. return annotations
def get_infra_annotations(): """Get infra annotations.""" annotations = {} annotations['owner'] = vnc_kube_config.cluster_owner() annotations['cluster'] = vnc_kube_config.cluster_name() # "project" annotations, though infrstructural, are namespace specific. # So "project" annotations are added when callee adds annotations on # objects. return annotations
def __init__(self, kube_obj_kind): self.annotations = {} self.annotations['kind'] = kube_obj_kind self.annotations['owner'] = vnc_kube_config.cluster_owner() self.annotations['cluster'] = vnc_kube_config.cluster_name()