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: Allow use of CloudQuery registry with docker plugins #235

Merged
merged 1 commit into from
Feb 5, 2024

Conversation

hermanschaaf
Copy link
Member

This change allows Docker plugins to use the CloudQuery registry, meaning that configs can now be written like:

path: cloudquery/typeform
version: v1.2.3

instead of

registry: docker
path: docker.cloudquery.io/cloudquery/source-typeform:v1.2.3

The docker registry can still be used if preferred, either with or without the docker.cloudquery.io path.

@hermanschaaf hermanschaaf requested review from erezrokah and removed request for yevgenypats February 2, 2024 16:37
@github-actions github-actions bot added the feat label Feb 2, 2024
if p.JSON200 == nil {
return false, fmt.Errorf("failed to get plugin information: response body is empty")
}
return p.JSON200.PackageType == "docker", nil
Copy link
Member

@disq disq Feb 2, 2024

Choose a reason for hiding this comment

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

Suggested change
return p.JSON200.PackageType == "docker", nil
return p.JSON200.PackageType == cloudquery_api.PluginVersionPackageTypeDocker, nil

Might need a string()

@hermanschaaf hermanschaaf added the automerge Add to automerge PRs once requirements are met label Feb 5, 2024
@kodiakhq kodiakhq bot merged commit 58ec077 into main Feb 5, 2024
8 checks passed
@kodiakhq kodiakhq bot deleted the allow-docker-plugins-to-use-normal-path branch February 5, 2024 09:17
kodiakhq bot pushed a commit that referenced this pull request Feb 6, 2024
🤖 I have created a release *beep* *boop*
---


## [1.17.0](v1.16.8...v1.17.0) (2024-02-05)


### Features

* Allow use of CloudQuery registry with docker plugins ([#235](#235)) ([58ec077](58ec077))


### Bug Fixes

* **deps:** Update module github.com/cloudquery/cloudquery-api-go to v1.7.3 ([#237](#237)) ([e7a6085](e7a6085))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Add to automerge PRs once requirements are met feat
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants