{
  "description": "AppliedManifestWork represents an applied manifestwork on managed cluster that is placed\non a managed cluster. An AppliedManifestWork links to a manifestwork on a hub recording resources\ndeployed in the managed cluster.\nWhen the agent is removed from managed cluster, cluster-admin on managed cluster\ncan delete appliedmanifestwork to remove resources deployed by the agent.\nThe name of the appliedmanifestwork must be in the format of\n{hash of hub's first kube-apiserver url}-{manifestwork name}",
  "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": "Spec represents the desired configuration of AppliedManifestWork.",
      "properties": {
        "agentID": {
          "description": "AgentID represents the ID of the work agent who is to handle this AppliedManifestWork.",
          "type": "string"
        },
        "hubHash": {
          "description": "HubHash represents the hash of the first hub kube apiserver to identify which hub\nthis AppliedManifestWork links to.",
          "type": "string"
        },
        "manifestWorkName": {
          "description": "ManifestWorkName represents the name of the related manifestwork on the hub.",
          "type": "string"
        }
      },
      "required": [
        "hubHash",
        "manifestWorkName"
      ],
      "type": "object",
      "additionalProperties": false
    },
    "status": {
      "description": "Status represents the current status of AppliedManifestWork.",
      "properties": {
        "appliedResources": {
          "description": "AppliedResources represents a list of resources defined within the manifestwork that are applied.\nOnly resources with valid GroupVersionResource, namespace, and name are suitable.\nAn item in this slice is deleted when there is no mapped manifest in manifestwork.Spec or by finalizer.\nThe resource relating to the item will also be removed from managed cluster.\nThe deleted resource may still be present until the finalizers for that resource are finished.\nHowever, the resource will not be undeleted, so it can be removed from this list and eventual consistency is preserved.",
          "items": {
            "description": "AppliedManifestResourceMeta represents the group, version, resource, name and namespace of a resource.\nSince these resources have been created, they must have valid group, version, resource, namespace, and name.",
            "properties": {
              "group": {
                "description": "Group is the API Group of the Kubernetes resource,\nempty string indicates it is in core group.",
                "type": "string"
              },
              "name": {
                "description": "Name is the name of the Kubernetes resource.",
                "type": "string"
              },
              "namespace": {
                "description": "Name is the namespace of the Kubernetes resource, empty string indicates\nit is a cluster scoped resource.",
                "type": "string"
              },
              "resource": {
                "description": "Resource is the resource name of the Kubernetes resource.",
                "type": "string"
              },
              "uid": {
                "description": "UID is set on successful deletion of the Kubernetes resource by controller. The\nresource might be still visible on the managed cluster after this field is set.\nIt is not directly settable by a client.",
                "type": "string"
              },
              "version": {
                "description": "Version is the version of the Kubernetes resource.",
                "type": "string"
              }
            },
            "required": [
              "name",
              "resource",
              "version"
            ],
            "type": "object",
            "additionalProperties": false
          },
          "type": "array"
        },
        "evictionStartTime": {
          "description": "EvictionStartTime represents the current appliedmanifestwork will be evicted after a grace period.\nAn appliedmanifestwork will be evicted from the managed cluster in the following two scenarios:\n  - the manifestwork of the current appliedmanifestwork is missing on the hub, or\n  - the appliedmanifestwork hub hash does not match the current hub hash of the work agent.",
          "format": "date-time",
          "type": "string"
        }
      },
      "type": "object",
      "additionalProperties": false
    }
  },
  "type": "object"
}
