Git Product home page Git Product logo

drone-kube's Introduction

Drone Kube

Drone plugin to update kubernetes deployments

See the DOC file for usage.

drone-kube's People

Contributors

pierluc-codes avatar vallard avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

drone-kube's Issues

Token and imagePullSecrets

So I create a serviceAccount and added an imagePullSecret to that account. I added my token and ca to the drone secrets for this image.

However when I try to run a build I get the following error:

the server has asked for the client to provide credentials (put deployments.extensions myappname)

This doesn't give me much information on which part may be wrong. Any ideas?

Thanks,

Depricated

this no longer works with the flow of drone

Error decoding yaml file to jsonUnable

Trying to update my AWS EKS v1.10 cluster using this plugin and I get a parsing error while trying to deploy my application. I've validated that my deployment.yaml works stand alone and successfully deployed it to the cluster.

I believe it has something to do with the Go client being outdated and perhaps incompatible with Kubernetes v1.10.

Below is the error I receive.

Error decoding yaml file to jsonUnable to convert <nil> to conversion.structAdaptor{typ:(*reflect.rtype)(0x16deea0), ptr:(unsafe.Pointer)(0xc8203b0110), flag:0x199}

Docs say KUBE_CA should be base64 encoded

But it only worked for me when I set the secret to be the usual .pem format starting with:

-----BEGIN CERTIFICATE-----
…

Otherwise I got an error like

2019/08/29 02:29:54 Get KUBE_SERVER/apis/extensions/v1beta1/namespaces/KUBE_NAMESPACE/deployments: x509: certificate signed by unknown authority

Ability to load tag from a file

I would be great if we can use a dynamically generated tag (for instance constructed from package.json version, date, and moon phase) in drone-kube. The tag can be constructed and saved to a file so drone-kube can use it.
This functionality is already supported by drone-docker (it looks for .tag file).

Support multiple deployments in the same yaml file

YAML supports having multiple documents in the same file by splitting different documents with ---. Kubernetes supports this approach. When I kubectl apply -f template.yaml and it contains multiple deployments for instance, it applies all the deployments. drone-kube doesn't support that and I had to split my single template into multiple files and multiple build steps. Can we have support for that? Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.