Skip to content

Values ​

Values are what the owner chooses: at what time, which folder. They are asked once, at install, and kept with the release. Which mind or which channel is not a value: it is a need, bound once for every chart.

chart.json: values
json
{
  "hour": {
    "kind": "text",
    "label": { "en": "At what time?", "fr": "À quelle heure ?" },
    "default": "07:30",
    "pattern": "^([01][0-9]|2[0-3]):[0-5][0-9]$"
  }
}

examples/chart-agent/morning-brief/chart.json#/values

Using a value ​

A chart refers to a value by name: the whole string is "$hour". It is never pasted inside another text, and there are no loops or conditions. A part's arguments are resolved to literals before its plan is shown, so the owner always reads what will run.

when shows or uses something only for some answers: "when": { "value": "voice", "is": [true] }, or for a need, "when": { "need": "mind", "is": ["local"] }.

Giving values ​

  • In the game, each value is a question of the install.
  • From a terminal, alta install <chart> --values values.json. alta upgrade keeps the values of the release unless --values changes them.
  • alta template <chart> --values values.json shows the result without installing.

Why no templates ​

A template is a program hidden in a text. When you think you need one, the answer is an action that does it, from the closed list, so the owner sees it on a plan. Ask for it.

Never a secret ​

A value is kept in the release record and shown on plans. A password, a token or a key is never a value: it is asked at the sign-in step and goes straight to the program that needs it.

What's next

Alta OS is open source (MIT).