{
  "description": "ConstraintTemplate is the Schema for the constrainttemplates API",
  "properties": {
    "apiVersion": {
      "description": "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore 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.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
      "type": "string"
    },
    "metadata": {
      "type": "object"
    },
    "spec": {
      "description": "ConstraintTemplateSpec defines the desired state of ConstraintTemplate.",
      "properties": {
        "crd": {
          "properties": {
            "spec": {
              "properties": {
                "names": {
                  "properties": {
                    "kind": {
                      "type": "string"
                    },
                    "shortNames": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "type": "object",
                  "additionalProperties": false
                },
                "validation": {
                  "default": {
                    "legacySchema": false
                  },
                  "properties": {
                    "legacySchema": {
                      "default": false,
                      "type": "boolean"
                    },
                    "openAPIV3Schema": {
                      "type": "object",
                      "x-kubernetes-preserve-unknown-fields": true
                    }
                  },
                  "type": "object",
                  "additionalProperties": false
                }
              },
              "type": "object",
              "additionalProperties": false
            }
          },
          "type": "object",
          "additionalProperties": false
        },
        "targets": {
          "items": {
            "properties": {
              "code": {
                "description": "The source code options for the constraint template. \"Rego\" can only\nbe specified in one place (either here or in the \"rego\" field)",
                "items": {
                  "properties": {
                    "engine": {
                      "description": "The engine used to evaluate the code. Example: \"Rego\". Required.",
                      "type": "string"
                    },
                    "source": {
                      "description": "The source code for the template. Required.",
                      "x-kubernetes-preserve-unknown-fields": true
                    }
                  },
                  "required": [
                    "engine",
                    "source"
                  ],
                  "type": "object",
                  "additionalProperties": false
                },
                "type": "array",
                "x-kubernetes-list-map-keys": [
                  "engine"
                ],
                "x-kubernetes-list-type": "map"
              },
              "libs": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "rego": {
                "type": "string"
              },
              "target": {
                "type": "string"
              }
            },
            "type": "object",
            "additionalProperties": false
          },
          "type": "array"
        }
      },
      "type": "object",
      "additionalProperties": false
    },
    "status": {
      "description": "ConstraintTemplateStatus defines the observed state of ConstraintTemplate.",
      "properties": {
        "byPod": {
          "items": {
            "description": "ByPodStatus defines the observed state of ConstraintTemplate as seen by\nan individual controller",
            "properties": {
              "errors": {
                "items": {
                  "description": "CreateCRDError represents a single error caught during parsing, compiling, etc.",
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "location": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "code",
                    "message"
                  ],
                  "type": "object",
                  "additionalProperties": false
                },
                "type": "array"
              },
              "id": {
                "description": "a unique identifier for the pod that wrote the status",
                "type": "string"
              },
              "observedGeneration": {
                "format": "int64",
                "type": "integer"
              }
            },
            "type": "object",
            "x-kubernetes-preserve-unknown-fields": true,
            "additionalProperties": false
          },
          "type": "array"
        },
        "created": {
          "type": "boolean"
        }
      },
      "type": "object",
      "additionalProperties": false
    }
  },
  "type": "object"
}
