Stephanie Hingtgen
8805e93b1d
Provisioning: Add better nil check ( #110847 )
2025-09-09 18:23:11 -05:00
Stephanie Hingtgen
451cc00b6a
Provisioning: Fix panic in webhook extra ( #110845 )
2025-09-09 17:16:57 -05:00
Roberto Jiménez Sánchez
acbc2cf01a
Provisioning: Configurable Repository Types in monolith and operators ( #110822 )
...
* Configurable repository types in monolith and operator
* Default to Github in operators
* Regenerate wire
* Fix and implement unit tests
* Same types for enterprise tests
* Remove unnecessary conversion
* Remove the issue with import cycles
2025-09-09 19:13:22 +02:00
Daniele Stefano Ferru and Roberto Jimenez Sanchez
76976ef648
Provisioning: add webhook support in API Server and Operator ( #110673 )
...
* Provisioning: add webhook support in API Server
* updating Extra interface
* adding extra with workers interface
* reverting extraWithWorkers in RegisterAPIService
* adding extra job worker provider
* adding new extra job provider
* Wire things differently
* Remove unused GetJobs
* Pass url variable as string
* Support webhooks in controller
* Fix condition
* Change the naming
---------
Co-authored-by: Roberto Jimenez Sanchez <roberto.jimenez@grafana.com >
2025-09-08 19:39:05 +02:00
Daniele Stefano Ferru
76f7836419
Provisioning: correctly use resource clients in controllers ( #110737 )
...
* Provisioning: correctly use resource clients in controllers
* better names on fields
* fix struct initialisation
* updating roundtripper tests
2025-09-06 18:13:39 -06:00
Daniele Stefano Ferru
04c3d9bff1
Provisioning: fixing some checks in config ( #110729 )
2025-09-05 23:27:35 +00:00
Roberto Jiménez Sánchez and Stephanie Hingtgen
e2913815d3
Provisioning: Build resource clients for operators ( #110699 )
...
---------
Co-authored-by: Stephanie Hingtgen <stephanie.hingtgen@grafana.com >
2025-09-05 17:52:57 +00:00
Roberto Jiménez Sánchez
1b9e479b68
Provisioning: Abstract away how we build discovery and dynamic clients ( #110662 )
...
Abstract away how we get discovery and dynamic clients
2025-09-05 09:22:30 +00:00
Stephanie Hingtgen
29ef525923
Provisioning: Allow disabling controllers ( #110641 )
2025-09-05 07:48:23 +02:00
Stephanie Hingtgen
9ddc70423b
Provisioning: Cleanup tester interface ( #110640 )
...
* Provisioning: Cleanup tester interface
* undo accidental change
* cleanup
* cleanup test
2025-09-05 07:47:27 +02:00
Stephanie Hingtgen
f302a3d538
Provisioning: Cleanup unused variables in controller ( #110637 )
2025-09-05 00:51:26 +00:00
Roberto Jiménez Sánchez
7d630ec3b1
Provisioning: Refactor tweaks to support MT controllers ( #110581 )
...
* Refactor common code to support MT controllers
* Delete original status files
2025-09-04 10:06:50 +00:00
Daniele Stefano Ferru
451d6abe15
Provisioning: Fix patching released resources when Repository is deleted ( #110295 )
...
* Provisioning: Use merge patch instead of json path to release orphan resources
* rolling back to json Patch
* adding TODO for testing
* adding integration test
* using struct
* addressing comments on tests
2025-09-02 21:13:43 +02:00
Matheus Macabu
1e926a29c0
Secrets: Extract external facing decrypt types to apps ( #110432 )
2025-09-02 10:30:29 +02:00
Roberto Jiménez Sánchez
4eadc823a9
Provisioning: Move repository package to provisioning app ( #110228 )
...
* Move repository package to apps
* Move operators to grafana/grafana
* Go mod tidy
* Own package by git sync team for now
* Merged
* Do not use settings in local extra
* Remove dependency on webhook extra
* Hack to work around issue with secure contracts
* Sync Go modules
* Revert "Move operators to grafana/grafana"
This reverts commit 9f19b30a2e .
2025-09-02 09:45:44 +02:00
Misi
a5c05ba9c1
IAM: Moving code to the /pkg/apps/iam folder ( #109985 )
...
* wip
* Gen GetTeams with app sdk
* Revert some changes, cleanup
* Format iam_manifest.go
* Remove generated file
* Regenerate openapi defs
* Cleanup
* Remove TODO
2025-08-28 12:32:15 +02:00
Roberto Jiménez Sánchez
93a35fc7be
Provisioning: Move apifmt, loki and safepath to provisioning app ( #110226 )
...
* Move apifmt
* Move safepath
* Move Loki package
* Regenerate Loki mock
* Missing file for Loki
2025-08-27 13:26:48 -05:00
Costa Alexoglou
9785e573aa
Provisioning: Fix Dashboard Creation For First-Level Repository Folders ( #109962 )
2025-08-27 12:20:57 +02:00
Roberto Jiménez Sánchez
e196f13b2b
Provisioning: Introduce Repository Factory with extras ( #110018 )
2025-08-26 10:37:47 +02:00
Ryan McKinley
99f640fbab
Provisioning: Always fetch token ( #110116 )
2025-08-25 18:57:27 +02:00
Roberto Jiménez Sánchez
e7ccefcf92
Provisioning: Add Standalone Job Controller Without Job Processing ( #109610 )
...
* Add standalone job controller
* Add makefile
* Add limit on the current implementation
* Move job controllers to app package
* Add TLS flags
2025-08-25 08:48:40 +00:00
Roberto Jiménez Sánchez
9a668ce06f
Provisioning: Use API Client For Job Processing ( #110044 )
2025-08-25 09:46:20 +02:00
ce65391067
Provisioning: Use inline secrets for gitsync ( #109908 )
...
Co-authored-by: Clarity-89 <homes89@ukr.net >
Co-authored-by: Roberto Jimenez Sanchez <roberto.jimenez@grafana.com >
2025-08-22 18:38:28 +02:00
Roberto Jiménez Sánchez
ed13225b71
Provisioning: Refactor History Writer to Use API Client ( #110031 )
...
* Separate interfaces for writing and reading in job history
* Register the 2 writers
* Commit unsaved file
* Do not validate or mutate history jobs
* Change the TODOs
2025-08-22 13:41:00 +02:00
Ryan McKinley
018e810d43
Provisioning: Remove clonedir (not used by nanogit) ( #109954 )
...
remove clone dir
2025-08-21 10:04:30 +00:00
Roberto Jiménez Sánchez
61d137992b
Provisioning: Mark repository as unhealthy if hooks fail ( #109788 )
2025-08-21 08:32:23 +00:00
Roberto Jiménez Sánchez
c37a03263f
Provisioning: Fix Bug Blocking Changing Pull Target During Onboarding ( #109892 )
...
* Fix bug changing target for unsynced repository
* Fix linting
2025-08-20 09:02:19 +00:00
Stephanie Hingtgen
77c96cbd06
Secrets: Refactor setting additional decrypter ( #109877 )
2025-08-19 16:10:43 -05:00
Mariell Hoversholm
0fc29cbaae
Rendering: Remove SVG sanitization ( #109797 )
2025-08-19 11:34:12 +02:00
Roberto Jiménez Sánchez
1ff39510d3
Provisioning: Check For Resource Ownership Before Operations ( #109582 )
2025-08-15 10:05:53 +03:00
Roberto Jiménez Sánchez
ffc7508a46
Provisioning: Enforce instance repository isolation ( #109512 )
...
* Fix validation on repository creation
* Fix linting
* Do not count the provided one
* Fix test
* Fix tests
2025-08-14 10:19:40 +00:00
Stephanie Hingtgen
85166512cb
Provisioning: Update for standalone ( #109524 )
2025-08-12 17:37:16 -05:00
Ryan McKinley and Roberto Jimenez Sanchez
edcb6e6895
Provisioning: Fix OpenAPI generation ( #109513 )
...
* post-process spec
* update client
* fix the openapi
* revert playlist change
* Fix unmanaged resource counts
---------
Co-authored-by: Roberto Jimenez Sanchez <roberto.jimenez@grafana.com >
2025-08-12 17:25:19 +00:00
Roberto Jiménez Sánchez
5c5729a25d
Provisioning: Fix migration behavior for folder-type repositories ( #109518 )
...
Fix migration issues for folder sync
2025-08-12 16:48:13 +02:00
Roberto Jiménez Sánchez
f2303a8ad9
Provisioning: Include Ref URLs in Job Status ( #109464 )
...
* Add URLs to Job spec
* Rename them as RefURLs
* Implement RefURLs for Github
* Add Ref URLs to Jobs
* Worker Test
* Create the branch in the staged writer
* Regenerate Git mock
* Format code
* Consolidate ResourceURLs and RefURLs into one
* Fix broken tests
2025-08-12 11:57:37 +02:00
Roberto Jiménez Sánchez
8a690e977e
Provisioning: Return unmanaged count in stats ( #109462 )
...
* Unmanaged counts
* Add integration test
* Generate open api spec
2025-08-12 09:17:25 +02:00
Ryan McKinley
e0404f924c
K8s/SecureValues: Wire InlineSecureValueSupport to apistore ( #109449 )
...
* inline wire
* extra fields
* add variable
* wire
2025-08-11 15:22:56 +03:00
Ryan McKinley
439d4d383c
Provisioning: Hide HistoricJobs from OpenAPI spec ( #109454 )
...
histtoric jobs
2025-08-11 10:47:33 +00:00
Roberto Jiménez Sánchez
f80627f228
Provisioning: Store Recent Jobs Temporarilly in Unified Storage ( #109392 )
...
* Add HistoryJob back to Spec
* Generate client
* Put back History Jobs
* Add a controller to remove historic jobs after some minutes
* Start only if Loki is not used
* Format code
* Update OpenAPI spec
* Change log level
* Fix condition
* Fix staticcheck
* Use provisioning identity
* Fix registration APIs
* Fix readonly issue
* Update OpenAPI
2025-08-11 13:10:15 +03:00
Roberto Jiménez Sánchez
2a0944a92a
Provisioning: Miscellanous Fixes For Flaky Integration Tests ( #109330 )
...
* Enhance error messages individual files errors
* Split integration tests into multiple files
* Fix missing import
* Rename file to repository test
q
* Wrap worker errors with more context
* Fixed tests
* Add nolint
* Wait for specific job in multiple spots
2025-08-07 14:26:22 +02:00
Roberto Jiménez Sánchez
2b15fa0492
Provisioning: Fix missing ref in staging options ( #109311 )
...
Fix missing ref in staging options
2025-08-07 12:00:31 +02:00
Ryan McKinley
ace670c6d0
Secrets: Support variadic args in decrypt service ( #109280 )
2025-08-07 09:54:24 +00:00
Roberto Jiménez Sánchez
c82d2af867
Provisioning: introduce jobs controller ( #109252 )
...
* Add basic job controller
* Replace the existing in-memory channel
2025-08-07 12:51:29 +03:00
Roberto Jiménez Sánchez
0b5fc9a736
Provisioning: Use loki for recent jobs ( #109249 )
2025-08-06 18:09:28 +00:00
Roberto Jiménez Sánchez and Stephanie Hingtgen
fec9cd550a
Provisioning: Reclaim executing jobs ( #109228 )
...
* Reclaim Executing Jobs
* Remove FIXME
* Format code
* Fetch job before update
* Add claims for all namespaces
* Remove unused import
* Update pkg/registry/apis/provisioning/jobs/concurrent_driver.go
* Update pkg/registry/apis/provisioning/jobs/concurrent_driver.go
---------
Co-authored-by: Stephanie Hingtgen <stephanie.hingtgen@grafana.com >
2025-08-06 17:35:31 +00:00
Matheus Macabu
b0b1340c19
Secrets: Remove Close from decrypt client interface ( #109250 )
2025-08-06 14:02:13 +02:00
Matheus Macabu
fc13a1ae0c
Provisioning: Change decrypter service identity to api group name ( #109190 )
2025-08-06 09:05:03 +02:00
Matheus Macabu
fc117afebc
Secrets: Provide grpc and local inline secure value client ( #109179 )
...
* TestUtils: Add helper to create certs
* InlineSecureValue: Move to its own package rather than service
* Settings: Rename decrypt server configs to grpc prefixed as it is more generic
* InlineSecureValue: Add gRPC client
* InlineSecureValue: Add service provider grpc/local depending on setting.Cfg
* Wire: Add ProvideInlineSecureValueService to basic wireset
* InlineSecureValue: Re-export in root secret pkg and generate mocks for interface
* Settings: Unify decrypt+inline setting into generic grpc client
2025-08-06 09:04:55 +02:00
Roberto Jiménez Sánchez
377cf1fef9
Provisioning: concurrent job queue processing ( #109181 )
...
* Add concurrent job processing
* Use 5 drivers instead
* Revert "Use 5 drivers instead"
This reverts commit 9c1fc3c70b .
* Format file
2025-08-05 13:38:37 -05:00
Roberto Jiménez Sánchez
d874bc08b7
Provisioning: Skip incremental rync ref didn't change ( #109174 )
...
Skip incremental sync if ref didn't change
Avoids unnecessary load on the job queue by not queuing if the ref
didn't change from the last sync.
2025-08-05 13:26:47 +02:00