| 178 | } |
| 179 | |
| 180 | func configureRuntimeConfig(runtime *app.Runtime) error { |
| 181 | if runtime.Config != nil { |
| 182 | return hydrateRuntimeLayoutFromConfig(runtime) |
| 183 | } |
| 184 | |
| 185 | if err := configureRuntimeLayout(runtime, config.PathKindConfig); err != nil { |
| 186 | return err |
| 187 | } |
| 188 | |
| 189 | runtime.Config = config.NewConfigStore(runtime.Layout) |
| 190 | runtime.ConfigManaged = true |
| 191 | return nil |
| 192 | } |
| 193 | |
| 194 | func configureRuntimeSecrets(runtime *app.Runtime) error { |
| 195 | if err := configureRuntimeLayout(runtime, config.PathKindConfig, config.PathKindData); err != nil { |