Skip to content

Question: Calling Hull replacement from regular helm yaml #367

@stephenpope

Description

@stephenpope

Hi .. first of all Hull has been fantastic and a massive time-saver for the whole of my development process on my current (very large) project and it has done everything I've asked of it so I suppose I am getting to a more edge-case scenario so any advice would be welcome :)

In basic terms I want to ask: how to call a hull template/function to trigger _HT*global.versions.thing from a normal helm template not created by Hull.

For context, i have a helm chart based on Hull .. all resources are created as Hull objects except for an ArgoRollouts CRD but it is in the same chart.

I am moving to a more centralised version management approach, as they share the same version I share the version between the services like:

values.yaml

  hull:
    config:
      specific:
        services:
          thingApi:
            image:
              tag: &appVersion "_HT*global.versions.thing"
          thingManagementApi:
            image:
              tag: *appVersion
          thingService:
            image:
              tag: *appVersion

.. in the ArgoRollout CRD I use ..

{{ .Values.hull.config.specific.services.thingService.image.tag }}

This worked fine when i specified the version but now (obviously) I get an error as the _HT*global.versions.thing is not parsed/understood by the normal helm yaml file.

Is it possible to call a Hull template/function to trigger the replacement from this CRD yaml ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions