|
| 1 | +apiVersion: apiextensions.k8s.io/v1 |
| 2 | +kind: CustomResourceDefinition |
| 3 | +metadata: |
| 4 | + name: ironicrunbooks.baremetal.ironicproject.org |
| 5 | + annotations: |
| 6 | + controller-gen.kubebuilder.io/version: v0.13.0 |
| 7 | +spec: |
| 8 | + group: baremetal.ironicproject.org |
| 9 | + names: |
| 10 | + kind: IronicRunbook |
| 11 | + listKind: IronicRunbookList |
| 12 | + plural: ironicrunbooks |
| 13 | + singular: ironicrunbook |
| 14 | + shortNames: |
| 15 | + - rb |
| 16 | + scope: Namespaced |
| 17 | + versions: |
| 18 | + - name: v1alpha1 |
| 19 | + served: true |
| 20 | + storage: true |
| 21 | + schema: |
| 22 | + openAPIV3Schema: |
| 23 | + description: IronicRunbook represents a collection of ordered steps that define automated operations on baremetal nodes |
| 24 | + type: object |
| 25 | + required: |
| 26 | + - spec |
| 27 | + properties: |
| 28 | + apiVersion: |
| 29 | + description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' |
| 30 | + type: string |
| 31 | + kind: |
| 32 | + description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' |
| 33 | + type: string |
| 34 | + metadata: |
| 35 | + type: object |
| 36 | + spec: |
| 37 | + description: IronicRunbookSpec defines the desired state of IronicRunbook |
| 38 | + type: object |
| 39 | + required: |
| 40 | + - runbookName |
| 41 | + - steps |
| 42 | + properties: |
| 43 | + runbookName: |
| 44 | + description: 'RunbookName is the unique name of the runbook (REQUIRED). Must match trait naming convention, typically CUSTOM_*. This name is used to match runbooks to nodes via traits.' |
| 45 | + type: string |
| 46 | + pattern: '^CUSTOM_[A-Z0-9_]+$' |
| 47 | + minLength: 1 |
| 48 | + maxLength: 255 |
| 49 | + steps: |
| 50 | + description: 'Steps is an ordered list of operations to execute (REQUIRED). Minimum 1 step required.' |
| 51 | + type: array |
| 52 | + minItems: 1 |
| 53 | + items: |
| 54 | + description: RunbookStep defines a single step in the runbook |
| 55 | + type: object |
| 56 | + required: |
| 57 | + - interface |
| 58 | + - step |
| 59 | + - order |
| 60 | + properties: |
| 61 | + interface: |
| 62 | + description: 'Interface specifies which hardware interface handles this step (REQUIRED). Must be one of the valid Ironic cleaning interfaces.' |
| 63 | + type: string |
| 64 | + enum: |
| 65 | + - bios |
| 66 | + - raid |
| 67 | + - deploy |
| 68 | + - management |
| 69 | + - power |
| 70 | + - storage |
| 71 | + - vendor |
| 72 | + - rescue |
| 73 | + - console |
| 74 | + - boot |
| 75 | + - inspect |
| 76 | + - network |
| 77 | + - firmware |
| 78 | + step: |
| 79 | + description: 'Step is the name of the step to execute (REQUIRED). Must be a valid step name for the specified interface.' |
| 80 | + type: string |
| 81 | + minLength: 1 |
| 82 | + maxLength: 255 |
| 83 | + order: |
| 84 | + description: 'Order defines the execution sequence (REQUIRED). Must be >= 0 and unique within the runbook. Lower numbers execute first.' |
| 85 | + type: integer |
| 86 | + minimum: 0 |
| 87 | + args: |
| 88 | + description: 'Args contains step-specific arguments (OPTIONAL). Structure depends on the interface and step. Default: {}' |
| 89 | + type: object |
| 90 | + x-kubernetes-preserve-unknown-fields: true |
| 91 | + disableRamdisk: |
| 92 | + description: 'DisableRamdisk skips booting the ramdisk for cleaning operations (OPTIONAL). Use when steps can run without IPA (Ironic Python Agent). Default: false' |
| 93 | + type: boolean |
| 94 | + default: false |
| 95 | + public: |
| 96 | + description: 'Public makes the runbook accessible to all projects/tenants (OPTIONAL). Cannot be true if owner is set. Default: false' |
| 97 | + type: boolean |
| 98 | + default: false |
| 99 | + owner: |
| 100 | + description: 'Owner identifies the project/tenant that owns this runbook (OPTIONAL). Cannot be set if public is true. Default: null' |
| 101 | + type: string |
| 102 | + nullable: true |
| 103 | + maxLength: 255 |
| 104 | + extra: |
| 105 | + description: 'Extra contains additional metadata (OPTIONAL). Use for descriptions, versions, maintainer info, etc. Default: {}' |
| 106 | + type: object |
| 107 | + x-kubernetes-preserve-unknown-fields: true |
| 108 | + status: |
| 109 | + description: RunbookStatus defines the observed state of Runbook |
| 110 | + type: object |
| 111 | + properties: |
| 112 | + ironicUUID: |
| 113 | + description: IronicUUID is the UUID of this runbook in the Ironic API |
| 114 | + type: string |
| 115 | + syncStatus: |
| 116 | + description: SyncStatus indicates the synchronization state with Ironic |
| 117 | + type: string |
| 118 | + enum: |
| 119 | + - Synced |
| 120 | + - Pending |
| 121 | + - Failed |
| 122 | + - Unknown |
| 123 | + lastSyncTime: |
| 124 | + description: LastSyncTime is the timestamp of the last successful sync with Ironic |
| 125 | + type: string |
| 126 | + format: date-time |
| 127 | + observedGeneration: |
| 128 | + description: ObservedGeneration reflects the generation of the most recently observed Runbook |
| 129 | + type: integer |
| 130 | + format: int64 |
| 131 | + conditions: |
| 132 | + description: Conditions represent the latest available observations of the runbook's state |
| 133 | + type: array |
| 134 | + items: |
| 135 | + description: Condition contains details for one aspect of the current state of this API Resource |
| 136 | + type: object |
| 137 | + required: |
| 138 | + - type |
| 139 | + - status |
| 140 | + - lastTransitionTime |
| 141 | + properties: |
| 142 | + type: |
| 143 | + description: Type of condition (e.g., Ready, Validated, Synced) |
| 144 | + type: string |
| 145 | + status: |
| 146 | + description: Status of the condition (True, False, Unknown) |
| 147 | + type: string |
| 148 | + enum: |
| 149 | + - "True" |
| 150 | + - "False" |
| 151 | + - Unknown |
| 152 | + lastTransitionTime: |
| 153 | + description: LastTransitionTime is the last time the condition transitioned from one status to another |
| 154 | + type: string |
| 155 | + format: date-time |
| 156 | + reason: |
| 157 | + description: Reason contains a programmatic identifier indicating the reason for the condition's last transition |
| 158 | + type: string |
| 159 | + message: |
| 160 | + description: Message is a human readable message indicating details about the transition |
| 161 | + type: string |
| 162 | + subresources: |
| 163 | + status: {} |
| 164 | + additionalPrinterColumns: |
| 165 | + - name: Runbook Name |
| 166 | + type: string |
| 167 | + description: The runbook name used for trait matching |
| 168 | + jsonPath: .spec.runbookName |
| 169 | + - name: Steps |
| 170 | + type: integer |
| 171 | + description: Number of steps in the runbook |
| 172 | + jsonPath: .spec.steps[*] |
| 173 | + - name: Public |
| 174 | + type: boolean |
| 175 | + description: Whether the runbook is public |
| 176 | + jsonPath: .spec.public |
| 177 | + - name: Sync Status |
| 178 | + type: string |
| 179 | + description: Synchronization status with Ironic |
| 180 | + jsonPath: .status.syncStatus |
| 181 | + - name: Age |
| 182 | + type: date |
| 183 | + jsonPath: .metadata.creationTimestamp |
0 commit comments