# Values

> What the owner chooses when installing a chart: kinds, defaults, references by name, and why a chart has no templates and never holds a secret.

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](https://docs.altasystem.ai/charts/concepts/needs), bound once for every chart.

```json [chart.json: values]
{
  "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]$"
  }
}
```

## 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](https://docs.altasystem.ai/charts/concepts/sign-ins) step and goes straight to the program that needs it.

**Next:**

- [Sign-ins](https://docs.altasystem.ai/charts/concepts/sign-ins)
- [Parts](https://docs.altasystem.ai/charts/concepts/parts)
