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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

config-map - multiple key-value pairs? #1468

Closed
opinionmachine opened this issue Jul 25, 2023 · 1 comment
Closed

config-map - multiple key-value pairs? #1468

opinionmachine opened this issue Jul 25, 2023 · 1 comment
Labels
kind/enhancement Improvements or new features needs-triage Needs attention from the triage team

Comments

@opinionmachine
Copy link

Hello!

  • Vote on this issue by adding a 馃憤 reaction
  • If you want to implement this feature, comment to let us know (we'll work with you on design, scheduling, etc.)

Issue details

So, on the github action there is a "config-map" property, and a reasonable interpretation would be that it supports some what of setting keys and values so that you can pass in values and refer to those configuration inside the stack, right? The documentation says '{name | value: some-value, secret = true/false}' or similar, and the examples I find are doing 'name: some-value, secret =false'.

Now as a consumer that needs to pass four properties in, what do I guess I should do? "name" is called "name" in both occurrences, btw, so it feels like a syntactic element rather than a made up 'name', to be replaced by one of my own, and then there is the issue of the plural.

So my request is - could there be an example on how to pass in two configuration values into the pulumi github action, and - if there is time, an example of referencing those inside the stack?

    - uses: pulumi/actions@v4
      with:
        command: preview
        stack-name: prod
        work-dir: Deploy  
        config-map: // HERE I NEED TO PUT SOMETHING, A STRING- BUT HOW? WITH MULTIPLE SETTINGS?

Affected area/feature

SO, this request is regarding documentation, around the github action..

@opinionmachine opinionmachine added kind/enhancement Improvements or new features needs-triage Needs attention from the triage team labels Jul 25, 2023
@opinionmachine
Copy link
Author

Actually, I listened to Obi-Wan and used the source:

 - uses: pulumi/actions@v4
      with:
        command: preview
        stack-name: prod
        work-dir: Deploy  
        config-map: "{tag1: {value: thing1:20230725.1, secret = false}, tag2: {value: thing2:20230725.1, secret = false}}"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement Improvements or new features needs-triage Needs attention from the triage team
Projects
None yet
Development

No branches or pull requests

1 participant