Code Monkey home page Code Monkey logo

Comments (9)

lucperkins avatar lucperkins commented on May 18, 2024 5

Having changes to a config file trigger changes to the appropriate ConfigMap, Deployment, etc. would be fantastic, but probably difficult to implement and more suited for a release further down the line. In the short term, however, I think it would be extremely helpful to be able to define configs even without auto-updating. Something like this:

apiVersion: skaffold/v1alpha2
kind: Config
build:
  tagPolicy:
    sha256: {}
  local: {}
  artifacts:
  - imageName: my-app
    bazel:
      target: //:my-app.tar
  configs:
  - configMapName: prometheus-config
    file: config/prometheus.yml
  - configMapName: nginx-config
    file: config/nginx.conf
  - configMapName: my-arbitrary-config
    args:
      foo: bar
      baq: baz

Even if this only created the ConfigMaps at the beginning and didn't watch them for changes, it would be a big win for a lot of use cases. As it stands, the config file thing is pretty much the only thing that keeps Skaffold from being a "one-command" solution to a thorny problem.

from skaffold.

JasonMan34 avatar JasonMan34 commented on May 18, 2024 1

This is quite a hassle when working with many services locally
I'm working on a repo with 55 deployments, having to re-launch all of them because I changed the configmap of one is.. less than optimal

from skaffold.

r2d4 avatar r2d4 commented on May 18, 2024

ref #98

from skaffold.

dlorenc avatar dlorenc commented on May 18, 2024

When updating config maps, we would have to track all entities that reference the config map and trigger a restart of all of those.

from skaffold.

demisx avatar demisx commented on May 18, 2024

Currently, if I change a value in a config map, skaffold (v0.30) does neither rebuild/apply the updated value. I have to restart it manually for new values to take effect. Is this related to this issue (or kubernetes/kubernetes#22368) or is there something wrong with my skaffold configuration? I've confirmed that I am not manually syncing my k8s/ folder.

from skaffold.

lucperkins avatar lucperkins commented on May 18, 2024

@demisx The issue is still open. Skaffold does not yet support this desired behavior. As far as I know Skaffold doesn’t handle ConfigMaps at all.

from skaffold.

demisx avatar demisx commented on May 18, 2024

@lucperkins Got it. Sorry, I wasn't sure if this was the issue I was experiencing or not. I'll be watching!

from skaffold.

vaidik avatar vaidik commented on May 18, 2024

Configmaps get updated but not the deployments referencing them.

from skaffold.

tstromberg avatar tstromberg commented on May 18, 2024

I'm closing this issue as it hasn't seen activity in awhile, and if it does still exist, it doesn't seem to be getting any traction at the moment. If this issue appears in the most recent release of Skaffold, please feel free to add a follow-up comment and we will see about getting it prioritized appropriately.

If someone sees a similar issue to this one, please create a new issue, but do include a link to this issue if possible.

Thank you for sharing this issue with us!

from skaffold.

Related Issues (20)

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.