@codefresh-io/internal-service-config

1.0.3 • Public • Published

Internal Service Config

This package provides all internal services names and their configurations.

Available services names

Note: DO NOT FORGET TO UPDATE THIS LIST AFTER ADDING NEW SERVICE CONFIGS.
account-refferals
api
charts-manager
cluster-provider
context-manager
dind-provider
kube-integration
payments
pipeline-manager
runtime-environment-manager
hermes

Services configs resolution

Services configs are resolved from file names in camel case inside the ./services dir.

For example, these files:

api.js
charts-manager.js
pipeline-manager.js
trigger-manager.js

Will become:

{ 
    services: { 
        api: { uri: 'local.codefresh.io', port: 9007, protocol: 'http' },
        chartsManager: { uri: 'local.codefresh.io', port: 9009, protocol: 'http' },
        pipelineManager: { uri: 'local.codefresh.io', port: 9010, protocol: 'http' },
        triggerManager: { uri: 'local.codefresh.io', port: 9011, protocol: 'http' } 
    } 
}

Usage

Retrieving service config

Using @codefresh-io/internal-service-config:

const { services } = require('@codefresh-io/internal-service-config');

const pipelineManagerConfig = services.pipelineManager

Readme

Keywords

none

Package Sidebar

Install

npm i @codefresh-io/internal-service-config

Weekly Downloads

62

Version

1.0.3

License

ISC

Unpacked Size

6.71 kB

Total Files

17

Last publish

Collaborators

  • gil-levkovitch
  • scme0
  • bogdan-volynets
  • vasil-s
  • vitalii.chyrka
  • kimaharfi
  • ilia-medvedev-codefresh
  • z-tikhonov-codefresh
  • eticodefresh
  • denis-codefresh
  • plakyda-codefresh
  • codefresh
  • andrii-codefresh
  • oleksandr-codefresh
  • noam-codefresh
  • bohdan.pisarenko
  • mikeshl
  • yaroslav-codefresh
  • atgardner