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
Add 'GetPackageRepositories' impl #3792
Conversation
Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com>
log "k8s.io/klog/v2" | ||
) | ||
|
||
// GetPackageRepositories returns the package repositories based on the request managed by the 'kapp_controller' plugin |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: we don't necessarily need this yet. We're not yet using it in the dashboard and the API is something Greg's working on in the background. We just had it initially with the kapp-controller plugin as an example, I think.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, I know, but I didn't want to remove the existing code and, given that we are gonna work on that soon, it worths the effort on using the same from/to unstructured approach, for example.
Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com>
Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com>
* Add required files for the Carvel plugin impl Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add 'GetAvailablePackageSummaries' impl Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add 'GetAvailablePackageVersions' impl Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add 'GetAvailablePackageDetail' impl Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add 'GetInstalledPackageSummaries' impl Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add 'GetInstalledPackageDetail' impl Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add 'CreateInstalledPackage' impl Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add 'UpdateInstalledPackage' impl Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add 'DeleteInstalledPackage' impl Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Remove old tests. Fix TestGetClient test Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add TestGetAvailablePackageSummaries Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add TestGetAvailablePackageVersions Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add TestGetAvailablePackageVersions Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add TestGetInstalledPackageSummaries Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add TestGetInstalledPackageDetail Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Fix wrong secret name in test Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add targetCluster but throw an error if not matching with pkg one Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add TestCreateInstalledPackage Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add basic TestUpdateInstalledPackage Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Fix wrong pkg cluster Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Remove populated secrets in the create test. Minor renames Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add TestDeleteInstalledPackage Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add 'GetPackageRepositories' impl (#3792) * Add 'GetPackageRepositories' impl Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Fix nil pointer Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add TestGetPackageRepositories Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Changes after code review Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Changes after code review Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Merge manually some changes Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Changes after code review Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com>
…3816) * Add required files for the Carvel plugin impl (#3783) * Add required files for the Carvel plugin impl Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Remove old tests. Fix TestGetClient test Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add 'GetAvailablePackageSummaries' impl (#3784) * Add required files for the Carvel plugin impl Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add 'GetAvailablePackageSummaries' impl Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Remove old tests. Fix TestGetClient test Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add TestGetAvailablePackageSummaries Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add 'GetAvailablePackageVersions' impl (#3785) * Add 'GetAvailablePackageVersions' impl Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add TestGetAvailablePackageVersions Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Changes after code review Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Changes after code review Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add 'GetAvailablePackageDetail' impl (#3786) * Add required files for the Carvel plugin impl Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add 'GetAvailablePackageSummaries' impl Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add 'GetAvailablePackageVersions' impl Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add 'GetAvailablePackageDetail' impl Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Remove old tests. Fix TestGetClient test Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add TestGetAvailablePackageSummaries Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add TestGetAvailablePackageVersions Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add TestGetAvailablePackageVersions Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add 'GetAvailablePackageVersions' impl (#3785) * Add 'GetAvailablePackageVersions' impl Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add TestGetAvailablePackageVersions Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Changes after code review Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Changes after code review Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Changes after code review Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Changes after code review Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add 'GetInstalledPackageSummaries' impl (#3787) * Add required files for the Carvel plugin impl Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add 'GetAvailablePackageSummaries' impl Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add 'GetAvailablePackageVersions' impl Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add 'GetAvailablePackageDetail' impl Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add 'GetInstalledPackageSummaries' impl Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Remove old tests. Fix TestGetClient test Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add TestGetAvailablePackageSummaries Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add TestGetAvailablePackageVersions Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add TestGetAvailablePackageVersions Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add TestGetInstalledPackageSummaries Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add 'GetAvailablePackageVersions' impl (#3785) * Add 'GetAvailablePackageVersions' impl Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add TestGetAvailablePackageVersions Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Changes after code review Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Changes after code review Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Changes after code review Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Changes after code review Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Changes after code review Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Changes after code review Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Changes after code review Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Changes after code review Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add 'GetInstalledPackageDetail' impl (#3788) * Add required files for the Carvel plugin impl Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add 'GetAvailablePackageSummaries' impl Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add 'GetAvailablePackageVersions' impl Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add 'GetAvailablePackageDetail' impl Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add 'GetInstalledPackageSummaries' impl Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add 'GetInstalledPackageDetail' impl Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Remove old tests. Fix TestGetClient test Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add TestGetAvailablePackageSummaries Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add TestGetAvailablePackageVersions Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add TestGetAvailablePackageVersions Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add TestGetInstalledPackageSummaries Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add TestGetInstalledPackageDetail Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Fix wrong secret name in test Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add 'GetAvailablePackageVersions' impl (#3785) * Add 'GetAvailablePackageVersions' impl Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add TestGetAvailablePackageVersions Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Changes after code review Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Changes after code review Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Changes after code review Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Changes after code review Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Changes after code review Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Changes after code review Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Changes after code review Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Changes after code review Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Changes after code review Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Changes after code review Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add 'CreateInstalledPackage' impl (#3789) * Add required files for the Carvel plugin impl Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add 'GetAvailablePackageSummaries' impl Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add 'GetAvailablePackageVersions' impl Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add 'GetAvailablePackageDetail' impl Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add 'GetInstalledPackageSummaries' impl Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add 'GetInstalledPackageDetail' impl Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add 'CreateInstalledPackage' impl Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Remove old tests. Fix TestGetClient test Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add TestGetAvailablePackageSummaries Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add TestGetAvailablePackageVersions Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add TestGetAvailablePackageVersions Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add TestGetInstalledPackageSummaries Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add TestGetInstalledPackageDetail Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Fix wrong secret name in test Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add targetCluster but throw an error if not matching with pkg one Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add TestCreateInstalledPackage Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Remove populated secrets in the create test. Minor renames Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Changes after code review Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add 'UpdateInstalledPackage' impl (#3790) * Add required files for the Carvel plugin impl Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add 'GetAvailablePackageSummaries' impl Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add 'GetAvailablePackageVersions' impl Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add 'GetAvailablePackageDetail' impl Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add 'GetInstalledPackageSummaries' impl Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add 'GetInstalledPackageDetail' impl Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add 'CreateInstalledPackage' impl Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add 'UpdateInstalledPackage' impl Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Remove old tests. Fix TestGetClient test Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add TestGetAvailablePackageSummaries Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add TestGetAvailablePackageVersions Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add TestGetAvailablePackageVersions Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add TestGetInstalledPackageSummaries Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add TestGetInstalledPackageDetail Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Fix wrong secret name in test Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add targetCluster but throw an error if not matching with pkg one Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add TestCreateInstalledPackage Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add basic TestUpdateInstalledPackage Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Fix wrong pkg cluster Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Remove populated secrets in the create test. Minor renames Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Changes after code review Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Changes after code review Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add 'DeleteInstalledPackage' impl (#3791) * Add required files for the Carvel plugin impl Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add 'GetAvailablePackageSummaries' impl Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add 'GetAvailablePackageVersions' impl Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add 'GetAvailablePackageDetail' impl Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add 'GetInstalledPackageSummaries' impl Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add 'GetInstalledPackageDetail' impl Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add 'CreateInstalledPackage' impl Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add 'UpdateInstalledPackage' impl Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add 'DeleteInstalledPackage' impl Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Remove old tests. Fix TestGetClient test Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add TestGetAvailablePackageSummaries Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add TestGetAvailablePackageVersions Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add TestGetAvailablePackageVersions Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add TestGetInstalledPackageSummaries Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add TestGetInstalledPackageDetail Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Fix wrong secret name in test Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add targetCluster but throw an error if not matching with pkg one Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add TestCreateInstalledPackage Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add basic TestUpdateInstalledPackage Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Fix wrong pkg cluster Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Remove populated secrets in the create test. Minor renames Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add TestDeleteInstalledPackage Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add 'GetPackageRepositories' impl (#3792) * Add 'GetPackageRepositories' impl Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Fix nil pointer Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add TestGetPackageRepositories Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Changes after code review Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Changes after code review Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Merge manually some changes Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Changes after code review Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Fix example plugin name in values.yaml Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Add "try again" button in the installed pkgs view Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com> * Initial WIP GetInstalledPackageResourceRefs Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com>
Description of the change
Initial implementation of the
GetPackageRepositories
operationBenefits
An initial and very limited Carvel support in Kubeapps
Possible drawbacks
N/A
Applicable issues
Additional information
N/A