Commit Graph

21 Commits

Author SHA1 Message Date
Moustafa Baiou bcc211a081 refactor(k8s-plugin): update to use annotation based label selector
add changeset
2020-12-01 03:28:04 -05:00
Himanshu Mishra 05b916761d fix(kubernetes-backend): Fix Typescript error stopping backend to start 2020-11-23 21:06:44 +01:00
Moustafa Baiou 18d0fd10a0 add needed import 2020-11-23 06:18:55 -05:00
Moustafa Baiou 44ea3101a7 remove unneeded import 2020-11-23 06:18:55 -05:00
Moustafa Baiou 74102d9176 fix test after refactor 2020-11-23 06:18:55 -05:00
Moustafa Baiou 728767e3d3 cleanup 2020-11-23 06:18:55 -05:00
Moustafa Baiou 75d63ee0a0 fix test 2020-11-23 06:18:55 -05:00
Moustafa Baiou 4639d20720 modify approach to post entire entity to k8s backend 2020-11-23 06:16:57 -05:00
Moustafa Baiou 61a552fac6 fix type checks 2020-11-23 06:16:57 -05:00
Moustafa Baiou beaa0a82db fix tests, types and cleanup 2020-11-23 06:16:57 -05:00
Moustafa Baiou e2085293a6 feat(kubernetes): update k8s-backend plugin to use label selectors
update plugin to use label selectors when querying backend
2020-11-23 06:16:57 -05:00
blam 101978963d Merge branch 'master' of github.com:spotify/backstage into migrate-to-msw
* 'master' of github.com:spotify/backstage: (139 commits)
  Cleanup
  Update PinButton.test.tsx
  feat: update github insights plugin version (#2973)
  Ignore IntelliJ *.iml files (#2971)
  chore(deps): bump rollup-plugin-dts from 1.4.11 to 1.4.13
  fix the plugin card on plugins page
  align 'Add to Marketplace' button on plugins page
  fix the PluginGrid on mobiles sizes
  use getBy query instead of queryBy when asserting for elements present in document (#2951)
  Update PinButton.tsx
  Add test case for Progress component (#2953)
  fix the styling of footer copy on mobile
  add changeset
  handle the case where no entities are available to show
  core-api: work around issue with ApiRef export const declarations
  core-api: move utility api system implementation into apis/system
  Update docs regarding npm config ignore-scripts flag
  Another try
  Fix Core Features configuration id (#2948)
  Fix test?
  ...
2020-10-19 23:57:40 +02:00
Matthew Clarke 0ede39fd08 split service locator and cluster locators (#2900)
* split service locator and cluster locators

* fix test
2020-10-14 15:46:11 +01:00
blam b33353dd39 Merge branch 'master' of github.com:spotify/backstage into migrate-to-msw
* 'master' of github.com:spotify/backstage: (110 commits)
  chore(catalog-backend): removing redudant classes and some functions
  chore(deps-dev): bump @types/webpack from 4.41.21 to 4.41.22 (#2765)
  move codecov.yml to .github
  feat(catalog-backend): add batch concurrency
  create-app: remove build step
  cli: simplify jest transform ignore regex
  feat(catalog-backend): introduce batching, speed up reading and writing of large datasets
  Techdocs: add Azure DevOps prepare support (#2748)
  feat(techdocs-header): Show breadcrumbs on docs page (#2786)
  changesets: add entry for create-app template location fix
  create-app: revert to github location type for example templates
  fix: make catalog filter work again
  Use new url scheme for techdocs
  feat: remove LocationProcessor.processEntity
  Add Dockerfile for helm chart
  feat: use the new UrlReader in the CodeOwnersProcessor
  feat: use new UrlReader in PlaceholderProcessor
  feat: remove the backstage.io/definition-at-location annotation
  Update loud-lamps-visit.md
  feat(proxy-backend): limit the forwarded http headers to a safe set
  ...
2020-10-09 14:48:32 +02:00
blam 54ef1eea7e chore(kubernetes-backend): removing node-fetch and jest-fetch-mock 2020-10-09 13:30:49 +02:00
James Wen 108ce37949 Allow for Kubernetes cluster authentication via google auth (#2691)
* Allow for Kubernetes cluster authentication via google auth

- For the kubernetes and kubernetes-backend plugins
  - The kubernetes (front-end) plugin uses the googleAuthApi and goes
    through oauth flow to fetch a Google auth token for the current user
    and pass that in a request to the kubernetes-backend plugin, which
    uses this token as the service account token (and hence as the
    authentication token for making K8s API requests).
- Related to https://github.com/spotify/backstage/issues/2552

* Use KubernetesAuthProvider and KubernetesAuthTranslator interfaces for K8s auth

- Implementations of KubernetesAuthProvider decorate the bodies of requests (for
  Kubernetes resources) sent from the kubernetes plugin (frontend) to the
  kubernetes-backend plugin (backend) with whatever information is
  needed for K8s authentication
- Implementations of KubernetesAuthTranslator take the contents of these request
  bodies sent from the kubernetes plugin (frontend) to the kubernetes-backend plugin
  (backend) and use specific values in the bodies to properly set up tokens for K8s auth
- Start with KubernetesAuthProvider + KubernetesAuthTranslator
  implementations for 'serviceAccount' and 'google' as auth providers
- Implementation of what was proposed at https://github.com/spotify/backstage/issues/2552#issuecomment-702545382
- Load in and prepare KubernetesAuthProvider implementations at plugin
  startup time via KubernetesAuthProviders API (that essentially stores
  or wraps these KubernetesAuthProvider instances)
- Related to https://github.com/spotify/backstage/issues/2552
2020-10-07 15:21:40 +01:00
Matthew Clarke 44e18975bd add better error handling (#2664) 2020-09-30 16:07:30 +01:00
Matthew Clarke d66c6a7dcb k8s add hpa and ingresses UI (#2640)
* k8s add hpa and ingresses UI

* add todo
2020-09-28 19:32:35 +01:00
Matthew Clarke 2fbca83156 Add initial kubernetes services and configmap UI support (#2635)
* add initial kubernetes services and configmap support

* revert accidental change

* missed revert

* prettier
2020-09-28 14:16:41 +01:00
Matthew Clarke b16e164815 K8s add cluster lookup (#2571)
* Kubernetes plugins boilerplate

* pr feedback; check for k8s annotation

* temp

* fix config

* add example local setup

* dice rolelr

* rever yarn lock update

* forgotten prettier

* prettier again

* master lock

* update lock with k8s deps

* prettier

* router tests

* internal error

* fix package.json

* PR feedback

* more pr feedback

* rename component file

* kubernetes fetcher tests

* fix test

* option constructor
2020-09-24 16:30:48 +01:00
Matthew Clarke e3c99d72f1 Kubernetes plugins boilerplate (#2559)
* Kubernetes plugins boilerplate

* pr feedback; check for k8s annotation
2020-09-22 15:47:27 +01:00