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

Mechanism to generate files from values #24

Open
brettaufheber opened this issue May 7, 2023 · 0 comments
Open

Mechanism to generate files from values #24

brettaufheber opened this issue May 7, 2023 · 0 comments
Assignees

Comments

@brettaufheber
Copy link
Member

brettaufheber commented May 7, 2023

It would be helpful to have a solution where files can be generated automatically. The data should be obtained from the values.

This mechanism creates correct entries near to the following properties in the statefulset.yaml file.

  • extraVolumes
  • extraVolumeMounts
  • extraEnvFrom

The configuration part in the value properties should look like this:

filesGenerated:    # all files are "readOnly: true"
  data:
    MyFilename.raw:    # raw data
      defaultMode: 0555    # optional
      mountPath: /opt/test-data.txt
      content: "..."
  jsonData:    # converting YAML to JSON
    MyFilename.json:
      defaultMode: 0555    # optional
      mountDirPath: /opt    # constructs: /opt/MyFilename.json for mountPath
      content: "..."
  yamlData:    # must be valid YAML
    MyFilename.yaml:
      defaultMode: 0555    # optional
      mountDirPath: /opt    # constructs: /opt/MyFilename.yaml for mountPath
      content: "..."
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

No branches or pull requests

2 participants