Skip to content

The hull.util.transformation.makefullname transformation and and the staticName parameter #273

@khmarochos

Description

@khmarochos

Hello!

May I bother you with another question?

Do I understand it right that hull.util.transformation.makefullname should return the static name of an object in the case when the object's staticName is true? If yes, then are there any exceptions?

Here's set of values I'm giving to Helm:

hull:
  objects:
    serviceaccount:
      my-serviceaccount:
        staticName: true
    service:
      my-service:
        staticName: true
    configmap:
      my-configmap:
        staticName: true
    deployment:
      my-deployment:
        annotations:
          hull-test.local/my-service: _HT^my-service
          hull-test.local/my-serviceaccount: _HT^my-serviceaccount
          hull-test.local/my-configmap: _HT^my-configmap

Here are the annotations I get as the result:

hull-test.local/my-configmap: hull-test-4-hull-test-4-my-configmap
hull-test.local/my-service: hull-test-4-hull-test-4-my-service
hull-test.local/my-serviceaccount: hull-test-4-hull-test-4-my-serviceaccount

I didn't find the answer in the documentation, but I see that hull.util.transformation.makefullname calls hull.metadata.fullname and hull.metadata.fullname, obviously, respects the staticName parameter. But it seems that hull.metadata.fullname doesn't have the whole outlook when it's being called by hull.util.transformation.makefullname. Am I right?

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions