Git Product home page Git Product logo

drone-helm3's People

Contributors

foosinn avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

drone-helm3's Issues

Error unable to check Chart.yaml file in chart: stat

Drone can't find path for Chart, I think drone went directly to find the path inside the container,bacause i setting wrong KUBE_API,but the drone shows that the path can't be found, instead it can't connect to the KUBE_API_SERVER.

- name: helm-deploy
    image: bitsbeats/drone-helm3
    environment:
      KUBE_API_SERVER: https://masterIP:6443
      KUBE_TOKEN:
        from_secret: dev_kubernetes_token
    settings:
      mode: installupgrade
      chart: /home/team2/helm/mml
      release: app
      kube_service_account: admin-user
      wait: true
      values: image.tag=${DRONE_TAG}#
      values_files: ["./helm/app.yaml"]
      namespace: app
      skip_tls_verify: true

Debug mode bug

When Debug is set to true then values passed to helm charts is ***

Error: could not find bitnami/wordpress: stat bitnami/wordpress: no such file or directory

Hello, I am trying to use the bitnami wordpress chart but I'm getting a weird error:

2022/05/30 13:30:26 added repo: name:"bitnami" url:"https://charts.bitnami.com/bitnami"
2022/05/30 13:30:26 running with a timeout of 15m0s
2022/05/30 13:30:26 running: helm [repo add bitnami https://charts.bitnami.com/bitnami]
2022/05/30 13:30:49 running: helm [repo update]
2022/05/30 13:31:11 running: helm [dependency build bitnami/wordpress]
Error: could not find bitnami/wordpress: stat bitnami/wordpress: no such file or directory

My config:

name: deploy
image: bitsbeats/drone-helm3
settings:
  debug: true
  envsubst: true
  dependencies_action: ""
  helm_repos:
    - bitnami=https://charts.bitnami.com/bitnami
  kube_api_server:
    from_secret: KUBE_API_SERVER
  chart: bitnami/wordpress
  chart_version: 13.1
  namespace: wordpress-production
  kube_token:
    from_secret: KUBE_TOKEN
  kube_certificate:
    from_secret: KUBE_CERTIFICATE
  values_yaml: ./deployment/values.yaml
  values:
    - externalDatabase:
        password:
          from_secret: DB_PASSWORD
    - wordpressPassword:
        from_secret: WORDPRESS_PASSWORD
  image.registry: ******
  image.repository: ****
  image.tag: ${DRONE_COMMIT_SHA}
  release: my-release-name
when:
  branch:
  - master
  event:
  - push

Kubernetes configuration file is group-readable. This is insecure.

Hi !

kubeconfig file created there by os.Create()

but regarding the doc:

Create creates or truncates the named file. If the file already exists, it is truncated. If the file does not exist, it is created with mode 0666 (before umask).

And we have such warnings:

WARNING: Kubernetes configuration file is group-readable. This is insecure. Location: /root/.kube/config

Can you add os.Chmod as well ?

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.