Skip to content

Conversation

sats-23
Copy link

@sats-23 sats-23 commented Sep 4, 2025

Fixes #77

Operator reconcile logic fails if there are multiple RSCT CR's deployed (over different namespaces).

Sample Output:
2025-09-04T01:16:19-04:00 ERROR Reconciler error {"controller": "rsct", "controllerGroup": "rsct.ibm.com", "controllerKind": "RSCT", "RSCT": {"name":"rsct","namespace":"rsct-operator-system"}, "namespace": "rsct-operator-system", "name": "rsct", "reconcileID": "f3a2a91a-d2be-4df6-8ffe-56be09fdb400", "error": "only one RSCT custom resource is allowed, but found 2"}

@ppc64le-cloud-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: sats-23
Once this PR has been reviewed and has the lgtm label, please assign mkumatag for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@sats-23
Copy link
Author

sats-23 commented Sep 4, 2025

/cc @varad-ahirwadkar

func (r *RSCTReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) {
_ = log.FromContext(ctx)

rsctList := &rsctv1alpha1.RSCTList{}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code is against how the custom resource works! This needs a design discussion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Operator should check if the RSCT deployment is present

3 participants