Commit 79279f5
feat: gate-operator (#107)
* init
* move sync loop to service reconciler
* init service controller
* refactor status collector
* refactor status collector
move engine utils to reconciler
* move service controller to main
* remove unused
* add controller manager
* add context
* refactor
* fix controller manager init
* make console client once
* refactor agent and engine
* update socket
* bump console client
* refactor status
* update socket
* fix format error
* fix some linter issues
* update dep
* refactor cmd package
* fix build
* minor changes
* add lua unit tests
* fix imports
* minor enhancement
* add restore controller
* add velero crds
* add backup controller
* bump console client
* add backup creation logs
* add backup creation logs
* copy full files
* integrate agent changes
* pipelines client
* engine changes
* add gateloop
* fix
* fix instantiation
* gatecontrolloop as parallel
* fix some stuff, type is always pending, api error?
* needs namespace now, so has to be type job, or ns is added to api type
* fix creation error + pretty print
* missed adding to manager from old branch
* restart policy onfailure per default
* dont reconcile based on label/annotations changes, those are applied automatically
* try fix for client init
* create a second pipeline for testing
* change name to name + id
* pipeline3
* raw example
* fix raw job parsing error
* go mod tidy
* add jobref to status field
* refactor to track child job in status field jobref
* actually always create the pipelinegate CR
* add spec fields for status synced
* add spec fields
* actually lose ggraphql types
* state needs to be nullable
* all status fields need to be nullable
* complete refactor of state handling
* the time field is optional, should be becase you should be ablte to create the cr with kubectl
* scribbles on state
* debugg ln
* make geenrate
* make optional
* fix the infinity jobs
* fix yaml name
* logging
* refactor logging
* rename field
* fix job reconciliation error on resource version change
* tests with cr
* gateloop logging
* clean up
* clean up readme
* move apis dir into api dir
* adapt to new format
* need by id for cache
* pieplinegate reconciler
* make some methods available outside of service pkg
* add socket publisher
* add gate controller
* rm rebase leftovers
* pipelinegate controllers rename
* add capi
* fix compilation
* comment out scope, uses cluster api
* use reconcile helper
* fix version
* use patch
* rename package
* fix rerun, and jobs not getting updated after connection/auth was lost for some time
* clean up logging
* rm comments
* rm debug lines
* convert fmt prints to logs
* rm debug lines
* update gate jobref at console after first reconcile
* rm restore_controller.go
* fix unit test
* fix some lints
* add pipelinegates crds to crd in charts
* add permissions
* fix
* needs batch permissions, annotation for completeness sake
* make test run
* missing paths
* Update pkg/controller/pipelinegates/reconciler.go
Co-authored-by: Marcin Maciaszczyk <[email protected]>
* Update controllers/pipelinegates/pipelinegate_controller.go
Co-authored-by: Marcin Maciaszczyk <[email protected]>
* move pipelinegate types over to v1alpha1
* create manifests for it
* rbac for pipelines in deployments group
* import pipelines from v1alpha1
* use ctrl runtime client instead of clientset
* rm clientset usage
* defer unnecessary
* move synced state into status
* deepcopy, too
* role updated for group version
* reset to pending in reconcile, needs to get resource from cluster for that
* refactor controller with methods
* synced state now in status
* improve jobstatus handling
* fix wrong condition
* fix condition
* use scope and remove debug lines
* replace crd for pipelinegates in chart
* update role for pipelinegates in new group
* delete generated clientsets
* move samples to config/samples
* use cluster gate by id
* dont need the client gen anymore
* rm pipeilne query example
* get rid of generic cache
* create diableclientlimits in utils
* sue utils version of disableclientlimits
* no fmt here
* rm velero crds
* remove old pipelines types
* after rm of velero crds # components is 23
* readd other controllers
* delete notes
* move pg controller over to other controllers
* rn pipelinesv1alpha -> v1alhpa1
* rm test file
* adapt dockerfile for re/moved packages
* try fix chart linting action
* bump chart version
* fix lints
* new line eof
* fix some lints
---------
Co-authored-by: Lukasz Zajaczkowski <[email protected]>
Co-authored-by: Marcin Maciaszczyk <[email protected]>1 parent 1fbbfc4 commit 79279f5
File tree
36 files changed
+27667
-38
lines changed- .github/workflows
- api/v1alpha1
- charts/deployment-operator
- crds
- templates
- cmd
- config
- crd/bases
- rbac
- samples
- internal
- controller
- utils
- pkg
- client
- controller
- pipelinegates
- restore
- service
- lua
- manifests/template
36 files changed
+27667
-38
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
| 5 | + | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
0 commit comments