-
Story
-
Resolution: Unresolved
-
Undefined
-
None
-
None
-
None
As a user, I want to be able to consume information from existing Kubernetes objects within my templates.
Example:
Similar to what the policygenerator offers, it would be great to get information from Kubernetes objects in the Hub when rendering the templates.
For example, when working with Hosted Control Planes, the HostedControlPlane object expects the release image URL within the object. Other install methods rely on ClusterImageSetRef, which is the field exposed by SiteConfig to choose the release of a Site. Instead of adding a new field to the SiteConfig, it would be great if we could consume information from existing objects in the templates.
Let's say we have a SiteConfig with this information:
clusterImageSetNameRef: active-ocp-version
In my template, I'd like to be able to do something like this:
release:
image: {{ .Site.CLusterImageSetNameRef.Object.spec.releaseImage }}