Skip to content
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

feat: Change default registry #170

Closed
wants to merge 7 commits into from
Closed

Conversation

disq
Copy link
Member

@disq disq commented Nov 21, 2023

Had to be done with pointers because if a value is not specified it doesn't enter into Unmarshal() for that type, so short of changing the zero value to be CloudQuery (or using strings) we can't do it any other way. Tried with RegistryUnset (-1) doesn't really work with unspecified fields.

Will follow up with the CLI counterpart later.

Part of https://github.com/cloudquery/cloudquery-issues/issues/924 (Internal issue)

@disq disq requested a review from erezrokah November 21, 2023 18:29
@github-actions github-actions bot added feat and removed feat labels Nov 21, 2023
@disq
Copy link
Member Author

disq commented Nov 21, 2023

Closing as probably not needed.

@disq disq closed this Nov 21, 2023
@disq
Copy link
Member Author

disq commented Nov 21, 2023

Reopening as some parts are needed, and other parts are nice to have and/or good for feature parity.

@disq disq reopened this Nov 21, 2023
client, err := NewClient(ctx, typ, spec, opts...)
if err != nil {
return nil, err
return clients, err // previous entries in clients determine which plugins were successfully created
Copy link
Member Author

Choose a reason for hiding this comment

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

This is needed so that we can check which client has failed by looking at len(clients)

@disq disq force-pushed the feat/change-default-registry branch from 4161f7b to eeb1bac Compare November 22, 2023 10:14
kodiakhq bot pushed a commit that referenced this pull request Nov 22, 2023
@disq disq deleted the feat/change-default-registry branch November 22, 2023 15:56
kodiakhq bot pushed a commit to cloudquery/cloudquery that referenced this pull request Nov 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants