Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/clusters/agents/constants.js')
-rw-r--r--app/assets/javascripts/clusters/agents/constants.js22
1 files changed, 22 insertions, 0 deletions
diff --git a/app/assets/javascripts/clusters/agents/constants.js b/app/assets/javascripts/clusters/agents/constants.js
index 962fa243903..76af552181f 100644
--- a/app/assets/javascripts/clusters/agents/constants.js
+++ b/app/assets/javascripts/clusters/agents/constants.js
@@ -1,4 +1,5 @@
import { s__ } from '~/locale';
+import { helpPagePath } from '~/helpers/help_page_helper';
export const MAX_LIST_COUNT = 25;
@@ -46,3 +47,24 @@ export const EVENT_ACTIONS_CLICK = 'click_button';
export const TOKEN_NAME_LIMIT = 255;
export const REVOKE_TOKEN_MODAL_ID = 'revoke-token-%{tokenName}';
+
+export const INTEGRATION_STATUS_VALID_TOKEN = {
+ icon: 'status-success',
+ iconClass: 'text-success-500',
+ text: s__('ClusterAgents|Valid access token'),
+};
+export const INTEGRATION_STATUS_NO_TOKEN = {
+ icon: 'status-alert',
+ iconClass: 'text-danger-500',
+ text: s__('ClusterAgents|No agent access token'),
+};
+
+export const INTEGRATION_STATUS_RESTRICTED_CI_CD = {
+ icon: 'information',
+ iconClass: 'text-info',
+ text: s__('ClusterAgents|CI/CD workflow with restricted access'),
+ helpUrl: helpPagePath('user/clusters/agent/ci_cd_workflow', {
+ anchor: 'restrict-project-and-group-access-by-using-impersonation',
+ }),
+ featureName: 'clusterAgentsCiImpersonation',
+};