in app/assets/javascripts/clusters_list/constants.js [43:145]
tableText: s__('ClusterIntegration|Unable to Connect'),
title: s__('ClusterIntegration|HTTP Error'),
description: s__('ClusterIntegration|There was an HTTP error when connecting to your cluster.'),
troubleshootingTips: [s__('ClusterIntegration|Check your cluster status')],
},
};
export const CLUSTER_TYPES = {
project_type: __('Project'),
group_type: __('Group'),
instance_type: __('Instance'),
};
export const MAX_REQUESTS = 3;
export const STATUSES = {
default: { className: 'gl-bg-default', title: __('Unknown') },
disabled: { className: 'disabled', title: __('Disabled') },
created: { className: 'bg-success', title: __('Connected') },
unreachable: { className: 'bg-danger', title: __('Unreachable') },
authentication_failure: { className: 'bg-warning', title: __('Authentication Failure') },
deleting: { title: __('Deleting') },
creating: { title: __('Creating') },
};
export const I18N_AGENT_TABLE = {
nameLabel: s__('ClusterAgents|Name'),
statusLabel: s__('ClusterAgents|Connection status'),
lastContactLabel: s__('ClusterAgents|Last contact'),
versionLabel: __('Version'),
configurationLabel: s__('ClusterAgents|Configuration'),
projectLabel: s__('ClusterAgents|Project'),
optionsLabel: __('Options'),
troubleshootingText: s__('ClusterAgents|Learn how to troubleshoot'),
neverConnectedText: s__('ClusterAgents|Never'),
versionMismatchTitle: s__('ClusterAgents|Agent version mismatch'),
versionMismatchText: s__(
"ClusterAgents|The agent version do not match each other across your cluster's pods. This can happen when a new agent version was just deployed and Kubernetes is shutting down the old pods.",
),
versionWarningsTitle: s__('ClusterAgents|Agent version update required'),
versionWarningsMismatchTitle: s__('ClusterAgents|Agent version mismatch and update'),
viewDocsText: s__('ClusterAgents|How do I update an agent?'),
defaultConfigText: s__('ClusterAgents|Default configuration'),
defaultConfigTooltip: s__('ClusterAgents|What is default configuration?'),
sharedBadgeText: s__('ClusterAgents|Shared'),
receptiveBadgeText: s__('ClusterAgents|Receptive'),
externalConfigText: s__('ClusterAgents|External project'),
};
export const I18N_AGENT_TOKEN = {
copyToken: s__('ClusterAgents|Copy token'),
copyCommand: s__('ClusterAgents|Copy command'),
tokenLabel: s__('ClusterAgents|Agent access token:'),
tokenSingleUseWarningTitle: s__(
'ClusterAgents|You cannot see this token again after you close this window.',
),
tokenSubtitle: s__('ClusterAgents|The agent uses the token to connect with GitLab.'),
basicInstallTitle: s__('ClusterAgents|Install using Helm'),
basicInstallBody: s__(
'ClusterAgents|From a terminal, connect to your cluster and run this command. The token is included in the command.',
),
helmVersionText: s__(
'ClusterAgents|Use a Helm version compatible with your Kubernetes version (see %{linkStart}Helm version support policy%{linkEnd}).',
),
};
export const HELM_VERSION_POLICY_URL = 'https://helm.sh/docs/topics/version_skew/';
export const I18N_AGENT_MODAL = {
registerAgentButton: s__('ClusterAgents|Create and register'),
close: __('Close'),
cancel: __('Cancel'),
learnMore: __('Learn more'),
modalTitle: s__('ClusterAgents|Connect a Kubernetes cluster'),
modalBody: s__('ClusterAgents|Create a new agent to register with GitLab.'),
enableKasText: s__(
"ClusterAgents|Your instance doesn't have the %{linkStart}GitLab Agent Server (KAS)%{linkEnd} set up. Ask a GitLab Administrator to install it.",
),
altText: s__('ClusterAgents|GitLab agent for Kubernetes'),
registrationSuccess: s__('ClusterAgents|%{agentName} successfully created.'),
registrationErrorTitle: s__('ClusterAgents|Failed to register an agent'),
unknownError: s__('ClusterAgents|An unknown error occurred. Please try again.'),
registerWithUITitle: s__('ClusterAgents|Option 2: Create and register an agent with the UI'),
bootstrapWithFluxTitle: s__('ClusterAgents|Option 1: Bootstrap the agent with Flux'),
bootstrapWithFluxDescription: s__(
'ClusterAgents|If Flux is installed in the cluster, you can install and register the agent from the command line:',
),
bootstrapWithFluxOptions: s__(
'ClusterAgents|You can view a list of options with %{codeStart}--help%{codeEnd}.',
),
bootstrapWithFluxDocs: s__(
"ClusterAgents|If you're %{linkStart}bootstrapping the agent with Flux%{linkEnd}, you can close this dialog.",
),
agentNamePlaceholder: s__('ClusterAgents|Name of new agent'),
requiredFieldFeedback: s__('ClusterAgents|This field is required.'),
};
export const KAS_DISABLED_ERROR = 'Gitlab::Kas::Client::ConfigurationError';
export const AGENT_STATUSES = {
active: {