Fix generate command for read-only root filesystem setting

The readonly_root_filesystem setting was not included in the resulting
CRD when running faas-cli generate.

Signed-off-by: Han Verstraete (OpenFaaS Ltd) <han@openfaas.com>
This commit is contained in:
Han Verstraete (OpenFaaS Ltd)
2022-09-20 16:09:07 +02:00
committed by Alex Ellis
parent b88dc1905f
commit 0451db85fa
3 changed files with 41 additions and 9 deletions

View File

@@ -34,6 +34,8 @@ type Spec struct {
//Secrets list of secrets to be made available to function
Secrets []string `yaml:"secrets,omitempty"`
ReadOnlyRootFilesystem bool `yaml:"readOnlyRootFilesystem,omitempty"`
}
//CRD root level YAML definition for the object