Uploaded image for project: 'Red Hat Advanced Cluster Management'
  1. Red Hat Advanced Cluster Management
  2. ACM-15727

RFE - Access kube objects during template rendering

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • None
    • SiteConfig Operator
    • 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 }}

              Unassigned Unassigned
              mavazque@redhat.com Mario Vazquez Cebrian
              Sharat Akhoury Sharat Akhoury
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: