Skip to content

Commit 36ec7c3

Browse files
committed
Runtime error occurs when create MachineConfig with default yaml from console
1 parent 32bcc97 commit 36ec7c3

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

frontend/public/models/yaml-templates.ts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -801,6 +801,28 @@ metadata:
801801
name: example
802802
spec:
803803
providerSpec: {}
804+
`,
805+
)
806+
.setIn(
807+
[referenceForModel(k8sModels.MachineConfigModel), 'default'],
808+
`
809+
apiVersion: machineconfiguration.openshift.io/v1
810+
kind: MachineConfig
811+
metadata:
812+
labels:
813+
machineconfiguration.openshift.io/role: worker
814+
name: example
815+
spec:
816+
config:
817+
ignition:
818+
version: 3.2.0
819+
storage:
820+
files:
821+
- path: /etc/example-config
822+
mode: 0644
823+
overwrite: true
824+
contents:
825+
source: data:,example%20content
804826
`,
805827
)
806828
.setIn(

0 commit comments

Comments
 (0)