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

Implement some sort of self reference to inventory #706

Open
bsda opened this issue Mar 9, 2021 · 2 comments
Open

Implement some sort of self reference to inventory #706

bsda opened this issue Mar 9, 2021 · 2 comments
Labels
feature reclass issue regarding reclass Stale

Comments

@bsda
Copy link

bsda commented Mar 9, 2021

Describe the bug/feature
It would save us a lot of duplication if we could have some sort of ${self} reference to the inventory

To Reproduce
For example:
I need to add this configmap to multiple components:

config_maps:
  monitoring-registry:
    mount: /opt/spinnaker-monitoring/registry
    data:
      igor.yml:
        value: "metrics_url: http://localhost:8088/spectator/metrics"

The port is the only thing that changes per component

Having the capacity of using something like this would be helpful:

value:  "metrics_url: http://localhost:${self:ports:http:service_port}/spectator/metrics"

The value in this case would reference to

parameters:
  components:
    spin-igor:
       ...
      ports:
        http:
          service_port: 8088

Additional context
I'm guessing this is one for the reclass package but I couldn't create issues there

@MatteoVoges
Copy link
Contributor

Im currently working on a feature in reclass, that supports relative paths. I think this is exactly what you want to do. It should be merged with the next minor release ...

Copy link

This issue is stale because it has been open for 1 year with no activity.
Remove the stale label or comment if this issue is still relevant for you.
If not, please close it yourself.

@github-actions github-actions bot added the Stale label Aug 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature reclass issue regarding reclass Stale
Projects
None yet
Development

No branches or pull requests

2 participants