Skip to content

Commit cf46c83

Browse files
committed
Add JSON path examples
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
1 parent 3ed335e commit cf46c83

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

docs/openfaas-pro/function-crd.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,15 @@ To check that all secrets existed, and that the function could be applied correc
120120

121121
What happens when auto-scaling? When a Function is scaling from at least one replica to some higher number, the Healthy condition will continue to be set to `True`. The same applies when scaling down, so long as the target number of replicas is greater than zero.
122122

123+
Helm does not currently support readiness or waiting for Custom Resources, however, you can do this via kubectl if you wish:
124+
125+
```bash
126+
# Wait until "env" is reconciled:
127+
$ kubectl get function/env -n openfaas-fn -o jsonpath="{.status.conditions[?(@.type == 'Ready')].status}"
128+
129+
# Wait until "env" has at least one ready Pod:
130+
$ kubectl get function/env -n openfaas-fn -o jsonpath="{.status.conditions[?(@.type == 'Healthy')].status}"
131+
```
123132

124133
### How to generate a spec from a stack.yml
125134

0 commit comments

Comments
 (0)