mirror of https://github.com/rancher/dashboard.git
57 lines
1.8 KiB
JavaScript
57 lines
1.8 KiB
JavaScript
export const DESCRIPTION = 'field.cattle.io/description';
|
|
export const HOSTNAME = 'kubernetes.io/hostname';
|
|
export const TIMESTAMP = 'cattle.io/timestamp';
|
|
export const SYSTEM_NAMESPACE = 'cattle.io/system';
|
|
export const PROJECT = 'field.cattle.io/projectId';
|
|
export const SYSTEM_PROJECT = 'authz.management.cattle.io/system-project';
|
|
export const CONTAINER_DEFAULT_RESOURCE_LIMIT = 'field.cattle.io/containerDefaultResourceLimit';
|
|
|
|
export const KUBERNETES = {
|
|
SERVICE_ACCOUNT_UID: 'kubernetes.io/service-account.uid',
|
|
SERVICE_ACCOUNT_NAME: 'kubernetes.io/service-account.name'
|
|
};
|
|
|
|
export const RIO = { STACK: 'rio.cattle.io/stack' };
|
|
|
|
export const CERTMANAGER = { ISSUER: 'cert-manager.io/issuer-name' };
|
|
|
|
export const NODE_ROLES = {
|
|
CONTROL_PLANE: 'node-role.kubernetes.io/controlplane',
|
|
WORKER: 'node-role.kubernetes.io/worker',
|
|
ETCD: 'node-role.kubernetes.io/etcd',
|
|
};
|
|
|
|
export const CATALOG = {
|
|
CERTIFIED: 'catalog.cattle.io/certified',
|
|
_RANCHER: 'rancher',
|
|
_PARTNER: 'partner',
|
|
_OTHER: 'other',
|
|
EXPERIMENTAL: 'catalog.cattle.io/experimental',
|
|
NAMESPACE: 'catalog.cattle.io/namespace',
|
|
RELEASE_NAME: 'catalog.cattle.io/release-name',
|
|
|
|
REQUIRES: 'catalog.cattle.io/requires-gvr',
|
|
PROVIDES: 'catalog.cattle.io/provides-gvr',
|
|
AUTO_INSTALL: 'catalog.cattle.io/auto-install-gvr',
|
|
HIDDEN: 'catalog.cattle.io/hidden',
|
|
|
|
COMPONENT: 'catalog.cattle.io/ui-component',
|
|
};
|
|
|
|
const CATTLE_REGEX = /cattle\.io\//;
|
|
|
|
export const RKE = { EXTERNAL_IP: 'rke.cattle.io/external-ip' };
|
|
|
|
export const LABELS_TO_IGNORE_REGEX = [
|
|
CATTLE_REGEX
|
|
];
|
|
|
|
export const ANNOTATIONS_TO_IGNORE_REGEX = [
|
|
CATTLE_REGEX
|
|
];
|
|
|
|
export const ANNOTATIONS_TO_FOLD = [
|
|
/^kubectl\.kubernetes\.io\/.*$/,
|
|
/^objectset\.rio\.cattle\.io\/.*$/,
|
|
];
|