# ============================================================================= # XRD (Composite Resource Definition) # Définit le schéma de ton API personnalisée # ============================================================================= apiVersion: apiextensions.crossplane.io/v2 kind: CompositeResourceDefinition metadata: # Format: x. # Exemple: xdatabases.mathod.io, xnetworks.mathod.io name: xs.mathod.io spec: scope: Namespaced # Le groupe de ton API (doit matcher le suffix du name) group: mathod.io names: # Nom au singulier (PascalCase) - Commence par X kind: X # Nom au pluriel (lowercase) plural: xs versions: - name: v1alpha1 served: true referenceable: true schema: openAPIV3Schema: type: object properties: spec: type: object properties: parameters: type: object properties: # ======================================== # Paramètres string # ======================================== : type: string description: "" default: "" # ======================================== # Paramètres boolean # ======================================== : type: boolean description: "" default: false # ======================================== # Paramètres integer # ======================================== : type: integer description: "" default: 100 # ======================================== # Paramètres array # ======================================== : type: array description: "" items: type: string default: [] # ======================================== # Paramètres object # ======================================== : type: object description: "" properties: : type: string # Paramètres obligatoires required: - required: - parameters # ======================================== # Status - Informations retournées # ======================================== status: type: object properties: : type: string description: "" ---