Skip to content

Go Templating #403

@wasabii

Description

@wasabii

So, this is more of a discussion topic. I am aware there is no easy answer for this.

There is a general pattern of developing Kubernetes operators that generate other objects using Golang templates embedded as strings within a CRD. An example is the 'ExternalSecret' type, which supports pulling values from Azure Keyvault, etc, into K8S Secrets.

The 'ExternalSecret' CRD, for example, allows you to simply put a Golang template into the body of a Spec property, and the operator executes that template against the external secret data, allowing you to format the contents of the external secret.

https://external-secrets.io/v0.4.4/guides-templating/

Since K8s is so go-y, this makes good sense. It fits nicely into the eco system.

However, this presents an issue when using The DotNet operator! We don't have access to Go-lang templates! What to do!

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