You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FYI, I'm not considering where we change the function signature of getLatestReleaseFromRemoteRepository but as of now this function expects a GitHub client and we create that in the main Reconcile method.
you can move the check for Autosubscribe outside of this utility function, so that the function is never called if autosubscribe is not true. Then you can create the client only when needed
Activity
kranurag7 commentedon Feb 14, 2024
Hey, regarding 2nd, I think we need one in the main Reconcile method.
cluster-stack-operator/internal/controller/clusterstack_controller.go
Line 126 in adb648c
FYI, I'm not considering where we change the function signature of
getLatestReleaseFromRemoteRepositorybut as of now this function expects a GitHub client and we create that in the main Reconcile method.janiskemper commentedon Feb 14, 2024
you can move the check for Autosubscribe outside of this utility function, so that the function is never called if autosubscribe is not true. Then you can create the client only when needed