---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  annotations:
    controller-gen.kubebuilder.io/version: v0.17.3
  labels:
    app.kubernetes.io/component: crds
    app.kubernetes.io/instance: kyverno
    app.kubernetes.io/part-of: kyverno-crds
    app.kubernetes.io/version: 3.4.1
  name: globalcontextentries.kyverno.io
spec:
  group: kyverno.io
  names:
    categories:
      - kyverno
    kind: GlobalContextEntry
    listKind: GlobalContextEntryList
    plural: globalcontextentries
    shortNames:
      - gctxentry
    singular: globalcontextentry
  scope: Cluster
  versions:
    - additionalPrinterColumns:
        - jsonPath: .metadata.creationTimestamp
          name: AGE
          type: date
        - jsonPath: .spec.apiCall.refreshInterval
          name: REFRESH INTERVAL
          type: string
        - jsonPath: .status.lastRefreshTime
          name: LAST REFRESH
          type: date
      name: v2alpha1
      schema:
        openAPIV3Schema:
          properties:
            apiVersion:
              type: string
            kind:
              type: string
            metadata:
              type: object
            spec:
              oneOf:
                - required:
                    - kubernetesResource
                - required:
                    - apiCall
              properties:
                apiCall:
                  properties:
                    data:
                      items:
                        properties:
                          key:
                            type: string
                          value:
                            x-kubernetes-preserve-unknown-fields: true
                        required:
                          - key
                          - value
                        type: object
                      type: array
                    method:
                      default: GET
                      enum:
                        - GET
                        - POST
                      type: string
                    refreshInterval:
                      default: 10m
                      format: duration
                      type: string
                    retryLimit:
                      default: 3
                      minimum: 1
                      type: integer
                    service:
                      properties:
                        caBundle:
                          type: string
                        headers:
                          items:
                            properties:
                              key:
                                type: string
                              value:
                                type: string
                            required:
                              - key
                              - value
                            type: object
                          type: array
                        url:
                          type: string
                      required:
                        - url
                      type: object
                    urlPath:
                      type: string
                  type: object
                kubernetesResource:
                  properties:
                    group:
                      type: string
                    namespace:
                      type: string
                    resource:
                      type: string
                    version:
                      type: string
                  required:
                    - resource
                    - version
                  type: object
                projections:
                  items:
                    properties:
                      jmesPath:
                        type: string
                      name:
                        type: string
                    required:
                      - jmesPath
                      - name
                    type: object
                  type: array
              type: object
            status:
              properties:
                conditions:
                  items:
                    properties:
                      lastTransitionTime:
                        format: date-time
                        type: string
                      message:
                        maxLength: 32768
                        type: string
                      observedGeneration:
                        format: int64
                        minimum: 0
                        type: integer
                      reason:
                        maxLength: 1024
                        minLength: 1
                        pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$
                        type: string
                      status:
                        enum:
                          - "True"
                          - "False"
                          - Unknown
                        type: string
                      type:
                        maxLength: 316
                        pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
                        type: string
                    required:
                      - lastTransitionTime
                      - message
                      - reason
                      - status
                      - type
                    type: object
                  type: array
                lastRefreshTime:
                  format: date-time
                  type: string
                ready:
                  type: boolean
              type: object
          required:
            - spec
          type: object
      served: true
      storage: true
      subresources:
        status: {}
