Commit Graph
33 Commits
Author SHA1 Message Date
Roberto Jiménez Sánchez d10200c5ad [Provisioning] Fix issue with last ref (#101056)
* Fix issue with last ref

* Update frontend code

* Fix the local tmp test

* Use lastRef
2025-02-20 16:03:51 +01:00
842f68f91b Provisioning: Workflows as write access (#101031)
* workflow as write access

* workflow as write access

* workflow as write access

* Update pkg/registry/apis/provisioning/repository/test.go

Co-authored-by: Mariell Hoversholm <mariell.hoversholm@grafana.com>

* POC/Provisioning: Add wizard (#100596)

* update refs

* update refs

* lint fix

* lint fix

* lint fix

* default everythign to read only

* reuse form components

* remove main

---------

Co-authored-by: Mariell Hoversholm <mariell.hoversholm@grafana.com>
Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>
2025-02-20 11:01:03 +01:00
Roberto Jiménez Sánchez 18a938cf03 [Provisioning] Remove S3 Option (#100638)
Remove S3 option
2025-02-13 17:10:10 +01:00
Mariell Hoversholm 1f36907481 Provisioning: Encrypt webhook secret (#100612)
* feat: encrypt webhook secret

* chore: regen code
2025-02-13 16:27:55 +01:00
Mariell Hoversholm 45a586c725 feat: regen openapi 2025-02-13 13:25:21 +01:00
Alex KhomenkoandRyan McKinley ecca6d32af POC/Provisioning: Combine owner/repo into URL field (#100397)
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2025-02-11 16:34:57 +03:00
Roberto Jiménez SánchezandClarity-89 2a220b530d [Prototyping] Github Spec to allow push to main or force to use pull requests (#97001)
* Change to have workflows

* Update Frontend

* Run generation

* Add openapi file

* Revert unexpected changes

* Add enum

* Add description to workflows

* Add mapper function to please ESLint

* Remove pull request option

* Remove leftovers

* Configure sync interval in frontend

* Address most comments

* Regenerate client

* Fix compile issue

* Update WorkflowOption type

---------

Co-authored-by: Clarity-89 <homes89@ukr.net>
2025-02-10 15:23:49 +01:00
Ryan McKinleyandRoberto Jiménez Sánchez 13b607875b POC/Provisioning/Syncer: keep progress while running a sync job (#100017)
* same replicate

* with feedback

* one pass

* so close... but delete error

* fix api

* keep hash

* incremental works

* cleanup

* cleanup

* UID cleanup

* err style

* split the two changes

* openapi

* fix timestamps

* sort deletes first

* changes

* make sure to keep folders

* cleanup

* cleanup

* tested complete

* incremental

* Update pkg/apis/provisioning/v0alpha1/jobs.go

Co-authored-by: Roberto Jiménez Sánchez <roberto.jimenez@grafana.com>

* incremental

* complete

* lint fix

* use constant

* Update pkg/registry/apis/provisioning/jobs/syncer.go

Co-authored-by: Roberto Jiménez Sánchez <roberto.jimenez@grafana.com>

* Update pkg/registry/apis/provisioning/jobs/syncer.go

* use currentRef

---------

Co-authored-by: Roberto Jiménez Sánchez <roberto.jimenez@grafana.com>
2025-02-07 09:23:07 +01:00
Ryan McKinley f5ef63bcec POC/Provisioning: Replace EditingOptions with a readOnly flag (#99859) 2025-01-31 10:07:33 +03:00
Ryan McKinley 9e14a5b046 Provisioning: Move sync options to a special section of the spec (#99691)
* sync options

* working ish

* move folder property

* more tests

* create at the beginning of sync

* error rather than update meta

* only one target root

* update comment/kick CI

* with admission controller

* with UI updaates

* few fixes

* use repo name

* use radio group

* use radio group

* use radio group

* more fixes
2025-01-30 15:24:19 +01:00
Ryan McKinley 0fece88980 Provisioning: Support finalizers in our controller (#99532) 2025-01-29 18:22:10 +03:00
Mariell Hoversholm 74edadb379 Provisioning: Remove linting option (#99630)
* feat: remove linting option

* feat: drop linting from spec

* chore: regen code

* feat: remove linting spec option from apiserver

* chore: regen code

* test: update examples for removing the lint option
2025-01-29 09:20:10 +01:00
Roberto Jiménez Sánchez 2254a85b03 [PROVISIONING] Add Delete Policy to clean up resources on repository deletion (#99457)
* Add unsync mode to spec

* Implement unsync modes

* Eliminate one mode and use `deletePolicy` instead

* Betterer changes

* Fix leftover

* Add TODO for repository resources

* Revert frontend change for now

* Revert remaining frontend changes

* Revert betterer

* Revert betterer
2025-01-24 14:45:00 +01:00
Mariell Hoversholm 93fa0b1aed Provisioning: Only support YAML (#99421)
* Spec: Remove PreferYaml option

* Spec: Regenerate code from spec

* Provisioning: Only export YAML

* chore: remove last preferYaml refs
2025-01-23 14:30:19 +01:00
Ryan McKinleyandAlex Khomenko 75ac7acb91 POC/Provisioning: List objects from storage (#98874)
Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>
2025-01-14 13:29:07 +03:00
Mariell Hoversholm 0f367cd08e chore: update codegen 2025-01-07 10:34:38 +01:00
Ryan McKinley d3f5640343 merge main 2025-01-07 07:55:20 +03:00
Ryan McKinley 6683cdc082 K8s: Update from v0.31.3 to v0.32.0 (#98507) 2025-01-06 18:20:35 +03:00
Roberto Jiménez Sánchez 4d736faef3 Add maximum retries in controller (#98165)
* Add maximum retries in controller

* Retry only for apierrors ServiceIsUnavailable

* Return error OnUpdate and OnCreate

* Trigger sync job for both again

* Remove initialized status
2024-12-18 16:35:33 +01:00
Roberto Jiménez Sánchez d9d389bc53 Fix infinite loop and record more information (#98185)
* Fix infinite loop and record more information

* Regenerate code

* Use static client in job worker

* Fix condition to log that a repository is unhealthy

* Submit sync job after we are done with the status update

* Do not set generation in test endpoint
2024-12-18 14:21:00 +01:00
Roberto Jiménez Sánchez a6ed3d6fc5 [Prototyping] Webhook managed by controller (#98085) 2024-12-18 07:34:29 +03:00
Ryan McKinleyandMariell Hoversholm 4e90c34b64 POC/Provisioning: Use healthy repositories (#97999)
Co-authored-by: Mariell Hoversholm <mariell.hoversholm@grafana.com>
2024-12-17 11:13:30 +03:00
Ryan McKinleyandTodd Treece de2bff1d07 POC/Provisioning: Add informer (with healthcheck) (#97806)
Co-authored-by: Todd Treece <360020+toddtreece@users.noreply.github.com>
2024-12-13 13:45:22 +03:00
Yuri Tseretyan 2d386e6704 Alerting: Migrate notification models to generated by grafnaa-app-sdk (#95430)
* create notifications module and generate models

* switch template group to app models

* switch time intervals to use app models

* switch receiver to use app models

* switch routing tree to use app models

* move schema registration to resource packages

* fix package names to match app

* fix codeowners

* fix UI to use metadata.name instead of uid

* update dockerfile

* move generated models to pkg

* remove provenance from field selector

* move client factories to test files

* rename GenericClient to TypedClient
2024-12-09 10:29:05 -05: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
Yuri Tseretyan 10582e48f7 Alerting: Notifications Templates API (#91349) 2024-09-25 09:31:57 -04:00
Todd Treece da6b02a2b0 K8s: Add k8s codegen PR check (#91903) 2024-08-14 11:06:37 -04:00
Todd Treece dacf11b048 K8s: Fix hack/update-codegen (#91867) 2024-08-14 08:17:05 +03:00
Matthew Jacobson b7f422b68d Alerting: Receiver API Get+List+Delete (#90384) 2024-07-16 10:02:16 -04:00
Matthew Jacobson e121e2609f Alerting: Receiver API (#89707) 2024-06-26 20:03:25 +03:00
Yuri Tseretyan b075926202 Alerting: Time Intervals API (#88201)
* expose ngalert API to public
* add delete action to time-intervals
* introduce time-interval model generated by app-platform-sdk from CUE model the fields of the model are chosen to be compatible with the current model
* implement api server
* add feature flag alertingApiServer
---- Test Infra
* update helper to support creating custom users with enterprise permissions
* add generator for Interval model
2024-06-20 16:52:03 -04:00
Charandas 9167d67c05 K8s: update hack codegen script (#81216) 2024-01-25 12:01:09 -08:00
Charandas 48612063dd Grafana app platform: an aggregator cmd and package (#79948) 2024-01-08 22:33:42 +02:00