Commit Graph
21 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
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