shalb / cluster.dev

Cloud-native infrastructure templating. Creating cloud installers for SaaS. Replication of complex cloud-native infrastructures.
https://docs.cluster.dev/
GNU Affero General Public License v3.0
401 stars 36 forks source link

Line commenting #283

Closed kinseii closed 3 months ago

kinseii commented 3 months ago

What would you like to add

I'm trying to comment out the variable declaration, because of a problem with passing nested objects. But despite the comment signs #, //, ;;; this variable still wants to be processed and causes an error:

---
kind: Stack
name: qwerty-aks-us-1
template: ./qwerty/aks-us-1
backend: qwerty
variables:
  #key_vault: {{ insertYAML .project.variables.key_vault_qwerty }}
  key_vault: 123
[FATAL] Fatal error: load project configuration: load base configuration: loading project: searching for secrets in /****/infrastructure-cdev/stack.yaml: template: main:7: bad character U+002D '-'
kinseii commented 3 months ago

Wrong investigation. During detailed analysis of the problem, it turned out that it's not a commenting problem, it's a problem in the presence of a hyphen in the variable.