All files / modules/30-delegates constants.ts

100% Statements 27/27
100% Branches 6/6
100% Functions 3/3
100% Lines 27/27

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60              265x             265x 265x   265x 265x 265x 265x 265x     265x 265x 265x     265x               265x 265x 265x 265x 265x 265x 265x 265x 265x 265x 265x 265x 265x 265x     265x            
/*
 * Copyright 2021 Harness Inc. All rights reserved.
 * Use of this source code is governed by the PolyForm Shield 1.0.0 license
 * that can be found in the licenses directory at the root of this repository, also available at
 * https://polyformproject.org/wp-content/uploads/2020/06/PolyForm-Shield-1.0.0.txt.
 */
 
export const DelegateTypes = {
  KUBERNETES_CLUSTER: 'K8sCluster',
  DOCKER: 'DOCKER',
  ECS: 'ECS',
  LINUX: 'LINUX'
}
 
export const POLL_INTERVAL = 2 /* sec */ * 1000 /* ms */
export const TIME_OUT = 5 * 60 * 1000
 
export enum DelegateStatus {
  ENABLED = 'ENABLED',
  WAITING_FOR_APPROVAL = 'WAITING_FOR_APPROVAL',
  DISABLED = 'DISABLED',
  DELETED = 'DELETED'
}
 
export enum EnvironmentType {
  PROD = 'PROD',
  NON_PROD = 'NON_PROD'
}
 
export const fullSizeContentStyle: React.CSSProperties = {
  position: 'fixed',
  top: '135px',
  left: '270px',
  width: 'calc(100% - 270px)',
  height: 'calc(100% - 135px)'
}
 
export enum TroubleShootingTypes {
  VERIFY_PODS_COMEUP = 'VERIFY_PODS_COMEUP',
  VERIFY_HARNESS_SASS = 'VERIFY_HARNESS_SASS',
  CURL_HARNESS_IO = 'CURL_HARNESS_IO',
  DO_YOU_HAVE_PROXY = 'DO_YOU_HAVE_PROXY',
  CHECK_PROXY = 'CHECK_PROXY',
  VERIFY_EVENTS = 'VERIFY_EVENTS',
  CHECK_CLUSTER_PERMISSION = 'CHECK_CLUSTER_PERMISSION',
  CONTAINER_FAILED_START = 'CONTAINER_FAILED_START',
  CHECK_CLUSTER_CONFIG = 'CHECK_CLUSTER_CONFIG',
  CAN_CLUSTER_CONNECT_TO_REGISTRY = 'CAN_CLUSTER_CONNECT_TO_REGISTRY',
  CHECK_FIREWALL_PORTS = 'CHECK_FIREWALL_PORTS',
  GOOD_TO_GO = 'GOOD_TO_GO',
  CONTACT_HARNESS_SUPPORT = 'CONTACT_HARNESS_SUPPORT'
}
 
export const DelegateSize = {
  LAPTOP: 'LAPTOP',
  SMALL: 'SMALL',
  MEDIUM: 'MEDIUM',
  LARGE: 'LARGE'
}