351 Commits

Author SHA1 Message Date
Mattias Frinnström 7f417559bb Move working directory config to backend 2020-10-27 12:15:27 +01:00
Mattias Frinnström 4e9453d6ed Add workdir config support to scaffolder 2020-10-27 12:15:27 +01:00
Patrik Oldsberg c633158fda scaffolder-backend: default github api url to api.github.com 2020-10-26 23:29:10 +01:00
Patrik Oldsberg 4ab6f559dd app-config: merged dev config back into main config 2020-10-22 10:52:07 +02:00
Brian Fletcher 4f6d40db34 adds a sample organization set of users and groups (#2963)
The top level is the acme-corp Group. Here is the graph

               acme-corp
                  |
              infrastructure
                  |
            _______________
           |               |
   backstage             boxoffice
     |    |               |    |
  team-a team-b      team-c  team-d

The members of those groups are as follows:

team-a:          team-b:          team-c:           team-d:
Janelle Dawe     Jenny Doe        Frank Tiernan     Eva MacDowell
Nigel Manning    Jonathon Page    Tara MacGovern    Lucy Sheehan
Breanna Davison  Amelia Park      Sarah Gilroy
                 Justine Barrow   Peadar MacMahon
                 Colette Brock    Calum Leavy
2020-10-21 21:20:15 +01:00
Patrik Oldsberg a7e4377c3e Merge pull request #2934 from RoadieHQ/google-analytics
Add Google Analytics support
2020-10-17 10:38:00 +02:00
Ryan Vazquez 31e03cca48 Merge pull request #2886 from spotify/cost-insights-comparable-metrics
Cost insights comparable metrics
2020-10-16 12:05:24 -04:00
David Tuite 71de0d8aee Add Google Analytics
Specity a Google Analytics Tracking ID in the `app-config.yaml` to
enable Google Analytics tracking.

```
app:
  title:
  baseUrl:
  googleAnalyticsTrackingId: UA-000000-0
```

If the `googleAnalyticsTrackingId` is not supplied, no tracking script
is added to the application and no tracking can occur.

Includes Helm chart changes to allow overriding the GA Tracking ID.
2020-10-16 14:55:24 +01:00
Ryan Vazquez d47e2287b5 compare -> default; deprecate dailyCost as metric; cleanup 2020-10-16 09:54:28 -04:00
Fredrik Adelöw 14f9daf942 Merge pull request #2913 from markuscodes1/feature/github-scaffolder-baseurl
Scaffolder backend- provide base url for creating apps in Enterprise GitHub
2020-10-16 14:35:33 +02:00
Althaf Hameez 275b7f001a Change default organization to be set to My Company instead of Spotify / Acme Organization (#2918) 2020-10-16 08:49:25 +02:00
Fredrik Adelöw 48f2c93978 Merge pull request #2904 from spotify/iameap/hacks-newrelic
New Relic Plugin Base Improvements
2020-10-15 22:59:08 +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
Eric Peterson c64a0a47ea Use new expected proxy configs to hit New Relic API. 2020-10-14 17:54:15 +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
Ryan Vazquez 54504deb13 tweak custom metric verbiage 2020-10-13 16:43:45 -04:00
Ryan Vazquez 1268eadd19 add metric comparison to top panel 2020-10-13 16:01:50 -04:00
Marvin9 f05e4b9608 re: make consistent environment variables
GITHUB_PRIVATE_TOKEN & GITHUB_ACCESS_TOKEN => GITHUB_TOKEN
GITLAB_PRIVATE_TOKEN, GITLAB_ACCESS_TOKEN & SCAFFOLDER_GITLAB_PRIVATE_TOKEN => GITLAB_TOKEN
AZURE_PRIVATE_TOKEN => AZURE_TOKEN
GHE_PRIVATE_TOKEN => GHE_TOKEN
2020-10-08 10:34:06 +05:30
Fredrik Adelöw b9c8062c08 feat(catalog): add an ldap processor 2020-10-05 14:59:11 +02:00
Patrik Oldsberg 6775deef9b update docs and examples to use shorter config secret syntax 2020-10-04 16:51:00 +02:00
Patrik Oldsberg 238715aac2 config,docs: switch to using url location type 2020-10-03 11:55:23 +02:00
Patrik Oldsberg 41d55e8d76 backend-common: refactor UrlReaders and factories to be centered around predicates 2020-10-03 11:55:20 +02:00
Patrik Oldsberg 2b7c1b70f9 app-config: move catalog processor configs to new readers key 2020-10-03 11:55:19 +02:00
Emma Indal 497675538c TechDocs: browse metadata (#2682)
* feat(techdocs): TechDocsPageWrapper to take in labels prop and use TechDocsHeader component

* feat(techdocs): new TechDocsHeader component as wrapper around Header from core

* feat(techdocs): TechDocsPage metadata

* feat(techdocs): TechDocsMetadata class responsible for reading metadata from generated techdocs metadata json file

* fix(techdocs): delete TechDocsPageWrapper component

* fix(app-config): delete /docs from request url

* feat(techdocs): TechDocsHeader with labels to browse metadata

* fix(techdocs): move metadata to backend plugin

* feat(techdocs-backend): introduce two new metadata routes

* feat(techdocs): new techdocs api to be responsible to request metadata from backend

* feat(techdocs): register new api for plugin

* fix(techdocs): reader to take in onReady prop

* fix(techdocs): TechDocsHome component to use its own header

* fix(techdocs): TechDocsPage responsible to get metadata and pass it down to the TechDocsHeader

* fix(techdocs): component tests for both TechDocsHeader and TechDocsPage

* fix(techdocs): adjust api to use /docs in url since it was taken away in requestURL

* fix(tests): move assertion into act

* fix(techdocs): rename TechDocsHeader to TechDocsPageHeader

* fix(techdocs): rename TechDocsHeader to TechDocsPageHeader

* fix(techdocs-backend): add some logs

* Update plugins/techdocs/src/reader/components/TechDocsPage.test.tsx

* delete unused import
2020-10-01 10:12:24 +02:00
Althaf Hameez a06a13c30d Read from App Config to configure HomepageTimer (#2673)
* Read from Config for timezone timers

* Remove recusrive dependency on backstage/core and fix tsc errors

* Modify to use ConfigArray instead of fixed Config

* Fix lint and tsc errors

* Cean up app-config.yaml

* add back newline

* Fix prettier error on app-config.yaml

* Address review comments
2020-09-30 20:47:06 +02: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
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
Ryan Vazquez 0c2ed5979d Merge pull request #2637 from spotify/plugin-cost-insights
Cost Insights Plugin
2020-09-28 15:46:02 -04:00
Ryan Vazquez a4281932fb add cost insights plugin 2020-09-28 15:20:31 -04:00
Ben Lambert 2c33a29c7c Merge pull request #2621 from andrewthauer/fix/circleci-proxy-config
fix(circleci): add api route prefix to proxy rewrite path
2020-09-28 15:28:10 +02:00
Marek Calus 0ed398633a Integrate with travis-ci plugin 2020-09-28 14:39:58 +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
Andrew Thauer 572abfe121 fix(circleci): add api route prefix to proxy rewrite path 2020-09-26 06:06:51 -04:00
Fredrik Adelöw ad90193d2a fix(backend): make csp configurable to unbreak app-backend served apps not being able to fetch 2020-09-25 12:20:21 +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 521728348d backend: change the default backend plugin mount point to /api 2020-09-23 09:39:47 +02:00
Fredrik Adelöw f7a57e89d0 Merge pull request #2501 from spotify/freben/more-github
fix(catalog-backend): unify github and github/api, and use git-url-parse
2020-09-18 15:06:18 +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
Fredrik Adelöw a4e563ed2d fix(catalog-backend): unify github and github/api, and use git-url-parse 2020-09-17 15:32:40 +02:00
Björn Marschollek 55542797a9 Add GitLab integration for scaffolder
This adds a GitLab integration for the scaffolder backend.

We're introduceing a preparer and a publisher for GitLab so that we can
read templates from GitLab and publish them to a configured GitLab
instance. The two instances don't need to be the same. For instance,
templates could be public on gitlab.com, but the created repos will live
in a hosted GitLab somewhere else.

The publisher gets its own config object in `app-config.yaml` where the
target instance and token can be specified.

The service catalogue defines both `gitlab` and `gitlab/api` as
processors. They are both handled by the same preparer.

Closes #2372
2020-09-17 12:39:05 +02:00
Fredrik Adelöw 4077b424fa feat(catalog-backend): support GHE and other GitHub providers 2020-09-17 09:04:35 +02:00
Tim Jacomb 702546b8e3 Add scaffolder config to monorepo (#2492) 2020-09-17 08:45:11 +02:00
Alex Landovskis 155f6d3e39 app-config.yaml: Add missing config for GithubReaderProcessor. 2020-09-12 18:34:32 -04:00
Patrik Oldsberg 75c7a055c1 app-config: use catalog.locations + aggregating location entities 2020-09-12 15:27:26 +02:00
Sebastian Qvarfordt d865f88344 [TechDocs] Rebuild docs if the github source is newer than last docs build (#2353)
* Added age check for documentation in github to make sure it's up to date

* Updated failing tests

* Updated docs to explain requestUrl and storageUrl

* Updated failing tests

* Update packages/create-app/templates/default-app/app-config.yaml.hbs

* Update docs/features/techdocs/getting-started.md

Co-authored-by: Emma Indal <emmai@spotify.com>
2020-09-09 16:05:28 +02:00
Ivan Shmidt f3acee2537 Merge branch 'master' of github.com:spotify/backstage into shmidt-i/circle-ci-plugin-new-route-api 2020-09-07 22:15:12 +02:00