@jfvilas/plugin-kubelog-common
Version:
Common functionalities for the Backstage Kubelog plugin frontend and backend
9 lines (7 loc) • 335 B
JavaScript
const ANNOTATION_KUBELOG_LOCATION = "backstage.io/kubernetes-id";
const isKubelogAvailable = (entity) => {
if (!entity.metadata.annotations) return false;
return Boolean(entity.metadata.annotations[ANNOTATION_KUBELOG_LOCATION]);
};
export { ANNOTATION_KUBELOG_LOCATION, isKubelogAvailable };
//# sourceMappingURL=index.esm.js.map