Coder Social home page Coder Social logo

No way to mount Single FIle. about onechart HOT 5 CLOSED

gimlet-io avatar gimlet-io commented on August 18, 2024
No way to mount Single FIle.

from onechart.

Comments (5)

laszlocph avatar laszlocph commented on August 18, 2024

The listed cases are not supported, but there is another solution that you can try.

https://gimlet.io/docs/onechart-reference#mounting-secrets-as-files

fileSecrets:
  - name: rabbitmq-conf
    path: /etc/rabbitmq
    secrets:
      rabbitmq.conf: |
        this is the conf file content
      definitions.json: |
        this
        is
        a
        multiline
        secret

It is technically a secret resource in k8s not a configmap.. you can add the file content in the values file.

Volumes configmap support is required feature and will land in OneChart. Thank you for the issue.

from onechart.

amanhigh avatar amanhigh commented on August 18, 2024

from onechart.

laszlocph avatar laszlocph commented on August 18, 2024

Oh, yes. I hate that problem.

Let me look at it.

from onechart.

YoucefGuichi avatar YoucefGuichi commented on August 18, 2024

Follow-up 🪄

hello @amanhigh,
The following use cases are possible now within onechart's volumes:

Case 1 (Mount an existing configMap as a file):

volumes:
- existingConfigMap: map
  path: /data/map.conf
  subPath: map.conf

Case 2 (Mount an emptyDir):

volumes:
- emptyDir: true
  path: /data
  name: empty

Case 3 (Mount a custom string as a file):

volumes:
- fileName: blabla.conf
  fileContent: |
     multi-line-text
     multi-line-text
  path: /data   

from onechart.

laszlocph avatar laszlocph commented on August 18, 2024

https://github.com/gimlet-io/onechart/releases/tag/v0.43.0

from onechart.

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.