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

Kubernetes integration with CDS error #5329

Closed
shansclensky opened this issue Jul 20, 2020 · 4 comments · Fixed by #5378
Closed

Kubernetes integration with CDS error #5329

shansclensky opened this issue Jul 20, 2020 · 4 comments · Fixed by #5378
Assignees

Comments

@shansclensky
Copy link

shansclensky commented Jul 20, 2020

Hi all,

I am trying to integrate the Kubernetes with CDS, i am following the official documentation. I am getting an error while installing plugins relate to kubernetes, the log says that the unable to insert the plugin key violates unique story constraint . I have attached the error message.
image So i thought i will delete the plugin through cdsctl but only i can see ID and not the duplicate plugins listed . Please find below image.
image
Kindly let me know how can i see all those plugins and add or delete them so that i can resolve the issue.

@yesnault yesnault self-assigned this Aug 13, 2020
@yesnault
Copy link
Member

Hi @shansclensky you have an empty plugin with ID 2.

It'a a bug, cds should refuse an invalid format.
You have to remove invalid plugin, with this sql request:

delete from grpc_plugin where name = '';

then, confirm that cdsctl admin plugins list does not contain the invalid ID.

Create the file plugin-kubernetes-deployment.yml :

name: plugin-kubernetes-deployment
type: integration-deploy_application
integration: Kubernetes
author: "OVH SAS"
description: "Kubernetes Deployment Plugin"

Create the plugin:

cdsctl admin plugins import plugin-kubernetes-deployment.yml

download cds-plugin-kubernetes-deployment-all.tar.gz from the latest release (0.47.0), unzip it, then import the binary

cdsctl admin plugins binary-add plugin-kubernetes-deployment plugin-kubernetes-deployment-linux-amd64.yml plugin-kubernetes-deployment-linux-amd64

Is it ok with that for you?

@shansclensky
Copy link
Author

Hi @yesnault thanks for the detailed explanation, I was able to fix it!

@yesnault
Copy link
Member

ok, I'll do a fix to avoid import an invalid plugin yml

@shansclensky
Copy link
Author

Thanks @yesnault that will prevent people from facing the similar issue!

yesnault added a commit that referenced this issue Aug 18, 2020
* feat(api): validate yml plugin before import it

close #5329

Signed-off-by: Yvonnick Esnault <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants