Skip to content
This repository was archived by the owner on Jun 27, 2025. It is now read-only.
This repository was archived by the owner on Jun 27, 2025. It is now read-only.

Math functions? #267

@JoeOrtiz

Description

@JoeOrtiz

Like consul-template is it possible to add Math Functions to levant?

ie to use within the resources portions like:

resources { cpu = [[.resources.cpu | parseInt | subtract 500 ]] memory = [[.resources.memory | parseInt | divide 2 ]] }

Functions like add / subtract / multiply / divide, to make sizing easier.

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