Ryan McKinley
210b956917
POC/Provisioing: Show list in API ( #97090 )
2024-11-27 17:09:59 +03:00
Ryan McKinley
03c43ae467
merge main
2024-11-27 09:26:00 +03:00
Ryan McKinley
f6ccf976e5
UnifiedSearch: Use ResourceIndex from dashboards apiserver (v0alpha1 only) ( #96939 )
2024-11-27 07:57:53 +02:00
Karl Persson
3990637af9
IAM: remove duplicated functions ( #96989 )
...
* Remove duplicated function and use the one provided by claims package
2024-11-26 09:22:45 +01:00
Mariell Hoversholm
f73611831d
chore: regen k8s code for folder
2024-11-25 16:28:02 +01:00
Mariell Hoversholm
42e9570808
POC/Provisioning: Fix: Make github client not call prod GH in tests ( #96926 )
...
* refactor: create repository package
* refactor: abstract GH client
* feat: generate mock
* feat: wire in factories
* test: make tests pass
* chore: go fmt
2024-11-25 11:51:29 +01:00
Mariell Hoversholm
a04421556e
feat: export metadata-less YAML resources ( #96829 )
...
* feat: export metadata-less YAML resources
* feat: add option to prefer YAML
(cherry picked from commit ed0db3d0e0 )
2024-11-22 09:18:56 +01:00
Ryan McKinley
cc09fd5976
POC/Provisioning: Parse and validate objects from repo ( #96822 )
...
(cherry picked from commit 079f47221d )
2024-11-22 09:18:50 +01:00
Mariell Hoversholm
1aede325f2
POC/Prototype: Provisioning: add export endpoint ( #96815 )
...
* feat: add export endpoint
This is not at all complete, but acts as a good base.
* chore: more todos
* feat: fetch folders and their parents
* feat: export to folders
* refactor: use constant for folder key
(cherry picked from commit d403f5255e )
2024-11-22 09:18:41 +01:00
Ryan McKinley
82b47c3e79
POC/Provisioning: Return FileInfo from read (not just bytes) ( #96813 )
2024-11-21 10:37:32 +03:00
Ryan McKinley
8fda03d3d5
POC/Provisioning: Add write hooks ( #96670 )
2024-11-19 17:25:45 +03:00
Roberto Jiménez Sánchez
76e494209f
[Prototyping] automatically create github webhook in provisioning ( #96645 )
2024-11-19 14:54:29 +01:00
Ryan McKinley
7a2e9fc0c0
POC/Provisioning: Load local files (yaml or json) ( #96653 )
2024-11-19 11:08:43 +03:00
Ryan McKinley
c4b78ad824
Merge remote-tracking branch 'origin/main' into grafana-git-ui-sync
2024-11-18 14:40:50 +03:00
Mariell Hoversholm
155d543520
feat: add last commit status with editing capability ( #96604 )
...
* feat: add a status with current git commit hash
* feat: allow editing status
* revert: undo some deleted code
2024-11-18 10:07:51 +01:00
Todd Treece and Stephanie Hingtgen
66d5c051aa
Dashboards: Add v1alpha1 and v2alpha1 conversion ( #96415 )
...
---------
Co-authored-by: Stephanie Hingtgen <stephanie.hingtgen@grafana.com >
2024-11-15 15:49:45 -05:00
Roberto Jiménez Sánchez
cf15826360
[Prototype] Implement repository file read endpoint ( #96569 )
2024-11-15 17:33:40 +01:00
Ryan McKinley
4881ae063a
POC/Provisioning: Add webhook and read stubs ( #96540 )
2024-11-15 17:24:06 +03:00
Ryan McKinley
264192a08b
POC/Provisioning: update spec and examples ( #96438 )
2024-11-14 14:59:29 +03:00
Mariell Hoversholm
f2ab3dfa18
feat: add hello world subresource ( #96425 )
...
This adds the infrastructure we need for a basic subresource.
2024-11-14 09:25:02 +01:00
Mariell Hoversholm
80bcdba70c
feat: rename folderUid to folder
2024-11-14 08:38:04 +01:00
Mariell Hoversholm
4d9e5a8ceb
docs: comments
2024-11-14 08:35:56 +01:00
Mariell Hoversholm
092f5b23d2
feat: output type and target in tabular format
...
This is the `kubectl get` output.
2024-11-13 16:32:02 +01:00
Mariell Hoversholm
07b745b6ce
feat: add more to repo model
2024-11-13 15:50:31 +01:00
Mariell Hoversholm
c0e9623381
feat: regenerate openapi
2024-11-13 15:21:35 +01:00
Mariell Hoversholm
0c169c8ed1
refactor: rename to provisioning
2024-11-13 15:05:18 +01:00
Mariell Hoversholm
53a9cccaa8
feat: use scope-like apiserver approach
2024-11-13 14:19:11 +01:00
Andres Martinez Gotor
c3494614e3
PoC: Define userstorage API ( #95557 )
2024-11-12 12:56:41 +01:00
2deced7d40
Alerting: Notifications Routes API ( #91550 )
...
* Introduce new models RoutingTree, RouteDefaults and Route and api-server to serve them that is backed by provisioning notification policy service.
* update method UpdatePolicyTree of notification policy service to return route and new version
* declare new actions alert.notifications.routes:read and alert.notifications.routes:write and two corresponding fixed roles.
---------
Co-authored-by: Tom Ratcliffe <tom.ratcliffe@grafana.com >
Co-authored-by: Matthew Jacobson <matthew.jacobson@grafana.com >
2024-10-24 13:53:03 -04:00
Karl Persson
86fc8da703
RBAC: Add legacy authorization checks to teams ( #94524 )
...
* Setup team authorization for teams
* Add list filter for teams
2024-10-10 16:47:31 +02:00
Karl Persson
0160f4f72c
RBAC: Add legacy authorization checks to service accounts ( #93753 )
...
* Extract a helper funtion to perform list with authorization checks
* Add k8s verb to utils package
* Construct default mapping when no custom mapping is passed
* Configure authorization checks for service accounts
* Fix helper and add filtering to service accounts
2024-09-27 15:53:11 +02:00
Yuri Tseretyan
10582e48f7
Alerting: Notifications Templates API ( #91349 )
2024-09-25 09:31:57 -04:00
Karl Persson
c28b37a67b
RBAC: Add option to skip rbac check for specified verbs ( #93654 )
...
* Add option to skip rbac check for specified verbs
2024-09-24 15:13:04 +02:00
Todd Treece
d1ffcc22d9
Playlists: Migrate to App SDK codegen ( #93246 )
2024-09-13 16:27:40 -04:00
Matthew Jacobson
3bf77d2e05
Alerting: Include in-use metadata in k8s receiver LIST & GET ( #93016 )
...
* Include in-use metadata in k8s receiver List & Get
2024-09-13 20:20:09 +03:00
Matthew Jacobson
ff6a20f54a
Alerting: Include access control metadata in k8s receiver LIST & GET ( #93013 )
...
* Include access control metadata in k8s receiver List & Get
* Add tests for receiver access
* Simplify receiver access provisioning extension
- prevents edge case infinite recursion
- removes read requirement from create
2024-09-12 20:57:53 +03:00
Arati R.
b918739a98
K8s/Folders: Add basic folder integration tests (create, read) ( #93232 )
...
* Add initial folder tests
* Add test for get/reading folders
* Compare legacy and k8s create and read
* Remove dependency on grafanaAPIServerWithExperimentalAPIs
2024-09-12 14:36:46 +02:00
Matthew Jacobson
eea28172e0
Alerting: Add field selectors for k8s receivers API ( #93015 )
...
Add field selectors for k8s receivers API
metadata.provenance
spec.title
2024-09-10 10:58:14 -04:00
b89f3f8115
Ad-Hoc Filters & Scopes: don't remap one-of to regex in frontend ( #92995 )
...
* send "one-of" and "not-one-of" directly to datasource (instead of changing them to regex)
* Added to Ad-hoc and and Scope Filters: The "values" prop ([]string) and the "one-of" and "not-one-"of" operators. "values" is used with one-of and not-one-of.
* adds prometheus support for the above
---------
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com >
Co-authored-by: Todd Treece <todd.treece@grafana.com >
2024-09-09 16:56:43 +03:00
Karl Persson and Ryan McKinley
bc20592fd4
IAM: Add and use identity ref ( #92978 )
...
* Add and use identity ref
---------
Co-authored-by: Ryan McKinley <ryantxu@gmail.com >
2024-09-05 16:10:23 +02:00
Claudiu Dragalina-Paraipan
085aaec958
Fix playlist tests ( #92837 )
2024-09-05 15:41:28 +03:00
Karl Persson
2bfa607ad0
ServiceAccount: Update service account api resource and add service account token ( #92972 )
...
* Create own legacy store function to list service accounts and update api model
* Add service account tokens as a sub resource for service accounts
2024-09-05 13:43:54 +02:00
Ryan McKinley
9338e40dc3
K8s/IAM: Move identity.grafana.app to iam.grafana.app ( #92929 )
2024-09-05 09:43:54 +03:00
Ryan McKinley
cb484f9883
K8s: Move ResourceInfo from common to utils ( #92924 )
2024-09-04 14:53:14 +03:00
Karl Persson
294712d7ef
User: Add sub resource and api for user teams ( #92649 )
...
* Add sub resource for user teams
* Add test snapshots
* Update to use ref:s
2024-08-30 15:05:27 +02:00
2bb2183b41
Scopes: Move title and groups to status in ScopeDashboardBinding ( #92377 )
...
---------
Co-authored-by: Kyle Brandt <kyle@grafana.com >
Co-authored-by: Bogdan Matei <bogdan.matei@grafana.com >
2024-08-28 08:59:18 -04:00
Karl Persson
4addd9637e
Team: Add sub resource and api for team members ( #92492 )
...
* Add team members as a sub resource
* Fix and clean up pagination for teams
* Fix and clean up pagination for users
* Fix and clean up pagination for service accounts
* Update snapshots
2024-08-28 10:30:23 +02:00
Ryan McKinley
419edef4dc
LibraryPanels: Expose library panels in dashboard apiserver ( #92213 )
2024-08-27 12:12:22 +03:00
Karl Persson
2872e11c13
Teams: Add apis for team membership ( #92204 )
...
* Add TeamBinding resource
* Implement read api:s for TeamBindings
2024-08-27 08:31:29 +02:00
Karl Persson
b6540e2a18
SSOSettings: Add api:s ( #92018 )
...
* apis: add sso setting resource
* Implement Storage for sso
* Rename packages
* Merge identity and sso package
* Update table format and expose GetNestedBool
* Restructure identity api package
2024-08-21 09:16:47 +02:00