Skip to content

Create GitHub client only if it is necessary #58

Closed

Activity

  1. added
    Container
    on Feb 7, 2024
  2. kranurag7 commented on Feb 14, 2024

    @kranurag7
    Contributor

    Hey, regarding 2nd, I think we need one in the main Reconcile method.

    latest, err := getLatestReleaseFromRemoteRepository(ctx, clusterStack, gc)

    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.

  3. janiskemper commented on Feb 14, 2024

    @janiskemper
    Member

    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

  4. added
    Sprint Vancouver
    on Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

ContainerSprint Vancouver

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions