apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  name: weatherlocations.kubernetes.dev
spec:
  group: kubernetes.dev
  names:
    kind: WeatherLocation
    listKind: WeatherLocationList
    plural: weatherlocations
    singular: weatherlocation
  scope: Cluster
  versions:
  - name: v1
    schema:
      openAPIV3Schema:
        properties:
          status:
            description: Status object for the entity.
            properties:
              lastCheck:
                format: date-time
                nullable: true
                type: string
              error:
                nullable: true
                type: string
            type: object
          spec:
            description: Specification of the kubernetes object.
            properties:
              latitude:
                format: double
                type: number
              longitude:
                format: double
                type: number
            type: object
        type: object
    served: true
    storage: true
    subresources:
      status: {}
