Support cdrom media change.

This commit is contained in:
Michael Lipp 2023-08-05 11:40:36 +02:00
parent ae2e6cde7f
commit e8b10b32b0
12 changed files with 278 additions and 37 deletions

View file

@ -0,0 +1,32 @@
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: vmopconfigs.vmoperator.jdrupes.org
spec:
group: vmoperator.jdrupes.org
# list of versions supported by this CustomResourceDefinition
versions:
- name: v1alpha1
served: true
storage: true
schema:
openAPIV3Schema:
type: object
properties:
spec:
type: object
properties:
imageRepository:
type: object
description: Defines the image repository volume.
properties: {}
# either Namespaced or Cluster
scope: Namespaced
names:
# plural name to be used in the URL: /apis/<group>/<version>/<plural>
plural: vmopconfigs
# singular name to be used as an alias on the CLI and for display
singular: vmopconfig
# kind is normally the CamelCased singular type. Your resource manifests use this.
kind: VmOpConfig
listKind: VmOpConfigList

View file

@ -431,10 +431,24 @@ spec:
type: string
type: object
type: object
cdromImage:
type: object
properties:
path:
type: string
required:
- path
bootindex:
type: integer
required:
- volumeClaimTemplate
oneOf:
- properties:
volumeClaimTemplate:
required:
- volumeClaimTemplate
- properties:
cdromImage:
required:
- cdromImage
default: []
display:
type: object