Skip to content

No "sprig" functions available for template generation #119

@JoshuaSmeda

Description

@JoshuaSmeda

Why does the Kubernetes Operator have "sprig" functionality, while the CLI doesn't?

See: Infisical/infisical#4398

and associated PR: Infisical/kubernetes-operator#12

I need a way to fetch secrets and parse them into a specific config file structure that my applications require - ideally through a single command.


If I wanted to do something like, as simple as:

❯ cat template.tpl
{{$secrets := secret "<id>" "<env>" "<path>"}}
{{- $myDict := dict "foo" "bar" "hello" "world" }}
{{- $myDict }}

❯ infisical export --template=./template.tpl
error: template: template.tpl:2: function "dict" not defined

I'm not able to. This doesn't just apply to dict but other "sprig" functions, like "split" and more.

Version:

❯ infisical --version
infisical version 0.43.49

Am I missing something here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions