Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: format YAMLs #33

Merged
merged 1 commit into from
Mar 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 26 additions & 26 deletions crds/virtualmachine.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ spec:
type: string
description: |
Secret name.
required: [ "name" ]
required: ["name"]
userData:
description: |
Inline cloud-init userdata script.
Expand All @@ -85,31 +85,31 @@ spec:
Secret name.
required: ["name"]
oneOf:
- properties:
type:
enum: [ "SysprepSecret" ]
required: [ "sysprepSecretRef" ]
not:
anyOf:
- required: [ "userData" ]
- required: [ "userDataSecretRef" ]
- properties:
type:
enum: ["UserData"]
required: ["userData"]
not:
anyOf:
- required: [ "sysprepSecretRef" ]
- required: [ "userDataSecretRef" ]
- properties:
type:
enum: ["UserDataSecret"]
userDataSecretRef: {}
required: ["userDataSecretRef"]
not:
anyOf:
- required: [ "sysprepSecretRef" ]
- required: [ "userData" ]
- properties:
type:
enum: ["SysprepSecret"]
required: ["sysprepSecretRef"]
not:
anyOf:
- required: ["userData"]
- required: ["userDataSecretRef"]
- properties:
type:
enum: ["UserData"]
required: ["userData"]
not:
anyOf:
- required: ["sysprepSecretRef"]
- required: ["userDataSecretRef"]
- properties:
type:
enum: ["UserDataSecret"]
userDataSecretRef: {}
required: ["userDataSecretRef"]
not:
anyOf:
- required: ["sysprepSecretRef"]
- required: ["userData"]
runPolicy:
type: string
enum:
Expand Down
36 changes: 8 additions & 28 deletions crds/virtualmachinecpumodel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ spec:
* Model - CPU model. A CPU model is a named and previously defined set of supported processor instructions.
* Features - the required set of supported instructions for the processor.
enum:
- 'Host'
- 'Model'
- 'Features'
- "Host"
- "Model"
- "Features"
model:
type: string
description: |
Expand All @@ -55,11 +55,7 @@ spec:
type: array
description: |
Required instructions for the CPU as a list More information about features [here](https://libvirt.org/formatdomain.html#cpu-model-and-topology)
example: [
"mmx",
"vmx",
"sse2"
]
example: ["mmx", "vmx", "sse2"]
items:
type: string
status:
Expand All @@ -73,13 +69,7 @@ spec:
* InProgress - the resource is in the process of being created.
* Ready - the resource has been created successfully.
* Failed - an error occurred during the resource creation process.
enum:
[
"Pending",
"InProgress",
"Ready",
"Failed",
]
enum: ["Pending", "InProgress", "Ready", "Failed"]
features:
type: object
description: |
Expand All @@ -90,32 +80,22 @@ spec:
type: array
description: |
A list of CPU features for this model.
example: [
"mmx",
"vmx",
"sse2"
]
example: ["mmx", "vmx", "sse2"]
items:
type: string
notEnabledCommon:
type: array
description: |
A list of unused processor features additionally available for a given group of nodes.
example: [
"ssse3",
"vme",
]
example: ["ssse3", "vme"]
items:
type: string
nodes:
type: array
description: |
List of nodes supporting this CPU model.
Not shown for `type=Host`.
example: [
"node-1",
"node-2",
]
example: ["node-1", "node-2"]
items:
type: string
additionalPrinterColumns:
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/testdata/vm/vm_label_annotation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ spec:
blockDevices:
- type: VirtualMachineImage
virtualMachineImage:
name: test-vm-image
name: test-vm-image
Loading