stefanprodan / timoni

Timoni is a package manager for Kubernetes, powered by CUE and inspired by Helm.
https://timoni.sh
Apache License 2.0
1.44k stars 64 forks source link

Access current module name inside a module #374

Open salotz opened 3 months ago

salotz commented 3 months ago

Is it possible to reference the name of a module in timoni.cue or the templates?

Specifically I am only meaning the unqualified name, eg. if the fully-qualified module name is: timoni.sh/modules/ray-cluster I just want ray-cluster.

Currently, I'm just hard coding it into the instance config section.