Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

Define route, endpoint and service for kubernetes #289

Merged
merged 15 commits into from
Apr 29, 2021
Merged

Conversation

amha19
Copy link
Contributor

@amha19 amha19 commented Apr 27, 2021

Description

  • Defines a kubernetes route and api endpoint that takes in a cluster id.
  • It defines getter method for the route and the api.
  • Creates a fetch method and fetch response processing method.

Given this:

[
  {
    name: 'tele.logicoma.dev-prod',
    tags: [
      { name: 'kernal', value: '4.15.0-51-generic' },
      { name: 'env', value: 'prod' },
    ],
  },
]

Will output this:

[
  {
    name: 'tele.logicoma.dev-prod',
    tags: [ 'kernal: 4.15.0-51-generic', 'env: prod' ],
  },
]

And it adds this service to the teleport context.

This PR closes #283

@amha19 amha19 linked an issue Apr 27, 2021 that may be closed by this pull request
5 tasks
@amha19 amha19 requested a review from kimlisa April 28, 2021 15:13
@amha19 amha19 requested a review from kimlisa April 28, 2021 21:39
@amha19 amha19 requested a review from kimlisa April 28, 2021 23:31
packages/teleport/src/services/kube/kube.test.ts Outdated Show resolved Hide resolved
packages/teleport/src/services/kube/kube.test.ts Outdated Show resolved Hide resolved
packages/teleport/src/services/kube/kube.test.ts Outdated Show resolved Hide resolved
packages/teleport/src/services/kube/makeKube.ts Outdated Show resolved Hide resolved
@amha19 amha19 requested a review from kimlisa April 29, 2021 01:17
Copy link
Contributor

@kimlisa kimlisa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@amha19 amha19 merged commit 1363ab1 into feature/k8s Apr 29, 2021
@amha19 amha19 deleted the amha/kb-access-3 branch April 29, 2021 17:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Kb Access 3] Define route, endpoint, and service
2 participants