n25/pages/config-slide.md
2025-08-13 15:48:45 +01:00

1,010 B

level
2

Configuration

Configuration is based on a list of simple JSON objects.

```js {1,12|2-10}
[
    {
        "name": "...",
        "function": "...",
        "params": [
            "..."
        ],
        "retryCount": int,
        "shouldAbort": true|false
    },
    {}
]
```

```js {2-10}
[
    {
        "name": "ensure infctl namespace exists",
        "function": "k8sNamespaceExists",
        "params": [
            "infctl"
        ],
        "retryCount": 0,
        "shouldAbort": true
    },
    {}
]

```

```js
[
    {
        "name": "ensure infctl namespace exists",
        "function": "k8sNamespaceExists",
        "params": [
            "infctl"
        ],
        "retryCount": 0,
        "shouldAbort": true
    },
    {
        "name": "check operator"",
        "function": "RunCommand",
        "params": [
            "./scripts/check__operator.sh"
        ],
        "retryCount": 5,
        "shouldAbort": true
    }
]
```