-
Notifications
You must be signed in to change notification settings - Fork 135
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
Error when template for workflow doesn't exist #631
Error when template for workflow doesn't exist #631
Conversation
e4ecade
to
b35271d
Compare
@@ -36,6 +36,9 @@ func NewController(kubeClient client.Client) *Controller { | |||
// +kubebuilder:rbac:groups=tinkerbell.org,resources=workflows;workflows/status,verbs=get;list;watch;update;patch;delete | |||
|
|||
func (c *Controller) Reconcile(ctx context.Context, req reconcile.Request) (reconcile.Result, error) { | |||
logger := controllerruntime.LoggerFrom(ctx) | |||
logger.Info("Reconciling") |
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 adds some useful information about the object under reconciliation. I intend on expanding this throughout the workflow controller.
When the template referenced by a workflow doesn't exist we need to throw an error to trigger requeueing continuously until the template becomes available. If it doesn't, logging will indicate as much as it will note the errors. Signed-off-by: Chris Doherty <[email protected]>
b35271d
to
19b68be
Compare
Codecov Report
@@ Coverage Diff @@
## main #631 +/- ##
==========================================
+ Coverage 44.54% 44.63% +0.09%
==========================================
Files 61 61
Lines 3518 3524 +6
==========================================
+ Hits 1567 1573 +6
Misses 1869 1869
Partials 82 82
Continue to review full report at Codecov.
|
I'm a maintainer of several other services often related to the Kuberenetes back-end/Kubernetes controllers and I'm taking ownership for a lot of release synchronization making it both appropriate and necessary for me to maintain aspects of the Tink repository. Requirements: - I have reviewed the [community membership guidelines](https://github.com/tinkerbell/proposals/blob/main/proposals/0024/GOVERNANCE.md) - I have [enabled 2FA on my GitHub account](https://github.com/settings/security) - I have subscribed to the [tinkerbell-contributors e-mail list](https://groups.google.com/g/tinkerbell-contributors) - I am actively contributing to 1 or more Tinkerbell subprojects Here is a list of non-trival PRs I have been the primary reviewer on: #596 #628 #614 I have also made a number of code contributions to this repository, here are a few of them: #638 #631 #626 #622 #612 I have also raised various issues and am driving the releasing across Tinkerbell including in this repository. Requesting consideration of expedited responsibilities: yes Sponsors: - @mmlb (Maintainer) - @micahhausler (Maintainer) - @jacobweinstock (Core contributor in other Tinkerbell repositories)
When the template referenced by a workflow doesn't exist we need to
throw an error to trigger requeueing continuously until the template
becomes available. If it doesn't, logging will indicate as much as it
will note the errors.