Commit Graph

223 Commits

Author SHA1 Message Date
Mattias Frinnström 4e9453d6ed Add workdir config support to scaffolder 2020-10-27 12:15:27 +01:00
Patrik Oldsberg f8064794cc scaffolder-backend: add Publishers.fromConfig 2020-10-26 23:29:09 +01:00
Patrik Oldsberg 75763dadd9 scaffolder-backend: add Preparers.fromConfig + integration type detection 2020-10-26 23:28:59 +01:00
Patrik Oldsberg 8c2b76e45f config-loader: switch to using --config options to load in config 2020-10-22 10:52:06 +02:00
Patrik Oldsberg 7bbeb049fe backend-common: make loadBackendConfig return config directly and log all resolved app-configs 2020-10-20 00:10:28 +02:00
Markus Heinemann 5c46f0d337 Rename config property for custom github scaffolder host 2020-10-15 20:35:43 +00:00
Markus Heinemann 6943ead4c6 feat: add base url config property to github scaffholders 2020-10-15 13:04:12 +00:00
Fredrik Adelöw 99710b102d feat(catalog-backend): make a builder to help wire up the catalog 2020-10-14 09:28:59 +02:00
Sebastian Qvarfordt b041aab8ad [TechDocs] Remove all git preparers and use a commonGit preparer instead (#2856)
* Remove all git preparers and use a commonGit preparer instead

* Added more tests

* Updated default-app template
2020-10-13 09:07:14 +02:00
blam 46960a61ec v0.1.1-alpha.25 2020-10-12 22:42:54 +02:00
Mattias Frinnström b46863b88b Techdocs: add Azure DevOps prepare support (#2748)
* Update to latest git-url-parse

* Add Azure DevOps preparer to techdocs

* Upgraded git-url-parse in backend-common

* Switch to AZURE_TOKEN

Co-authored-by: Mattias Frinnström <mattias.frinnstrom@husqvarnagroup.com>
2020-10-09 09:37:20 +02:00
Fredrik Adelöw 03e0eef930 Merge pull request #2697 from lowjoel/database-refactor
refactor: Expose types to handle Database management
2020-10-09 07:16:26 +02:00
Taras Mankovski 4df660e37f Add authentication to GitHub preparer 2020-10-08 07:31:42 -04:00
Joel Low b083c97f84 Replace PluginDatabaseClientFactory with PluginDatabaseManager 2020-10-07 09:32:44 +08:00
Joel Low 8c78b4e9dd Fix review comments
- Combine the various exported types; the only API surface is now the
  `PluginDatabaseClientFactory` which is a free function.
- Rename to the SingleConnectionManager class.
- Refactor the PluginEnvironment type to use databaseClientFactory for
  clarity.
- Fix mergeDatabaseConfig to not override the input dictionary.
2020-10-07 09:32:43 +08:00
Joel Low e277c5dfa5 Expose types to handle Database management
This implements several types to own and manage databases on a database
server. The current SimpleDatabase* classes preserve the present
behaviour; future implementations can segregate databases to be owned by
different roles.
2020-10-07 09:32:42 +08:00
Patrik Oldsberg 46b71700ee v0.1.1-alpha.24 2020-10-05 15:45:33 +02:00
Patrik Oldsberg 2527afac9e backend-common: refactor UrlReaders to only expose static methods 2020-10-03 16:52:31 +02:00
Patrik Oldsberg 69b3c03473 backend-common: added toString methods for all readers + log in backend instead of at creation 2020-10-03 11:55:24 +02:00
Patrik Oldsberg 327f87562d backend: add UrlReader 2020-10-03 11:55:22 +02:00
Evgeny Vlasov e0dce26354 TechDocs: add gitlab preparer & rewrite default-branch package (#2469)
* add gitlab preparer & rewrite default-branch package

* feat(techdocs-backend): rewrite default-branch module
2020-10-02 11:10:02 +02:00
Fredrik Adelöw 23befa262e Merge pull request #2674 from lowjoel/postgres-create-database
Auto-create plugin databases
2020-10-01 11:17:11 +02:00
Joel Low 3f2ec3c080 Let the Backend manage creating databases 2020-10-01 13:21:44 +08:00
Fredrik Adelöw dc6b1e7c79 Merge pull request #2669 from spotify/freben/github-org
feat(catalog-backend): implement github org entity ingestion
2020-09-30 15:08:24 +02:00
Joel Low b28c98a597 Create separate roles and auto-create plugin databases
This would create a role per plugin (with a predictable pattern) before
creating a database owned by that role. This removes the need to
manually provision databases and users.
2020-09-30 18:24:20 +08:00
Fredrik Adelöw c6ba9cba49 feat(catalog-backend): implement github org entity ingestion 2020-09-30 07:33:49 +02:00
Ben Lambert 2d37f700a2 Merge pull request #2543 from mfrinnstrom/azure-scaffolder-prepare
Add Azure DevOps support to the scaffolder
2020-09-28 23:44:19 +02:00
Mattias Frinnström 0f732731ef Restructure config for Azure DevOps scaffolder 2020-09-28 14:19:20 +02:00
Mattias Frinnström 56a9f8389b Add Azure DevOps publisher to scaffolder 2020-09-28 14:19:20 +02:00
Mattias Frinnström c109cbe4df Add Azure prepare stage to scaffolder 2020-09-28 14:19:19 +02:00
Patrik Oldsberg 940ea11719 backend: bump sqlite3 to v5 2020-09-28 12:34:57 +02:00
Patrik Oldsberg dad7b96194 package: allow node v14 and add to master build matrix 2020-09-28 12:30:37 +02:00
Patrik Oldsberg 9a5ea983b0 plugins: remove identity-backend 2020-09-26 11:48:19 +02:00
Patrik Oldsberg 6e7b881f64 Merge pull request #2600 from spotify/rugvip/disco
backend: add service discovery interface and implement for single host deployments
2020-09-25 13:32:36 +02:00
Ben Lambert 2f3d37e108 Merge pull request #2530 from timja/use-buster
Update docker base image to buster for node
2020-09-25 10:55:42 +02:00
Patrik Oldsberg 2a443ce68d techdocs-backend: use endpoint discovery to look up catalog url 2020-09-25 10:50:33 +02:00
Patrik Oldsberg 0e76ab7873 backend: add and use for external URL discovery 2020-09-25 10:50:32 +02: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
Patrik Oldsberg 9c5a0e836b Merge pull request #2562 from spotify/rugvip/api
backend: change the default backend plugin mount point to /api
2020-09-24 15:58:12 +02:00
blam 6c55d38348 v0.1.1-alpha.23 2020-09-23 16:40:49 +02:00
Patrik Oldsberg 521728348d backend: change the default backend plugin mount point to /api 2020-09-23 09:39:47 +02:00
Fredrik Adelöw e9b1c931b8 chore(scaffolder-backend): typo in visibility 2020-09-23 07:58:10 +02: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
Tim Jacomb f77333c351 Update docker base image to buster for node 2020-09-21 11:01:22 +01:00
blam fff010b0d1 Merge branch 'master' of github.com:spotify/backstage into mob/union-types
* 'master' of github.com:spotify/backstage:
  Update quickstart-app-auth.md
  Update changelog
  v0.1.1-alpha.22
  v0.1.1-alpha.21
  TechDocs: Use a flag to determine if we should use a local mkdocs or techdocs-container (#2503)
  feat(catalog-backend): delete log entries older than a cutoff
  fix(workflows): do not run e2e when contrib or docs change
  chore(contrib): form the basic contrib hierarchy
  fix(catalog-backend): address comments and add docs
  fix(catalog-backend): unify github and github/api, and use git-url-parse
2020-09-20 21:00:45 +02:00
Raghunandan 72235dd51e v0.1.1-alpha.22 2020-09-18 15:14:38 +02:00
Sebastian Qvarfordt f097c32b59 TechDocs: Use a flag to determine if we should use a local mkdocs or techdocs-container (#2503)
* Use a flag to determine wether to use techdocs-container or local install of mkdocs

* Updated techdocs generator to look at app-config string instead of argument to decide how to run the generator

* Removed console log...

* Reverted scaffolder file that was accidentally committed.

* Fixed lint issues

* Added config to create-app template
2020-09-18 14:02:35 +02:00
blam 1903f6d987 Merge branch 'master' of github.com:spotify/backstage into mob/union-types
* 'master' of github.com:spotify/backstage: (22 commits)
  [microsite] Add CNCF logo (#2511)
  feat: use title for API type in table
  new tutorials (#2435)
  e2e-test: ignore unhandled errors from jsdom
  Techdocs without docker-in-docker (#2438)
  Test for docker before attempting to run a container (#2497)
  scaffolder: Fix backend fails to start
  feat: add api-docs config ref for widgets
  Mark docs template description as required
  Send component description to GitHub
  Pass props to lists and control rendering from outside wrapper
  Remove commented out code
  Remove unnecessary boolean conversion
  docs: improve navigation around ADRs
  Update default-app template
  Handle empty sections
  Change logic of FeatureFlags.toggle()
  Update sidepar
  Add featureflags components and toggle method on api
  Cleanup and breaking out into more components
  ...
2020-09-18 12:50:21 +02:00
Tim Jacomb d8d074c1b4 scaffolder: Fix backend fails to start 2020-09-17 13:48:47 +01:00
blam 46c11dd7d3 Merge branch 'master' of github.com:spotify/backstage into mob/union-types
* 'master' of github.com:spotify/backstage: (656 commits)
  Update playback-order-component.yaml (#2495)
  feat: rework Api Explorer components
  Add GitLab integration for scaffolder
  feat(catalog-backend): support GHE and other GitHub providers
  Add scaffolder config to monorepo (#2492)
  Simplify code
  prettified md
  Added PlantUML diagrams in backstage.io docs (#2413)
  chore(deps): bump nodegit from 0.26.5 to 0.27.0 (#2454)
  grammar correction
  added description header field
  added description header field
  added description header field
  added description header field
  added description header field
  Condense if to else if
  Update docs
  Reword
  Make access optional
  eslintignore: add template dirs
  ...
2020-09-17 14:15:50 +02:00