-
Notifications
You must be signed in to change notification settings - Fork 229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Moves functionality from gitrepo to gitjob controller #2475
Conversation
9f85170
to
84d478d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This almost LGTM, pending clarification on needed verbs for permissions on roles and role bindings. The rest is mostly nitpicks.
Thanks for this :)
84d478d
to
4a6411a
Compare
6f0300e
to
ee3135c
Compare
@@ -59,14 +62,18 @@ var _ = BeforeSuite(func() { | |||
Expect(err).NotTo(HaveOccurred()) | |||
Expect(k8sClient).NotTo(BeNil()) | |||
|
|||
mgr, err := ctrl.NewManager(cfg, ctrl.Options{ | |||
mgr, err := ctrlruntime.NewManager(cfg, ctrlruntime.Options{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: We use ctrl
everywhere else.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, yeah, I forgot to change that back to ctrl
.
There was already a variable around called ctrl
and they were clashing.
It should be back to the standard ctrl
now
Moves the following from `gitrepo` controller to `gitjob` controller: * AuthorizeAndAssignDefaults * RBAC resources creation * Helm secrets check * NewTargetsConfigMap The `gitrepo` controller still purges `bundles` and `bundledeployments` on `gitrepo` deletion and handles the status coming from `bundles` and `bundledeployments` Some functionality that was shared between both controllers has been moved to a common package to avoid code repetition. Signed-off-by: Xavi Garcia <[email protected]>
ee3135c
to
ac31217
Compare
Moves the following from
gitrepo
controller togitjob
controller:The
gitrepo
controller still purgesbundles
andbundledeployments
ongitrepo
deletion and handles the status coming frombundles
andbundledeployments
Some functionality that was shared between both controllers has been moved to a common package to avoid code repetition.
Refers to: #2435