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

Unclear Usage of V1ConfigMap #2263

Open
Annieharamad opened this issue Aug 13, 2024 · 2 comments
Open

Unclear Usage of V1ConfigMap #2263

Annieharamad opened this issue Aug 13, 2024 · 2 comments
Labels
help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/support Categorizes issue or PR as a support question.

Comments

@Annieharamad
Copy link

Link to the issue (please include a link to the specific documentation or example):

image

I'm looking for a way to practically "convert" into kubernetes-client code a ConfigMap yaml file and provide it to a V1PodSpec which feeds into V1Pod; However, I've haven't found a clear cut way to execute that, for the reason of unclear documentation and many objects of V1ConfigMapsEtc that are provided in the picture.

If someone can shed some light about how I can perform the following, or point me to some existing example.

An example config map yaml here

apiVersion: v1
kind: ConfigMap
metadata:
  name: game-demo
data:
  # property-like keys; each key maps to a simple value
  player_initial_lives: "3"
  ui_properties_file_name: "user-interface.properties"

  # file-like keys
  game.properties: |
    enemy.types=aliens,monsters
    player.maximum-lives=5    
  user-interface.properties: |
    color.good=purple
    color.bad=yellow
    allow.textmode=true    
@Annieharamad Annieharamad added the kind/documentation Categorizes issue or PR as related to documentation. label Aug 13, 2024
@roycaihw
Copy link
Member

/help

@k8s-ci-robot
Copy link
Contributor

@roycaihw:
This request has been marked as needing help from a contributor.

Guidelines

Please ensure that the issue body includes answers to the following questions:

  • Why are we solving this issue?
  • To address this issue, are there any code changes? If there are code changes, what needs to be done in the code and what places can the assignee treat as reference points?
  • Does this issue have zero to low barrier of entry?
  • How can the assignee reach out to you for help?

For more details on the requirements of such an issue, please see here and ensure that they are met.

If this request no longer meets these requirements, the label can be removed
by commenting with the /remove-help command.

In response to this:

/help

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@k8s-ci-robot k8s-ci-robot added the help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. label Aug 14, 2024
@roycaihw roycaihw added kind/support Categorizes issue or PR as a support question. and removed kind/documentation Categorizes issue or PR as related to documentation. labels Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/support Categorizes issue or PR as a support question.
Projects
None yet
Development

No branches or pull requests

3 participants