debian-mirror-gitlab/app/assets/javascripts/clusters/constants.js

69 lines
1.7 KiB
JavaScript
Raw Normal View History

2019-02-15 15:39:39 +05:30
// These need to match the enum found in app/models/clusters/cluster.rb
export const CLUSTER_TYPE = {
INSTANCE: 'instance_type',
GROUP: 'group_type',
PROJECT: 'project_type',
};
2019-12-21 20:55:43 +05:30
// These need to match the available providers in app/models/clusters/providers/
export const PROVIDER_TYPE = {
GCP: 'gcp',
};
2018-03-17 18:26:18 +05:30
// These need to match what is returned from the server
2018-11-18 11:00:15 +05:30
export const APPLICATION_STATUS = {
2019-07-31 22:56:46 +05:30
NO_STATUS: null,
2018-11-18 11:00:15 +05:30
NOT_INSTALLABLE: 'not_installable',
INSTALLABLE: 'installable',
SCHEDULED: 'scheduled',
INSTALLING: 'installing',
INSTALLED: 'installed',
2018-12-13 13:39:08 +05:30
UPDATING: 'updating',
2019-03-02 22:35:43 +05:30
UPDATED: 'updated',
UPDATE_ERRORED: 'update_errored',
2019-07-31 22:56:46 +05:30
UNINSTALLING: 'uninstalling',
UNINSTALL_ERRORED: 'uninstall_errored',
2018-11-18 11:00:15 +05:30
ERROR: 'errored',
2019-12-21 20:55:43 +05:30
PRE_INSTALLED: 'pre_installed',
2018-11-18 11:00:15 +05:30
};
2018-03-17 18:26:18 +05:30
2019-07-31 22:56:46 +05:30
/*
* The application cannot be in any of the following states without
* not being installed.
*/
export const APPLICATION_INSTALLED_STATUSES = [
APPLICATION_STATUS.INSTALLED,
APPLICATION_STATUS.UPDATING,
APPLICATION_STATUS.UNINSTALLING,
2019-12-21 20:55:43 +05:30
APPLICATION_STATUS.PRE_INSTALLED,
2019-07-31 22:56:46 +05:30
];
2018-03-17 18:26:18 +05:30
// These are only used client-side
2019-07-31 22:56:46 +05:30
export const UPDATE_EVENT = 'update';
export const INSTALL_EVENT = 'install';
export const UNINSTALL_EVENT = 'uninstall';
export const HELM = 'helm';
2018-03-27 19:54:05 +05:30
export const INGRESS = 'ingress';
2018-11-08 19:23:39 +05:30
export const JUPYTER = 'jupyter';
2018-12-13 13:39:08 +05:30
export const KNATIVE = 'knative';
2019-03-02 22:35:43 +05:30
export const RUNNER = 'runner';
2019-02-15 15:39:39 +05:30
export const CERT_MANAGER = 'cert_manager';
2019-12-26 22:10:19 +05:30
export const CROSSPLANE = 'crossplane';
2019-07-31 22:56:46 +05:30
export const PROMETHEUS = 'prometheus';
2019-12-26 22:10:19 +05:30
export const ELASTIC_STACK = 'elastic_stack';
2019-07-31 22:56:46 +05:30
2019-12-26 22:10:19 +05:30
export const APPLICATIONS = [
HELM,
INGRESS,
JUPYTER,
KNATIVE,
RUNNER,
CERT_MANAGER,
PROMETHEUS,
ELASTIC_STACK,
];
2019-07-31 22:56:46 +05:30
2019-07-07 11:18:12 +05:30
export const INGRESS_DOMAIN_SUFFIX = '.nip.io';