{
  "description": "A seccomp profile that kguardian distributes to every node as kguardian/\u003cnamespace\u003e/\u003cname\u003e.json under the kubelet seccomp root. Reference it from a pod with securityContext.seccompProfile {type: Localhost, localhostProfile: kguardian/\u003cnamespace\u003e/\u003cname\u003e.json}.",
  "properties": {
    "spec": {
      "additionalProperties": false,
      "description": "Spec of a `SeccompProfile`: a seccomp profile in its native shape,\nplus an optional pointer at the workload it is for.",
      "properties": {
        "architectures": {
          "description": "Architectures the profile applies to (seccomp `architectures`).\nOmitted ⇒ the rendered file carries no `architectures` field.",
          "items": {
            "enum": [
              "SCMP_ARCH_X86_64",
              "SCMP_ARCH_ARM64",
              "SCMP_ARCH_X86",
              "SCMP_ARCH_X32",
              "SCMP_ARCH_AARCH64"
            ],
            "type": "string"
          },
          "nullable": true,
          "type": [
            "array",
            "null"
          ]
        },
        "defaultAction": {
          "description": "Action for any syscall not matched by a rule.",
          "enum": [
            "SCMP_ACT_LOG",
            "SCMP_ACT_ERRNO",
            "SCMP_ACT_KILL",
            "SCMP_ACT_KILL_PROCESS"
          ],
          "type": "string"
        },
        "syscalls": {
          "description": "Syscall rules. kguardian generates `SCMP_ACT_ALLOW` rules only;\nthe other actions are accepted for hand edits.",
          "items": {
            "additionalProperties": false,
            "description": "One seccomp rule: a set of syscall names sharing an action.",
            "properties": {
              "action": {
                "enum": [
                  "SCMP_ACT_ALLOW",
                  "SCMP_ACT_LOG",
                  "SCMP_ACT_ERRNO",
                  "SCMP_ACT_KILL",
                  "SCMP_ACT_KILL_PROCESS"
                ],
                "type": "string"
              },
              "errnoRet": {
                "description": "errno to return for `SCMP_ACT_ERRNO` rules.",
                "format": "uint32",
                "minimum": 0,
                "nullable": true,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "names": {
                "description": "Syscall names (`^[a-z][a-z0-9_]{0,63}$`).",
                "items": {
                  "description": "A syscall name. Validated by the CRD schema pattern.",
                  "pattern": "^[a-z][a-z0-9_]{0,63}$",
                  "type": "string"
                },
                "minItems": 1,
                "type": "array"
              }
            },
            "required": [
              "action",
              "names"
            ],
            "type": "object"
          },
          "minItems": 1,
          "type": "array"
        },
        "workloadRef": {
          "additionalProperties": false,
          "description": "The workload this profile is for. Enables the `CaptureComplete`\nand `Drift` conditions; optional.",
          "nullable": true,
          "properties": {
            "kind": {
              "enum": [
                "Deployment",
                "StatefulSet",
                "DaemonSet",
                "CronJob",
                "Job",
                "ReplicaSet",
                "ReplicationController"
              ],
              "type": "string"
            },
            "name": {
              "type": "string"
            }
          },
          "required": [
            "kind",
            "name"
          ],
          "type": [
            "object",
            "null"
          ]
        }
      },
      "required": [
        "defaultAction",
        "syscalls"
      ],
      "type": "object"
    },
    "status": {
      "additionalProperties": false,
      "description": "`status` of a `SeccompProfile`. Two writers: each controller\nserver-side-applies its own `nodes[name=\u003cnode\u003e]` entry (field manager\n`kguardian-controller/\u003cnode\u003e`), and every controller applies the same\ncomputed summary (everything else) under the shared manager\n`kguardian-summary`, so the summary converges to the last writer.",
      "nullable": true,
      "properties": {
        "conditions": {
          "items": {
            "additionalProperties": false,
            "description": "A `metav1.Condition`-shaped condition (`type`, `status`, `reason`,\n`message`, `lastTransitionTime`).",
            "properties": {
              "lastTransitionTime": {
                "nullable": true,
                "type": [
                  "string",
                  "null"
                ]
              },
              "message": {
                "default": "",
                "type": [
                  "string",
                  "null"
                ]
              },
              "reason": {
                "type": "string"
              },
              "status": {
                "description": "`\"True\"`, `\"False\"` or `\"Unknown\"`.",
                "type": "string"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "reason",
              "status",
              "type"
            ],
            "type": "object"
          },
          "type": [
            "array",
            "null"
          ],
          "x-kubernetes-list-map-keys": [
            "type"
          ],
          "x-kubernetes-list-type": "map"
        },
        "distribution": {
          "additionalProperties": false,
          "nullable": true,
          "properties": {
            "ready": {
              "format": "uint32",
              "minimum": 0,
              "type": "integer"
            },
            "state": {
              "enum": [
                "Ready",
                "Partial",
                "Pending"
              ],
              "type": "string"
            },
            "summary": {
              "description": "`ready/total`, for the `Ready` printer column.",
              "nullable": true,
              "type": [
                "string",
                "null"
              ]
            },
            "total": {
              "format": "uint32",
              "minimum": 0,
              "type": "integer"
            }
          },
          "required": [
            "ready",
            "state",
            "total"
          ],
          "type": [
            "object",
            "null"
          ]
        },
        "drift": {
          "description": "Mirror of the `Drift` condition's status (`True`/`False`/`Unknown`)\nfor the printer column — CRD printer columns take simple JSON\npaths only, no `[?(@.type==\"Drift\")]` filters.",
          "nullable": true,
          "type": [
            "string",
            "null"
          ]
        },
        "hash": {
          "description": "FNV-1a-64 (hex) of the rendered file — what is on a ready node.",
          "nullable": true,
          "type": [
            "string",
            "null"
          ]
        },
        "localhostProfile": {
          "description": "The `localhostProfile` value pods reference.",
          "nullable": true,
          "type": [
            "string",
            "null"
          ]
        },
        "nodes": {
          "description": "Per-node state; each entry is owned by that node's controller.",
          "items": {
            "additionalProperties": false,
            "properties": {
              "hash": {
                "type": "string"
              },
              "lastWritten": {
                "description": "RFC 3339; when this node last wrote the file.",
                "nullable": true,
                "type": [
                  "string",
                  "null"
                ]
              },
              "name": {
                "type": "string"
              }
            },
            "required": [
              "hash",
              "name"
            ],
            "type": "object"
          },
          "type": [
            "array",
            "null"
          ],
          "x-kubernetes-list-map-keys": [
            "name"
          ],
          "x-kubernetes-list-type": "map"
        },
        "observedGeneration": {
          "format": "int64",
          "nullable": true,
          "type": [
            "integer",
            "null"
          ]
        }
      },
      "type": [
        "object",
        "null"
      ]
    }
  },
  "required": [
    "spec"
  ],
  "title": "SeccompProfile",
  "type": "object"
}