SerializeConfiguration serializes the configuration bundle for machineType.
(configBundle *bundle.Bundle, machineType machine.Type)
| 239 | |
| 240 | // SerializeConfiguration serializes the configuration bundle for machineType. |
| 241 | func SerializeConfiguration(configBundle *bundle.Bundle, machineType machine.Type) ([]byte, error) { |
| 242 | out, err := configBundle.Serialize(encoder.CommentsDisabled, machineType) |
| 243 | if err != nil { |
| 244 | return nil, errors.Wrap(err, "serializing config bundle") |
| 245 | } |
| 246 | |
| 247 | return out, nil |
| 248 | } |
| 249 | |
| 250 | // MergeFileAsPatch overlays the YAML body of patchFile onto rendered using |
| 251 | // Talos's strategic-merge config patcher. |
no outgoing calls