Skip to content

Support a toJSON for each type that converts Kubernetes objects into weakly typed JSON #156

Open
@s-zeng

Description

@s-zeng

This was something that was brought up a while back:
https://discourse.dhall-lang.org/t/expense-proposal-pure-dhall-function-to-render-yaml/92/10?u=s-zeng

But I did not find a matching ticket for it, so I'm creating one now with this ticket.

We should auto generate a toJSON function for each kubernetes type that transforms them into a weakly typed Prelude.JSON.object.

Use case:
We can directly render yaml as text from dhall without needing dhall-to-yaml. In particular, I would find this very useful in making helm charts (our org requires making helm charts for making packages for external consumption) where it would become much more ergonomic to insert {{go template}} clauses for non-string purposes

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