---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  name: workloads.fsc.henderiw.be
spec:
  group: fsc.henderiw.be
  names:
    kind: WorkLoad
    listKind: WorkLoadList
    plural: workloads
    singular: workload
  scope: Namespaced
  versions:
  - name: v1
    schema:
      openAPIV3Schema:
        properties:
          apiVersion:
            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'
            type: string
          kind:
            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'
            type: string
          metadata:
            type: object
          spec:
            description: workload spec defines the workload paraameters
            properties:
              routeTarget:
                type: string
              routeDistinguisher:
                type: string
              vlans:
                required:
                - id
                items:
                  type: object
                  properties:
                    id:
                      type: integer
                type: array
            type: object
          status:
            description: status of the workload
            properties:
              runningConfig:
                description: runningConfig contains the effective config thata is running
                properties:
                  routeTarget:
                    type: string
                  routeDistinguisher:
                    type: string
                  vlans:
                    required:
                    - id
                    items:
                      type: object
                      properties:
                        id:
                          type: integer
                    type: array
                type: object
              devices:
                description: the devices and related parameters on which this config is applied
                items:
                  required:
                  - name
                  properties:
                    name:
                      type: string
                    kind:
                      type: string
                    deviceIdentifier:
                      type: string
                    deviceIdentifierType:
                      type: string
                    endpoints:
                      items:
                        required:
                        - name
                        properties:
                          name:
                            type: string
                          interfaceIdentifier:
                            type: string
                          interfaceIdentifierType:
                            type: string
                          mtu:
                            type: integer
                          lag:
                            type: boolean
                          vlans:
                            items:
                              required:
                              - id
                              properties:
                                id:
                                  type: integer
                              type: object
                            type: array
                        type: object
                      type: array
                  type: object
                type: array
            type: object
        type: object
    served: true
    storage: true
status:
  acceptedNames:
    kind: ""
    plural: ""
  conditions: []
  storedVersions: []