/** *****************************************************************************
 * Licensed Materials - Property of IBM
 * (c) Copyright IBM Corporation 2019. All Rights Reserved.
 * Copyright (c) 2020 Red Hat, Inc.
 *
 * Note to U.S. Government Users Restricted Rights:
 * Use, duplication or disclosure restricted by GSA ADP Schedule
 * Contract with IBM Corp.
 ****************************************************************************** */

export const policies = [
  {
    metadata: {
      name: "my-policy-test",
      namespace: "mcm",
      selfLink:
        "/apis/policy.mcm.ibm.com/v1alpha1/namespaces/mcm/policies/my-policy-test",
      annotations: {
        "policy.mcm.ibm.com/categories": "SystemAndCommunicationsProtections",
        "policy.mcm.ibm.com/controls": "VA",
        "policy.mcm.ibm.com/standards": "BSA",
        "seed-generation": "1"
      },
      resourceVersion: "1524346",
      __typename: "Metadata"
    },
    name: "my-policy-test",
    namespace: "mcm",
    raw: {
      apiVersion: "policy.mcm.ibm.com/v1alpha1",
      kind: "Policy",
      metadata: {
        annotations: {
          "policy.mcm.ibm.com/categories": "SystemAndCommunicationsProtections",
          "policy.mcm.ibm.com/controls": "VA",
          "policy.mcm.ibm.com/standards": "BSA",
          "seed-generation": "1"
        },
        creationTimestamp: "2019-07-23T21:12:04Z",
        finalizers: ["propagator.finalizer.mcm.ibm.com"],
        generation: 7,
        name: "my-policy-test",
        namespace: "mcm",
        resourceVersion: "1524346",
        selfLink:
          "/apis/policy.mcm.ibm.com/v1alpha1/namespaces/mcm/policies/my-policy-test",
        uid: "85840587-ad8e-11e9-8a41-005056a061f1"
      },
      spec: {
        complianceType: "musthave",
        namespaces: {
          exclude: ["kube-*"],
          include: ["default"]
        },
        "-templates": [
          {
            complianceType: "musthave",
            Definition: {
              apiVersion: "v1",
              kind: "Pod",
              metadata: {
                name: "nginx-pod"
              },
              spec: {
                containers: [
                  {
                    image: "nginx:1.7.9",
                    name: "nginx",
                    ports: [
                      {
                        containerPort: 80
                      }
                    ]
                  }
                ]
              }
            },
            status: {
              Validity: {}
            }
          }
        ],
        "policy-templates": [
          {
            Definition: {
              apiVersion: "policies.ibm.com/v1alpha1",
              kind: "MutationPolicy",
              metadata: {
                label: {
                  category: "System-Integrity"
                },
                name: "mutation-policy-example"
              },
              spec: {
                conditions: {
                  ownership: [
                    "ReplicaSet",
                    "Deployment",
                    "DeamonSet",
                    "ReplicationController"
                  ]
                },
                namespaceSelector: {
                  exclude: ["kube-system"],
                  include: ["default", "kube-*"]
                },
                remediationAction: "enforce"
              }
            },
            status: {
              Validity: {}
            }
          }
        ],
        remediationAction: "enforce"
      },
      status: {
        placementBindings: ["binding-my-policy-test"],
        placementPolicies: ["placement-my-policy-test"],
        status: {
          cluster1: {
            aggregatePoliciesStatus: {
              "my-policy-test": {
                compliant: "Compliant"
              }
            },
            clustername: "cluster1",
            compliant: "Compliant"
          },
          clusterhub: {
            aggregatePoliciesStatus: {
              "my-policy-test": {
                compliant: "Compliant"
              }
            },
            clustername: "clusterhub",
            compliant: "Compliant"
          }
        }
      }
    },
    remediation: "enforce",
    policyCompliant: "0/2",
    clusterCompliant: "0/2",
    placementPolicies: [
      {
        metadata: {
          name: "placement-my-policy-test",
          selfLink:
            "/apis/mcm.ibm.com/v1alpha1/namespaces/mcm/placementpolicies/placement-my-policy-test",
          __typename: "Metadata"
        },
        __typename: "PlacementPolicy"
      }
    ],
    placementBindings: [
      {
        metadata: {
          name: "binding-my-policy-test",
          selfLink:
            "/apis/mcm.ibm.com/v1alpha1/namespaces/mcm/placementbindings/binding-my-policy-test",
          __typename: "Metadata"
        },
        __typename: "PlacementBinding"
      }
    ],
    __typename: "Compliance"
  },
  {
    metadata: {
      name: "policy-ma",
      namespace: "mcm",
      selfLink:
        "/apis/policy.mcm.ibm.com/v1alpha1/namespaces/mcm/policies/policy-ma",
      annotations: {
        "kubectl.kubernetes.io/last-applied-configuration":
          '{"apiVersion":"policy.mcm.ibm.com/v1alpha1","kind":"Policy","metadata":{"annotations":{"policy.mcm.ibm.com/categories":"SystemAndInformationIntegrity","policy.mcm.ibm.com/controls":"MutationAdvisor","policy.mcm.ibm.com/standards":"NIST"},"name":"policy-ma","namespace":"mcm"},"spec":{"policy-templates":[{"Definition":{"apiVersion":"policies.ibm.com/v1alpha1","kind":"MutationPolicy","metadata":{"label":{"category":"System-Integrity"},"name":"mutation-policy-example"},"spec":{"conditions":{"ownership":["ReplicaSet","Deployment","DeamonSet","ReplicationController"]},"namespaceSelector":{"exclude":["kube-system"],"include":["default","kube-*"]},"remediationAction":"enforce"}}}],"remediationAction":"enforce"}}\n',
        "policy.mcm.ibm.com/categories": "SystemAndInformationIntegrity",
        "policy.mcm.ibm.com/controls": "MutationAdvisor",
        "policy.mcm.ibm.com/standards": "NIST",
        "seed-generation": "1"
      },
      resourceVersion: "1347579",
      __typename: "Metadata"
    },
    name: "policy-ma",
    namespace: "mcm",
    raw: {
      apiVersion: "policy.mcm.ibm.com/v1alpha1",
      kind: "Policy",
      metadata: {
        annotations: {
          "kubectl.kubernetes.io/last-applied-configuration":
            '{"apiVersion":"policy.mcm.ibm.com/v1alpha1","kind":"Policy","metadata":{"annotations":{"policy.mcm.ibm.com/categories":"SystemAndInformationIntegrity","policy.mcm.ibm.com/controls":"MutationAdvisor","policy.mcm.ibm.com/standards":"NIST"},"name":"policy-ma","namespace":"mcm"},"spec":{"policy-templates":[{"Definition":{"apiVersion":"policies.ibm.com/v1alpha1","kind":"MutationPolicy","metadata":{"label":{"category":"System-Integrity"},"name":"mutation-policy-example"},"spec":{"conditions":{"ownership":["ReplicaSet","Deployment","DeamonSet","ReplicationController"]},"namespaceSelector":{"exclude":["kube-system"],"include":["default","kube-*"]},"remediationAction":"enforce"}}}],"remediationAction":"enforce"}}\n',
          "policy.mcm.ibm.com/categories": "SystemAndInformationIntegrity",
          "policy.mcm.ibm.com/controls": "MutationAdvisor",
          "policy.mcm.ibm.com/standards": "NIST",
          "seed-generation": "1"
        },
        creationTimestamp: "2019-07-16T13:18:48Z",
        finalizers: ["propagator.finalizer.mcm.ibm.com"],
        generation: 45,
        name: "policy-ma",
        namespace: "mcm",
        resourceVersion: "1347579",
        selfLink:
          "/apis/policy.mcm.ibm.com/v1alpha1/namespaces/mcm/policies/policy-ma",
        uid: "3f218d45-a7cc-11e9-8a41-005056a061f1"
      },
      spec: {
        namespaces: {},
        "policy-templates": [
          {
            Definition: {
              apiVersion: "policies.ibm.com/v1alpha1",
              kind: "MutationPolicy",
              metadata: {
                label: {
                  category: "System-Integrity"
                },
                name: "mutation-policy-example"
              },
              spec: {
                conditions: {
                  ownership: [
                    "ReplicaSet",
                    "Deployment",
                    "DeamonSet",
                    "ReplicationController"
                  ]
                },
                namespaceSelector: {
                  exclude: ["kube-system"],
                  include: ["default", "kube-*"]
                },
                remediationAction: "enforce"
              }
            },
            status: {
              Validity: {}
            }
          }
        ],
        remediationAction: "enforce"
      },
      status: {
        placementBindings: ["binding-ma"],
        placementPolicies: ["placement-ma"],
        status: {
          cluster1: {
            aggregatePoliciesStatus: {
              "policy-ma": {
                compliant: "NonCompliant"
              }
            },
            clustername: "cluster1",
            compliant: "NonCompliant"
          },
          clusterhub: {
            aggregatePoliciesStatus: {
              "policy-ma": {
                compliant: "Compliant"
              }
            },
            clustername: "clusterhub",
            compliant: "Compliant"
          }
        }
      }
    },
    remediation: "enforce",
    policyCompliant: "1/2",
    clusterCompliant: "1/2",
    placementPolicies: [
      {
        metadata: {
          name: "placement-ma",
          selfLink:
            "/apis/mcm.ibm.com/v1alpha1/namespaces/mcm/placementpolicies/placement-ma",
          __typename: "Metadata"
        },
        __typename: "PlacementPolicy"
      }
    ],
    placementBindings: [
      {
        metadata: {
          name: "binding-ma",
          selfLink:
            "/apis/mcm.ibm.com/v1alpha1/namespaces/mcm/placementbindings/binding-ma",
          __typename: "Metadata"
        },
        __typename: "PlacementBinding"
      }
    ],
    __typename: "Compliance"
  },
  {
    metadata: {
      name: "policy-pod",
      namespace: "mcm",
      selfLink:
        "/apis/policy.mcm.ibm.com/v1alpha1/namespaces/mcm/policies/policy-pod",
      annotations: {
        "policy.mcm.ibm.com/categories":
          "SystemAndCommunicationsProtections,SystemAndInformationIntegrity",
        "policy.mcm.ibm.com/controls": "MutationAdvisor,CertificateManager",
        "policy.mcm.ibm.com/standards": "NIST,HIPAA",
        "seed-generation": "1"
      },
      resourceVersion: "1524369",
      __typename: "Metadata"
    },
    name: "policy-pod",
    namespace: "mcm",
    raw: {
      apiVersion: "policy.mcm.ibm.com/v1alpha1",
      kind: "Policy",
      metadata: {
        annotations: {
          "policy.mcm.ibm.com/categories":
            "SystemAndCommunicationsProtections,SystemAndInformationIntegrity",
          "policy.mcm.ibm.com/controls": "MutationAdvisor,CertificateManager",
          "policy.mcm.ibm.com/standards": "NIST,HIPAA",
          "seed-generation": "1"
        },
        creationTimestamp: "2019-07-16T13:16:46Z",
        finalizers: ["propagator.finalizer.mcm.ibm.com"],
        generation: 20,
        name: "policy-pod",
        namespace: "mcm",
        resourceVersion: "1524369",
        selfLink:
          "/apis/policy.mcm.ibm.com/v1alpha1/namespaces/mcm/policies/policy-pod",
        uid: "f61a25eb-a7cb-11e9-8a41-005056a061f1"
      },
      spec: {
        complianceType: "musthave",
        namespaces: {
          exclude: ["kube*"],
          include: ["default"]
        },
        "-templates": [
          {
            complianceType: "musthave",
            Definition: {
              apiVersion: "v1",
              kind: "Pod",
              metadata: {
                name: "nginx-pod"
              },
              spec: {
                containers: [
                  {
                    image: "nginx:1.7.9",
                    name: "nginx",
                    ports: [
                      {
                        containerPort: 80
                      }
                    ]
                  }
                ]
              }
            },
            status: {
              Validity: {}
            }
          }
        ],
        remediationAction: "inform"
      },
      status: {
        placementBindings: ["binding-pod"],
        placementPolicies: ["placement-pod"],
        status: {
          cluster1: {
            aggregatePoliciesStatus: {
              "policy-pod": {
                compliant: "Compliant"
              }
            },
            clustername: "cluster1",
            compliant: "Compliant"
          },
          clusterhub: {
            aggregatePoliciesStatus: {
              "policy-pod": {
                compliant: "Compliant"
              }
            },
            clustername: "clusterhub",
            compliant: "Compliant"
          }
        }
      }
    },
    remediation: "inform",
    policyCompliant: "0/2",
    clusterCompliant: "0/2",
    placementPolicies: [
      {
        metadata: {
          name: "placement-pod",
          selfLink:
            "/apis/mcm.ibm.com/v1alpha1/namespaces/mcm/placementpolicies/placement-pod",
          __typename: "Metadata"
        },
        __typename: "PlacementPolicy"
      }
    ],
    placementBindings: [
      {
        metadata: {
          name: "binding-pod",
          selfLink:
            "/apis/mcm.ibm.com/v1alpha1/namespaces/mcm/placementbindings/binding-pod",
          __typename: "Metadata"
        },
        __typename: "PlacementBinding"
      }
    ],
    __typename: "Compliance"
  },
  {
    metadata: {
      name: "policy-role",
      namespace: "mcm",
      selfLink:
        "/apis/policy.mcm.ibm.com/v1alpha1/namespaces/mcm/policies/policy-role",
      annotations: {
        "kubectl.kubernetes.io/last-applied-configuration":
          '{"apiVersion":"policy.mcm.ibm.com/v1alpha1","kind":"Policy","metadata":{"annotations":{"policy.mcm.ibm.com/categories":"SystemAndCommunicationsProtections,SystemAndInformationIntegrity","policy.mcm.ibm.com/controls":"MutationAdvisor,VA","policy.mcm.ibm.com/standards":"NIST,HIPAA"},"name":"policy-role","namespace":"mcm"},"spec":{"namespaces":{"exclude":["kube*"],"include":["default"]},"remediationAction":"inform","role-templates":[{"apiVersion":"roletemplate.mcm.ibm.com/v1alpha1","complianceType":"musthave","metadata":{"name":"operator-role-policy","namespace":""},"rules":[{"complianceType":"musthave","policyRule":{"apiGroups":["extensions","apps"],"resources":["deployments"],"verbs":["get","list","watch","create","delete","patch"]}}],"selector":{"matchLabels":{"dev":"true"}}}]}}\n',
        "policy.mcm.ibm.com/categories":
          "SystemAndCommunicationsProtections,SystemAndInformationIntegrity",
        "policy.mcm.ibm.com/controls": "MutationAdvisor,VA",
        "policy.mcm.ibm.com/standards": "NIST,HIPAA",
        "seed-generation": "1"
      },
      resourceVersion: "1513562",
      __typename: "Metadata"
    },
    name: "policy-role",
    namespace: "mcm",
    raw: {
      apiVersion: "policy.mcm.ibm.com/v1alpha1",
      kind: "Policy",
      metadata: {
        annotations: {
          "kubectl.kubernetes.io/last-applied-configuration":
            '{"apiVersion":"policy.mcm.ibm.com/v1alpha1","kind":"Policy","metadata":{"annotations":{"policy.mcm.ibm.com/categories":"SystemAndCommunicationsProtections,SystemAndInformationIntegrity","policy.mcm.ibm.com/controls":"MutationAdvisor,VA","policy.mcm.ibm.com/standards":"NIST,HIPAA"},"name":"policy-role","namespace":"mcm"},"spec":{"namespaces":{"exclude":["kube*"],"include":["default"]},"remediationAction":"inform","role-templates":[{"apiVersion":"roletemplate.mcm.ibm.com/v1alpha1","complianceType":"musthave","metadata":{"name":"operator-role-policy","namespace":""},"rules":[{"complianceType":"musthave","policyRule":{"apiGroups":["extensions","apps"],"resources":["deployments"],"verbs":["get","list","watch","create","delete","patch"]}}],"selector":{"matchLabels":{"dev":"true"}}}]}}\n',
          "policy.mcm.ibm.com/categories":
            "SystemAndCommunicationsProtections,SystemAndInformationIntegrity",
          "policy.mcm.ibm.com/controls": "MutationAdvisor,VA",
          "policy.mcm.ibm.com/standards": "NIST,HIPAA",
          "seed-generation": "1"
        },
        creationTimestamp: "2019-07-16T13:19:03Z",
        finalizers: ["propagator.finalizer.mcm.ibm.com"],
        generation: 17,
        name: "policy-role",
        namespace: "mcm",
        resourceVersion: "1513562",
        selfLink:
          "/apis/policy.mcm.ibm.com/v1alpha1/namespaces/mcm/policies/policy-role",
        uid: "47dbc091-a7cc-11e9-8a41-005056a061f1"
      },
      spec: {
        namespaces: {
          exclude: ["kube*"],
          include: ["default"]
        },
        remediationAction: "inform",
        "role-templates": [
          {
            apiVersion: "roletemplate.mcm.ibm.com/v1alpha1",
            complianceType: "musthave",
            metadata: {
              creationTimestamp: null,
              name: "operator-role-policy"
            },
            rules: [
              {
                complianceType: "musthave",
                policyRule: {
                  apiGroups: ["extensions", "apps"],
                  resources: ["deployments"],
                  verbs: ["get", "list", "watch", "create", "delete", "patch"]
                }
              }
            ],
            selector: {
              matchLabels: {
                dev: "true"
              }
            },
            status: {
              Validity: {}
            }
          }
        ]
      },
      status: {
        placementBindings: ["binding-role"],
        placementPolicies: ["placement-role"],
        status: {
          cluster1: {
            aggregatePoliciesStatus: {
              "policy-role": {
                compliant: "Compliant"
              }
            },
            clustername: "cluster1",
            compliant: "Compliant"
          },
          clusterhub: {
            aggregatePoliciesStatus: {
              "policy-role": {
                compliant: "Compliant"
              }
            },
            clustername: "clusterhub",
            compliant: "Compliant"
          }
        }
      }
    },
    remediation: "inform",
    policyCompliant: "0/2",
    clusterCompliant: "0/2",
    placementPolicies: [
      {
        metadata: {
          name: "placement-role",
          selfLink:
            "/apis/mcm.ibm.com/v1alpha1/namespaces/mcm/placementpolicies/placement-role",
          __typename: "Metadata"
        },
        __typename: "PlacementPolicy"
      }
    ],
    placementBindings: [
      {
        metadata: {
          name: "binding-role",
          selfLink:
            "/apis/mcm.ibm.com/v1alpha1/namespaces/mcm/placementbindings/binding-role",
          __typename: "Metadata"
        },
        __typename: "PlacementBinding"
      }
    ],
    __typename: "Compliance"
  }
];

export const policies2 = [
  {
    metadata: {
      name: "my-policy-test",
      namespace: "mcm",
      selfLink:
        "/apis/policy.mcm.ibm.com/v1alpha1/namespaces/mcm/policies/my-policy-test",
      annotations: {
        "policy.mcm.ibm.com/categories": "SystemAndCommunicationsProtections",
        "policy.mcm.ibm.com/controls": "VA",
        "policy.mcm.ibm.com/standards": "BSA",
        "seed-generation": "1"
      },
      resourceVersion: "1524346",
      __typename: "Metadata"
    },
    name: "my-policy-test",
    namespace: "mcm",
    raw: {
      apiVersion: "policy.mcm.ibm.com/v1alpha1",
      kind: "Policy",
      metadata: {
        annotations: {
          "policy.mcm.ibm.com/categories": "SystemAndCommunicationsProtections",
          "policy.mcm.ibm.com/controls": "VA",
          "policy.mcm.ibm.com/standards": "BSA",
          "seed-generation": "1"
        },
        creationTimestamp: "2019-07-23T21:12:04Z",
        finalizers: ["propagator.finalizer.mcm.ibm.com"],
        generation: 7,
        name: "my-policy-test",
        namespace: "mcm",
        resourceVersion: "1524346",
        selfLink:
          "/apis/policy.mcm.ibm.com/v1alpha1/namespaces/mcm/policies/my-policy-test",
        uid: "85840587-ad8e-11e9-8a41-005056a061f1"
      },
      spec: {
        complianceType: "musthave",
        namespaces: {
          exclude: ["kube-*"],
          include: ["default"]
        },
        "-templates": [
          {
            complianceType: "musthave",
            Definition: {
              apiVersion: "v1",
              kind: "Pod",
              metadata: {
                name: "nginx-pod"
              },
              spec: {
                containers: [
                  {
                    image: "nginx:1.7.9",
                    name: "nginx",
                    ports: [
                      {
                        containerPort: 80
                      }
                    ]
                  }
                ]
              }
            },
            status: {
              Validity: {}
            }
          }
        ],
        "policy-templates": [
          {
            Definition: {
              apiVersion: "policies.ibm.com/v1alpha1",
              kind: "MutationPolicy",
              metadata: {
                label: {
                  category: "System-Integrity"
                },
                name: "mutation-policy-example"
              },
              spec: {
                conditions: {
                  ownership: [
                    "ReplicaSet",
                    "Deployment",
                    "DeamonSet",
                    "ReplicationController"
                  ]
                },
                namespaceSelector: {
                  exclude: ["kube-system"],
                  include: ["default", "kube-*"]
                },
                remediationAction: "enforce"
              }
            },
            status: {
              Validity: {}
            }
          }
        ],
        remediationAction: "enforce"
      },
      status: {
        placementBindings: ["binding-my-policy-test"],
        placementPolicies: ["placement-my-policy-test"],
        status: {
          cluster1: "Compliant",
          clusterhub: "Compliant"
        }
      }
    },
    remediation: "enforce",
    policyCompliant: "0/2",
    clusterCompliant: "0/2",
    placementPolicies: [
      {
        metadata: {
          name: "placement-my-policy-test",
          selfLink:
            "/apis/mcm.ibm.com/v1alpha1/namespaces/mcm/placementpolicies/placement-my-policy-test",
          __typename: "Metadata"
        },
        __typename: "PlacementPolicy"
      }
    ],
    placementBindings: [
      {
        metadata: {
          name: "binding-my-policy-test",
          selfLink:
            "/apis/mcm.ibm.com/v1alpha1/namespaces/mcm/placementbindings/binding-my-policy-test",
          __typename: "Metadata"
        },
        __typename: "PlacementBinding"
      }
    ],
    __typename: "Compliance"
  }
];

export const findings = [
  {
    name:
      "id-mycluster-account/providers/security-advisor/occurrences/cluster1-policy-7a6dcc86-c742-11e9-a4d4-005056a061f1",
    shortDescription: "Policy that is not compliant",
    finding: {
      severity: "LOW",
      certainty: "HIGH",
      networkConnection: null,
      nextSteps: [
        {
          title:
            "View the details for the compliance problem in the occurrence of the findings.",
          url: null
        }
      ],
      dataTransferred: null
    },
    reportedBy: {
      id: "mcm-policy-adapter",
      title: "Security Advisor MCM Policy Findings Adapter",
      url: null
    },
    context: {
      accountId: "id-mycluster-account",
      region: "cluster1",
      resourceType: "Policy",
      resourceName: "1566742364066-policy-test",
      resourceId: "7a6dcc86-c742-11e9-a4d4-005056a061f1",
      resourceCrn: null,
      serviceName: "security-advisor",
      serviceCrn: null,
      clusterName: "cluster1",
      namespaceName: "Excludes: [kube-*], Includes: [default]"
    },
    securityClassification: {
      securityStandards: ["NIST"],
      securityCategories: ["SystemAndInformationIntegrity"],
      securityControl: "VA"
    },
    __typename: "Occurrence"
  },
  {
    name:
      "id-mycluster-account/providers/security-advisor/occurrences/clusterhub-policy-77a883dc-c6bb-11e9-a4d4-005056a061f1",
    shortDescription: "Policy that is not compliant",
    finding: {
      severity: "HIGH",
      certainty: "HIGH",
      networkConnection: null,
      nextSteps: [
        {
          title:
            "View the details for the compliance problem in the occurrence of the findings.",
          url: null
        }
      ],
      dataTransferred: null
    },
    reportedBy: {
      id: "mcm-policy-adapter",
      title: "Security Advisor MCM Policy Findings Adapter",
      url: null
    },
    context: {
      accountId: "id-mycluster-account",
      region: "clusterhub",
      resourceType: "Policy",
      resourceName: "1566684377115-policy-test",
      resourceId: "77a883dc-c6bb-11e9-a4d4-005056a061f1",
      resourceCrn: null,
      serviceName: "security-advisor",
      serviceCrn: null,
      clusterName: "clusterhub",
      namespaceName: "Excludes: [kube-*], Includes: [default]"
    },
    securityClassification: {
      securityStandards: ["NIST"],
      securityCategories: ["SystemAndInformationIntegrity"],
      securityControl: "VA"
    },
    __typename: "Occurrence"
  },
  {
    name:
      "id-mycluster-account/providers/security-advisor/occurrences/cluster1-policy-77a883dc-c6bb-11e9-a4d4-005056a061f1",
    shortDescription: "Policy that is not compliant",
    finding: {
      severity: "HIGH",
      certainty: "HIGH",
      networkConnection: null,
      nextSteps: [
        {
          title:
            "View the details for the compliance problem in the occurrence of the findings.",
          url: null
        }
      ],
      dataTransferred: null
    },
    reportedBy: {
      id: "mcm-policy-adapter",
      title: "Security Advisor MCM Policy Findings Adapter",
      url: null
    },
    context: {
      accountId: "id-mycluster-account",
      region: "cluster1",
      resourceType: "Policy",
      resourceName: "1566684377115-policy-test",
      resourceId: "77a883dc-c6bb-11e9-a4d4-005056a061f1",
      resourceCrn: null,
      serviceName: "security-advisor",
      serviceCrn: null,
      clusterName: "cluster1",
      namespaceName: "Excludes: [kube-*], Includes: [default]"
    },
    securityClassification: {
      securityStandards: ["NIST"],
      securityCategories: ["SystemAndInformationIntegrity"],
      securityControl: "VA"
    },
    __typename: "Occurrence"
  },
  {
    name:
      "id-mycluster-account/providers/security-advisor/occurrences/clusterhub-policy-48595041-c5ab-11e9-a4d4-005056a061f1",
    shortDescription: "Policy that is not compliant",
    finding: {
      severity: "HIGH",
      certainty: "LOW",
      networkConnection: null,
      nextSteps: [
        {
          title:
            "View the details for the compliance problem in the occurrence of the findings.",
          url: null
        }
      ],
      dataTransferred: null
    },
    reportedBy: {
      id: "mcm-policy-adapter",
      title: "Security Advisor MCM Policy Findings Adapter",
      url: null
    },
    context: {
      accountId: "id-mycluster-account",
      region: "clusterhub",
      resourceType: "Policy",
      resourceName: "1566567482876-policy-test",
      resourceId: "48595041-c5ab-11e9-a4d4-005056a061f1",
      resourceCrn: null,
      serviceName: "security-advisor",
      serviceCrn: null,
      clusterName: "clusterhub",
      namespaceName: "Excludes: [kube-*], Includes: [default]"
    },
    securityClassification: {
      securityStandards: ["NIST"],
      securityCategories: ["SystemAndInformationIntegrity"],
      securityControl: "VA"
    },
    __typename: "Occurrence"
  },
  {
    name:
      "id-mycluster-account/providers/security-advisor/occurrences/cluster1-policy-48595041-c5ab-11e9-a4d4-005056a061f1",
    shortDescription: "Policy that is not compliant",
    finding: {
      severity: "HIGH",
      certainty: "HIGH",
      networkConnection: null,
      nextSteps: [
        {
          title:
            "View the details for the compliance problem in the occurrence of the findings.",
          url: null
        }
      ],
      dataTransferred: null
    },
    reportedBy: {
      id: "mcm-policy-adapter",
      title: "Security Advisor MCM Policy Findings Adapter",
      url: null
    },
    context: {
      accountId: "id-mycluster-account",
      region: "cluster1",
      resourceType: "Policy",
      resourceName: "1566567482876-policy-test",
      resourceId: "48595041-c5ab-11e9-a4d4-005056a061f1",
      resourceCrn: null,
      serviceName: "security-advisor",
      serviceCrn: null,
      clusterName: "cluster1",
      namespaceName: "Excludes: [kube-*], Includes: [default]"
    },
    securityClassification: {
      securityStandards: ["NIST"],
      securityCategories: ["SystemAndInformationIntegrity"],
      securityControl: "VA"
    },
    __typename: "Occurrence"
  },
  {
    name:
      "id-mycluster-account/providers/security-advisor/occurrences/clusterhub-policy-11f8f455-c5ab-11e9-a4d4-005056a061f1",
    shortDescription: "Policy that is not compliant",
    finding: {
      severity: "HIGH",
      certainty: "HIGH",
      networkConnection: null,
      nextSteps: [
        {
          title:
            "View the details for the compliance problem in the occurrence of the findings.",
          url: null
        }
      ],
      dataTransferred: null
    },
    reportedBy: {
      id: "mcm-policy-adapter",
      title: "Security Advisor MCM Policy Findings Adapter",
      url: null
    },
    context: {
      accountId: "id-mycluster-account",
      region: "clusterhub",
      resourceType: "Policy",
      resourceName: "1566567391716-policy-test",
      resourceId: "11f8f455-c5ab-11e9-a4d4-005056a061f1",
      resourceCrn: null,
      serviceName: "security-advisor",
      serviceCrn: null,
      clusterName: "clusterhub",
      namespaceName: "Excludes: [kube-*], Includes: [default]"
    },
    securityClassification: {
      securityStandards: ["NIST"],
      securityCategories: ["SystemAndInformationIntegrity"],
      securityControl: "VA"
    },
    __typename: "Occurrence"
  },
  {
    name:
      "id-mycluster-account/providers/security-advisor/occurrences/cluster1-policy-11f8f455-c5ab-11e9-a4d4-005056a061f1",
    shortDescription: "Policy that is not compliant",
    finding: {
      severity: "HIGH",
      certainty: "HIGH",
      networkConnection: null,
      nextSteps: [
        {
          title:
            "View the details for the compliance problem in the occurrence of the findings.",
          url: null
        }
      ],
      dataTransferred: null
    },
    reportedBy: {
      id: "mcm-policy-adapter",
      title: "Security Advisor MCM Policy Findings Adapter",
      url: null
    },
    context: {
      accountId: "id-mycluster-account",
      region: "cluster1",
      resourceType: "Policy",
      resourceName: "1566567391716-policy-test",
      resourceId: "11f8f455-c5ab-11e9-a4d4-005056a061f1",
      resourceCrn: null,
      serviceName: "security-advisor",
      serviceCrn: null,
      clusterName: "cluster1",
      namespaceName: "Excludes: [kube-*], Includes: [default]"
    },
    securityClassification: {
      securityStandards: ["NIST"],
      securityCategories: ["SystemAndInformationIntegrity"],
      securityControl: "VA"
    },
    __typename: "Occurrence"
  },
  {
    name:
      "id-mycluster-account/providers/security-advisor/occurrences/clusterhub-policy-d55a4608-c5aa-11e9-a4d4-005056a061f1",
    shortDescription: "Policy that is not compliant",
    finding: {
      severity: "HIGH",
      certainty: "HIGH",
      networkConnection: null,
      nextSteps: [
        {
          title:
            "View the details for the compliance problem in the occurrence of the findings.",
          url: null
        }
      ],
      dataTransferred: null
    },
    reportedBy: {
      id: "mcm-policy-adapter",
      title: "Security Advisor MCM Policy Findings Adapter",
      url: null
    },
    context: {
      accountId: "id-mycluster-account",
      region: "clusterhub",
      resourceType: "Policy",
      resourceName: "1566567286588-policy-test",
      resourceId: "d55a4608-c5aa-11e9-a4d4-005056a061f1",
      resourceCrn: null,
      serviceName: "security-advisor",
      serviceCrn: null,
      clusterName: "clusterhub",
      namespaceName: "Excludes: [kube-*], Includes: [default]"
    },
    securityClassification: {
      securityStandards: ["NIST"],
      securityCategories: ["SystemAndInformationIntegrity"],
      securityControl: "VA"
    },
    __typename: "Occurrence"
  },
  {
    name:
      "id-mycluster-account/providers/security-advisor/occurrences/cluster1-policy-d55a4608-c5aa-11e9-a4d4-005056a061f1",
    shortDescription: "Policy that is not compliant",
    finding: {
      severity: "HIGH",
      certainty: "HIGH",
      networkConnection: null,
      nextSteps: [
        {
          title:
            "View the details for the compliance problem in the occurrence of the findings.",
          url: null
        }
      ],
      dataTransferred: null
    },
    reportedBy: {
      id: "mcm-policy-adapter",
      title: "Security Advisor MCM Policy Findings Adapter",
      url: null
    },
    context: {
      accountId: "id-mycluster-account",
      region: "cluster1",
      resourceType: "Policy",
      resourceName: "1566567286588-policy-test",
      resourceId: "d55a4608-c5aa-11e9-a4d4-005056a061f1",
      resourceCrn: null,
      serviceName: "security-advisor",
      serviceCrn: null,
      clusterName: "cluster1",
      namespaceName: "Excludes: [kube-*], Includes: [default]"
    },
    securityClassification: {
      securityStandards: ["NIST"],
      securityCategories: ["SystemAndInformationIntegrity"],
      securityControl: "VA"
    },
    __typename: "Occurrence"
  },
  {
    name:
      "id-mycluster-account/providers/security-advisor/occurrences/cluster1-policy-da004294-c5aa-11e9-a4d4-005056a061f1",
    shortDescription: "Policy that is not compliant",
    finding: {
      severity: "HIGH",
      certainty: "HIGH",
      networkConnection: null,
      nextSteps: [
        {
          title:
            "View the details for the compliance problem in the occurrence of the findings.",
          url: null
        }
      ],
      dataTransferred: null
    },
    reportedBy: {
      id: "mcm-policy-adapter",
      title: "Security Advisor MCM Policy Findings Adapter",
      url: null
    },
    context: {
      accountId: "id-mycluster-account",
      region: "cluster1",
      resourceType: "Policy",
      resourceName: "1566567294339-policy-test",
      resourceId: "da004294-c5aa-11e9-a4d4-005056a061f1",
      resourceCrn: null,
      serviceName: "security-advisor",
      serviceCrn: null,
      clusterName: "cluster1",
      namespaceName: "Excludes: [kube-*], Includes: [default]"
    },
    securityClassification: {
      securityStandards: ["NIST"],
      securityCategories: ["SystemAndInformationIntegrity"],
      securityControl: "VA"
    },
    __typename: "Occurrence"
  },
  {
    name:
      "id-mycluster-account/providers/security-advisor/occurrences/cluster1-policy-c798e46b-c5aa-11e9-a4d4-005056a061f1",
    shortDescription: "Policy that is not compliant",
    finding: {
      severity: "HIGH",
      certainty: "HIGH",
      networkConnection: null,
      nextSteps: [
        {
          title:
            "View the details for the compliance problem in the occurrence of the findings.",
          url: null
        }
      ],
      dataTransferred: null
    },
    reportedBy: {
      id: "mcm-policy-adapter",
      title: "Security Advisor MCM Policy Findings Adapter",
      url: null
    },
    context: {
      accountId: "id-mycluster-account",
      region: "cluster1",
      resourceType: "Policy",
      resourceName: "1566567264757-policy-test",
      resourceId: "c798e46b-c5aa-11e9-a4d4-005056a061f1",
      resourceCrn: null,
      serviceName: "security-advisor",
      serviceCrn: null,
      clusterName: "cluster1",
      namespaceName: "Excludes: [kube-*], Includes: [default]"
    },
    securityClassification: {
      securityStandards: ["NIST"],
      securityCategories: ["SystemAndInformationIntegrity"],
      securityControl: "VA"
    },
    __typename: "Occurrence"
  },
  {
    name:
      "id-mycluster-account/providers/security-advisor/occurrences/cluster1-policy-9373aa2e-c517-11e9-a4d4-005056a061f1",
    shortDescription: "Policy that is not compliant",
    finding: {
      severity: "HIGH",
      certainty: "HIGH",
      networkConnection: null,
      nextSteps: [
        {
          title:
            "View the details for the compliance problem in the occurrence of the findings.",
          url: null
        }
      ],
      dataTransferred: null
    },
    reportedBy: {
      id: "mcm-policy-adapter",
      title: "Security Advisor MCM Policy Findings Adapter",
      url: null
    },
    context: {
      accountId: "id-mycluster-account",
      region: "cluster1",
      resourceType: "Policy",
      resourceName: "1566504039600-policy-test",
      resourceId: "9373aa2e-c517-11e9-a4d4-005056a061f1",
      resourceCrn: null,
      serviceName: "security-advisor",
      serviceCrn: null,
      clusterName: "cluster1",
      namespaceName: "Excludes: [kube-*], Includes: [default]"
    },
    securityClassification: {
      securityStandards: ["NIST"],
      securityCategories: ["SystemAndInformationIntegrity"],
      securityControl: "VA"
    },
    __typename: "Occurrence"
  },
  {
    name:
      "id-mycluster-account/providers/security-advisor/occurrences/cluster1-policy-e0d42c54-c4f6-11e9-a4d4-005056a061f1",
    shortDescription: "Policy that is not compliant",
    finding: {
      severity: "HIGH",
      certainty: "HIGH",
      networkConnection: null,
      nextSteps: [
        {
          title:
            "View the details for the compliance problem in the occurrence of the findings.",
          url: null
        }
      ],
      dataTransferred: null
    },
    reportedBy: {
      id: "mcm-policy-adapter",
      title: "Security Advisor MCM Policy Findings Adapter",
      url: null
    },
    context: {
      accountId: "id-mycluster-account",
      region: "cluster1",
      resourceType: "Policy",
      resourceName: "1566489996328-policy-test",
      resourceId: "e0d42c54-c4f6-11e9-a4d4-005056a061f1",
      resourceCrn: null,
      serviceName: "security-advisor",
      serviceCrn: null,
      clusterName: "cluster1",
      namespaceName: "Excludes: [kube-*], Includes: [default]"
    },
    securityClassification: {
      securityStandards: ["NIST"],
      securityCategories: ["SystemAndInformationIntegrity"],
      securityControl: "VA"
    },
    __typename: "Occurrence"
  },
  {
    name:
      "id-mycluster-account/providers/security-advisor/occurrences/clusterhub-policy-869f2131-c4f3-11e9-a4d4-005056a061f1",
    shortDescription: "Policy that is not compliant",
    finding: {
      severity: "HIGH",
      certainty: "HIGH",
      networkConnection: null,
      nextSteps: [
        {
          title:
            "View the details for the compliance problem in the occurrence of the findings.",
          url: null
        }
      ],
      dataTransferred: null
    },
    reportedBy: {
      id: "mcm-policy-adapter",
      title: "Security Advisor MCM Policy Findings Adapter",
      url: null
    },
    context: {
      accountId: "id-mycluster-account",
      region: "clusterhub",
      resourceType: "Policy",
      resourceName: "1566488554311-policy-test",
      resourceId: "869f2131-c4f3-11e9-a4d4-005056a061f1",
      resourceCrn: null,
      serviceName: "security-advisor",
      serviceCrn: null,
      clusterName: "clusterhub",
      namespaceName: "Excludes: [kube-*], Includes: [default]"
    },
    securityClassification: {
      securityStandards: ["NIST"],
      securityCategories: ["SystemAndInformationIntegrity"],
      securityControl: "VA"
    },
    __typename: "Occurrence"
  },
  {
    name:
      "id-mycluster-account/providers/security-advisor/occurrences/cluster1-policy-869f2131-c4f3-11e9-a4d4-005056a061f1",
    shortDescription: "Policy that is not compliant",
    finding: {
      severity: "HIGH",
      certainty: "HIGH",
      networkConnection: null,
      nextSteps: [
        {
          title:
            "View the details for the compliance problem in the occurrence of the findings.",
          url: null
        }
      ],
      dataTransferred: null
    },
    reportedBy: {
      id: "mcm-policy-adapter",
      title: "Security Advisor MCM Policy Findings Adapter",
      url: null
    },
    context: {
      accountId: "id-mycluster-account",
      region: "cluster1",
      resourceType: "Policy",
      resourceName: "1566488554311-policy-test",
      resourceId: "869f2131-c4f3-11e9-a4d4-005056a061f1",
      resourceCrn: null,
      serviceName: "security-advisor",
      serviceCrn: null,
      clusterName: "cluster1",
      namespaceName: "Excludes: [kube-*], Includes: [default]"
    },
    securityClassification: {
      securityStandards: ["NIST"],
      securityCategories: ["SystemAndInformationIntegrity"],
      securityControl: "VA"
    },
    __typename: "Occurrence"
  },
  {
    name:
      "id-mycluster-account/providers/security-advisor/occurrences/clusterhub-policy-d8d9ab31-c4f0-11e9-a4d4-005056a061f1",
    shortDescription: "Policy that is not compliant",
    finding: {
      severity: "LOW",
      certainty: "HIGH",
      networkConnection: null,
      nextSteps: [
        {
          title:
            "View the details for the compliance problem in the occurrence of the findings.",
          url: null
        }
      ],
      dataTransferred: null
    },
    reportedBy: {
      id: "mcm-policy-adapter",
      title: "Security Advisor MCM Policy Findings Adapter",
      url: null
    },
    context: {
      accountId: "id-mycluster-account",
      region: "clusterhub",
      resourceType: "Policy",
      resourceName: "1566487408129-policy-test",
      resourceId: "d8d9ab31-c4f0-11e9-a4d4-005056a061f1",
      resourceCrn: null,
      serviceName: "security-advisor",
      serviceCrn: null,
      clusterName: "clusterhub",
      namespaceName: "Excludes: [kube-*], Includes: [default]"
    },
    securityClassification: {
      securityStandards: ["NIST"],
      securityCategories: ["SystemAndInformationIntegrity"],
      securityControl: "VA"
    },
    __typename: "Occurrence"
  },
  {
    name:
      "id-mycluster-account/providers/security-advisor/occurrences/clusterhub-policy-122d672e-c4e9-11e9-a4d4-005056a061f1",
    shortDescription: "Policy that is not compliant",
    finding: {
      severity: "HIGH",
      certainty: "HIGH",
      networkConnection: null,
      nextSteps: [
        {
          title:
            "View the details for the compliance problem in the occurrence of the findings.",
          url: null
        }
      ],
      dataTransferred: null
    },
    reportedBy: {
      id: "mcm-policy-adapter",
      title: "Security Advisor MCM Policy Findings Adapter",
      url: null
    },
    context: {
      accountId: "id-mycluster-account",
      region: "clusterhub",
      resourceType: "Policy",
      resourceName: "1566484061272-policy-test",
      resourceId: "122d672e-c4e9-11e9-a4d4-005056a061f1",
      resourceCrn: null,
      serviceName: "security-advisor",
      serviceCrn: null,
      clusterName: "clusterhub",
      namespaceName: "Excludes: [kube-*], Includes: [default]"
    },
    securityClassification: {
      securityStandards: ["NIST"],
      securityCategories: ["SystemAndInformationIntegrity"],
      securityControl: "VA"
    },
    __typename: "Occurrence"
  },
  {
    name:
      "id-mycluster-account/providers/security-advisor/occurrences/cluster1-policy-122d672e-c4e9-11e9-a4d4-005056a061f1",
    shortDescription: "Policy that is not compliant",
    finding: {
      severity: "LOW",
      certainty: "HIGH",
      networkConnection: null,
      nextSteps: [
        {
          title:
            "View the details for the compliance problem in the occurrence of the findings.",
          url: null
        }
      ],
      dataTransferred: null
    },
    reportedBy: {
      id: "mcm-policy-adapter",
      title: "Security Advisor MCM Policy Findings Adapter",
      url: null
    },
    context: {
      accountId: "id-mycluster-account",
      region: "cluster1",
      resourceType: "Policy",
      resourceName: "1566484061272-policy-test",
      resourceId: "122d672e-c4e9-11e9-a4d4-005056a061f1",
      resourceCrn: null,
      serviceName: "security-advisor",
      serviceCrn: null,
      clusterName: "cluster1",
      namespaceName: "Excludes: [kube-*], Includes: [default]"
    },
    securityClassification: {
      securityStandards: ["NIST"],
      securityCategories: ["SystemAndInformationIntegrity"],
      securityControl: "VA"
    },
    __typename: "Occurrence"
  },
  {
    name:
      "id-mycluster-account/providers/security-advisor/occurrences/cluster1-policy-c4ed8659-c4e8-11e9-a4d4-005056a061f1",
    shortDescription: "Policy that is not compliant",
    finding: {
      severity: "HIGH",
      certainty: "HIGH",
      networkConnection: null,
      nextSteps: [
        {
          title:
            "View the details for the compliance problem in the occurrence of the findings.",
          url: null
        }
      ],
      dataTransferred: null
    },
    reportedBy: {
      id: "mcm-policy-adapter",
      title: "Security Advisor MCM Policy Findings Adapter",
      url: null
    },
    context: {
      accountId: "id-mycluster-account",
      region: "cluster1",
      resourceType: "Policy",
      resourceName: "1566483933161-policy-test",
      resourceId: "c4ed8659-c4e8-11e9-a4d4-005056a061f1",
      resourceCrn: null,
      serviceName: "security-advisor",
      serviceCrn: null,
      clusterName: "cluster1",
      namespaceName: "Excludes: [kube-*], Includes: [default]"
    },
    securityClassification: {
      securityStandards: ["NIST"],
      securityCategories: ["SystemAndInformationIntegrity"],
      securityControl: "VA"
    },
    __typename: "Occurrence"
  },
  {
    name:
      "id-mycluster-account/providers/security-advisor/occurrences/cluster1-policy-d5fdd274-c4dd-11e9-a4d4-005056a061f1",
    shortDescription: "Policy that is not compliant",
    finding: {
      severity: "HIGH",
      certainty: "HIGH",
      networkConnection: null,
      nextSteps: [
        {
          title:
            "View the details for the compliance problem in the occurrence of the findings.",
          url: null
        }
      ],
      dataTransferred: null
    },
    reportedBy: {
      id: "mcm-policy-adapter",
      title: "Security Advisor MCM Policy Findings Adapter",
      url: null
    },
    context: {
      accountId: "id-mycluster-account",
      region: "cluster1",
      resourceType: "Policy",
      resourceName: "1566479239297-policy-test",
      resourceId: "d5fdd274-c4dd-11e9-a4d4-005056a061f1",
      resourceCrn: null,
      serviceName: "security-advisor",
      serviceCrn: null,
      clusterName: "cluster1",
      namespaceName: "Excludes: [kube-*], Includes: [default]"
    },
    securityClassification: {
      securityStandards: ["NIST"],
      securityCategories: ["SystemAndInformationIntegrity"],
      securityControl: "VA"
    },
    __typename: "Occurrence"
  },
  {
    name:
      "id-mycluster-account/providers/security-advisor/occurrences/clusterhub-policy-d5fdd274-c4dd-11e9-a4d4-005056a061f1",
    shortDescription: "Policy that is not compliant",
    finding: {
      severity: "HIGH",
      certainty: "HIGH",
      networkConnection: null,
      nextSteps: [
        {
          title:
            "View the details for the compliance problem in the occurrence of the findings.",
          url: null
        }
      ],
      dataTransferred: null
    },
    reportedBy: {
      id: "mcm-policy-adapter",
      title: "Security Advisor MCM Policy Findings Adapter",
      url: null
    },
    context: {
      accountId: "id-mycluster-account",
      region: "clusterhub",
      resourceType: "Policy",
      resourceName: "1566479239297-policy-test",
      resourceId: "d5fdd274-c4dd-11e9-a4d4-005056a061f1",
      resourceCrn: null,
      serviceName: "security-advisor",
      serviceCrn: null,
      clusterName: "clusterhub",
      namespaceName: "Excludes: [kube-*], Includes: [default]"
    },
    securityClassification: {
      securityStandards: ["NIST"],
      securityCategories: ["SystemAndInformationIntegrity"],
      securityControl: "VA"
    },
    __typename: "Occurrence"
  },
  {
    name:
      "id-mycluster-account/providers/security-advisor/occurrences/cluster1-policy-3abdde68-c386-11e9-a4d4-005056a061f1",
    shortDescription: "Policy that is not compliant",
    finding: {
      severity: "HIGH",
      certainty: "HIGH",
      networkConnection: null,
      nextSteps: [
        {
          title:
            "View the details for the compliance problem in the occurrence of the findings.",
          url: null
        }
      ],
      dataTransferred: null
    },
    reportedBy: {
      id: "mcm-policy-adapter",
      title: "Security Advisor MCM Policy Findings Adapter",
      url: null
    },
    context: {
      accountId: "id-mycluster-account",
      region: "cluster1",
      resourceType: "Policy",
      resourceName: "1566331664952-policy-test",
      resourceId: "3abdde68-c386-11e9-a4d4-005056a061f1",
      resourceCrn: null,
      serviceName: "security-advisor",
      serviceCrn: null,
      clusterName: "cluster1",
      namespaceName: "Excludes: [kube-*], Includes: [default]"
    },
    securityClassification: {
      securityStandards: ["NIST"],
      securityCategories: ["SystemAndInformationIntegrity"],
      securityControl: "VA"
    },
    __typename: "Occurrence"
  }
];

export const staticResourceData = {
  defaultSortField: "metadata.name",
  primaryKey: "metadata.name",
  secondaryKey: "metadata.namespace",
  tableActions: [
    "table.actions.policy.sidepanel",
    "table.actions.edit",
    "table.actions.remove"
  ],
  tableKeys: [
    {
      msgKey: "table.header.policy.name",
      resourceKey: "metadata.name",
      transformFunction: item => item.metadata.name
    },
    {
      msgKey: "table.header.remediation",
      resourceKey: "remediation"
    },
    {
      msgKey: "table.header.cluster.violation",
      resourceKey: "clusterCompliant"
    },
    {
      msgKey: "table.header.standards",
      resourceKey: 'metadata.annotations["policy.mcm.ibm.com/standards"]'
    },
    {
      msgKey: "table.header.controls",
      resourceKey: 'metadata.annotations["policy.mcm.ibm.com/controls"]'
    },
    {
      msgKey: "table.header.categories",
      resourceKey: 'metadata.annotations["policy.mcm.ibm.com/categories"]'
    }
  ],
  policyViolatedSidePanel: {
    title: "policySide",
    headerRows: [
      "",
      "table.header.cluster.name",
      "table.header.rule.violation",
      ""
    ],
    subHeaders: [
      "table.header.name",
      "table.header.message",
      "table.header.reason"
    ],
    rows: [
      {
        cells: [
          {
            resourceKey: "metadata.name"
          },
          {
            resourceKey: "violated"
          },
          {
            resourceKey: "spec.consoleURL"
          }
        ]
      }
    ],
    tableKeys: [
      {
        msgKey: "table.header.policy.name",
        resourceKey: "metadata.name",
        transformFunction: item => item.metadata.name
      },
      {
        msgKey: "table.header.remediation",
        resourceKey: "remediation"
      },
      {
        msgKey: "table.header.cluster.violation",
        resourceKey: "clusterCompliant"
      },
      {
        msgKey: "table.header.standards",
        resourceKey: 'metadata.annotations["policy.mcm.ibm.com/standards"]'
      },
      {
        msgKey: "table.header.controls",
        resourceKey: 'metadata.annotations["policy.mcm.ibm.com/controls"]'
      },
      {
        msgKey: "table.header.categories",
        resourceKey: 'metadata.annotations["policy.mcm.ibm.com/categories"]'
      }
    ]
  }
};

export const items = {
  "1569249226915-policy-test-mcm": {
    metadata: {
      name: "1569249226915-policy-test",
      namespace: "mcm",
      selfLink:
        "/apis/policy.mcm.ibm.com/v1alpha1/namespaces/mcm/policies/1569249226915-policy-test",
      annotations: {
        "policy.mcm.ibm.com/categories": "SystemAndInformationIntegrity",
        "policy.mcm.ibm.com/controls": "VA",
        "policy.mcm.ibm.com/standards": "NIST",
        "seed-generation": "1"
      },
      resourceVersion: "8073768",
      __typename: "Metadata"
    },
    name: "1569249226915-policy-test",
    namespace: "mcm",
    raw: {
      apiVersion: "policy.mcm.ibm.com/v1alpha1",
      kind: "Policy",
      metadata: {
        annotations: {
          "policy.mcm.ibm.com/categories": "SystemAndInformationIntegrity",
          "policy.mcm.ibm.com/controls": "VA",
          "policy.mcm.ibm.com/standards": "NIST",
          "seed-generation": "1"
        },
        creationTimestamp: "2019-09-23T14:34:25Z",
        finalizers: [
          "propagator.finalizer.mcm.ibm.com",
          "finalizer.policies.ibm.com"
        ],
        generation: 14,
        name: "1569249226915-policy-test",
        namespace: "mcm",
        resourceVersion: "8073768",
        selfLink:
          "/apis/policy.mcm.ibm.com/v1alpha1/namespaces/mcm/policies/1569249226915-policy-test",
        uid: "3dc879b5-de0f-11e9-a1ed-005056a0b88e"
      },
      spec: {
        complianceType: "musthave",
        namespaces: {
          exclude: ["kube-*"],
          include: ["default"]
        },
        "object-templates": [
          {
            complianceType: "musthave",
            objectDefinition: {
              apiVersion: "v1",
              kind: "Namespace",
              metadata: {
                name: "prod"
              }
            },
            status: {
              Validity: {}
            }
          }
        ],
        remediationAction: "inform"
      },
      status: {
        placementBindings: ["binding-1569249226915-policy-test"],
        placementPolicies: ["placement-1569249226915-policy-test"],
        status: {
          cluster1: {
            aggregatePoliciesStatus: {
              "1569249226915-policy-test": {
                compliant: "NonCompliant"
              }
            },
            clustername: "cluster1",
            compliant: "NonCompliant"
          },
          clusterhub: {
            aggregatePoliciesStatus: {
              "1569249226915-policy-test": {
                compliant: "NonCompliant"
              }
            },
            clustername: "clusterhub",
            compliant: "NonCompliant"
          }
        }
      }
    },
    remediation: "inform",
    policyCompliant: "2/2",
    clusterCompliant: "2/2",
    placementPolicies: [
      {
        metadata: {
          name: "placement-1569249226915-policy-test",
          selfLink:
            "/apis/mcm.ibm.com/v1alpha1/namespaces/mcm/placementpolicies/placement-1569249226915-policy-test",
          __typename: "Metadata"
        },
        __typename: "PlacementPolicy"
      }
    ],
    placementBindings: [
      {
        metadata: {
          name: "binding-1569249226915-policy-test",
          selfLink:
            "/apis/mcm.ibm.com/v1alpha1/namespaces/mcm/placementbindings/binding-1569249226915-policy-test",
          __typename: "Metadata"
        },
        __typename: "PlacementBinding"
      }
    ],
    __typename: "Compliance",
    subItems: [
      {
        name: "policy.pb",
        items: ["binding-1569249226915-policy-test"]
      },
      {
        name: "policy.pp",
        items: ["placement-1569249226915-policy-test"]
      }
    ],
    custom: {
      "metadata.name": {
        key: null,
        ref: null,
        props: {
          to: "/multicloud/policies/all/1569249226915-policy-test",
          children: "1569249226915-policy-test",
          replace: false
        },
        _owner: null,
        _store: {}
      },
      'metadata.annotations["policy.mcm.ibm.com/standards"]': "NIST",
      'metadata.annotations["policy.mcm.ibm.com/controls"]': "VA",
      'metadata.annotations["policy.mcm.ibm.com/categories"]':
        "System And Information Integrity"
    }
  },
  "policy-auditpolicy-mcm": {
    metadata: {
      name: "policy-auditpolicy",
      namespace: "mcm",
      selfLink:
        "/apis/policy.mcm.ibm.com/v1alpha1/namespaces/mcm/policies/policy-auditpolicy",
      annotations: {
        "policy.mcm.ibm.com/categories": "SystemAndCommunicationsProtections",
        "policy.mcm.ibm.com/controls": "secretEncryption",
        "policy.mcm.ibm.com/standards": "FISMA",
        "seed-generation": "1"
      },
      resourceVersion: "7485482",
      __typename: "Metadata"
    },
    name: "policy-auditpolicy",
    namespace: "mcm",
    raw: {
      apiVersion: "policy.mcm.ibm.com/v1alpha1",
      kind: "Policy",
      metadata: {
        annotations: {
          "policy.mcm.ibm.com/categories": "SystemAndCommunicationsProtections",
          "policy.mcm.ibm.com/controls": "secretEncryption",
          "policy.mcm.ibm.com/standards": "FISMA",
          "seed-generation": "1"
        },
        creationTimestamp: "2019-09-09T13:41:04Z",
        finalizers: [
          "finalizer.policies.ibm.com",
          "propagator.finalizer.mcm.ibm.com"
        ],
        generation: 24,
        name: "policy-auditpolicy",
        namespace: "mcm",
        resourceVersion: "7485482",
        selfLink:
          "/apis/policy.mcm.ibm.com/v1alpha1/namespaces/mcm/policies/policy-auditpolicy",
        uid: "786625e5-d307-11e9-a1ed-005056a0b88e"
      },
      spec: {
        complianceType: "musthave",
        namespaces: {
          exclude: ["kube-*"],
          include: ["default"]
        },
        "policy-templates": [
          {
            objectDefinition: {
              apiVersion: "audit.policies.ibm.com/v1alpha1",
              kind: "AuditPolicy",
              metadata: {
                label: {
                  category: "System-Integrity"
                },
                name: "policy-auditpolicy-example"
              },
              spec: {
                clusterAuditPolicy: {
                  auditPolicyRules: {
                    "auth-idp": "validate",
                    helmapi: "validate",
                    kubernetes: "ignore",
                    "platform-api": "validate",
                    "platform-identity-manager": "validate",
                    "platform-identity-provider": "validate",
                    "vulnerability-advisor": "validate"
                  }
                },
                namespaceSelector: {
                  exclude: ["kube-system"],
                  include: ["default", "kube-*"]
                },
                remediationAction: "inform",
                severity: "low"
              }
            },
            status: {
              Validity: {}
            }
          }
        ],
        remediationAction: "inform"
      },
      status: {
        placementBindings: ["binding-policy-auditpolicy"],
        placementPolicies: ["placement-policy-auditpolicy"],
        status: {
          clusterhub: {
            aggregatePoliciesStatus: {
              "policy-auditpolicy": {
                compliant: "Compliant"
              }
            },
            clustername: "clusterhub",
            compliant: "Compliant"
          }
        }
      }
    },
    remediation: "inform",
    policyCompliant: "0/1",
    clusterCompliant: "0/1",
    placementPolicies: [
      {
        metadata: {
          name: "placement-policy-auditpolicy",
          selfLink:
            "/apis/mcm.ibm.com/v1alpha1/namespaces/mcm/placementpolicies/placement-policy-auditpolicy",
          __typename: "Metadata"
        },
        __typename: "PlacementPolicy"
      }
    ],
    placementBindings: [
      {
        metadata: {
          name: "binding-policy-auditpolicy",
          selfLink:
            "/apis/mcm.ibm.com/v1alpha1/namespaces/mcm/placementbindings/binding-policy-auditpolicy",
          __typename: "Metadata"
        },
        __typename: "PlacementBinding"
      }
    ],
    __typename: "Compliance",
    subItems: [
      {
        name: "policy.pb",
        items: ["binding-policy-auditpolicy"]
      },
      {
        name: "policy.pp",
        items: ["placement-policy-auditpolicy"]
      }
    ],
    custom: {
      "metadata.name": {
        key: null,
        ref: null,
        props: {
          to: "/multicloud/policies/all/policy-auditpolicy",
          children: "policy-auditpolicy",
          replace: false
        },
        _owner: null,
        _store: {}
      },
      'metadata.annotations["policy.mcm.ibm.com/standards"]': "FISMA",
      'metadata.annotations["policy.mcm.ibm.com/controls"]':
        "Secret Encryption",
      'metadata.annotations["policy.mcm.ibm.com/categories"]':
        "System And Communications Protections"
    }
  },
  "policy-certificatepolicy-mcm": {
    metadata: {
      name: "policy-certificatepolicy",
      namespace: "mcm",
      selfLink:
        "/apis/policy.mcm.ibm.com/v1alpha1/namespaces/mcm/policies/policy-certificatepolicy",
      annotations: {
        "policy.mcm.ibm.com/categories": "SystemAndInformationIntegrity",
        "policy.mcm.ibm.com/controls": "CertManager",
        "policy.mcm.ibm.com/standards": "FISMA, PCI",
        "seed-generation": "1"
      },
      resourceVersion: "8280979",
      __typename: "Metadata"
    },
    name: "policy-certificatepolicy",
    namespace: "mcm",
    raw: {
      apiVersion: "policy.mcm.ibm.com/v1alpha1",
      kind: "Policy",
      metadata: {
        annotations: {
          "policy.mcm.ibm.com/categories": "SystemAndInformationIntegrity",
          "policy.mcm.ibm.com/controls": "CertManager",
          "policy.mcm.ibm.com/standards": "FISMA, PCI",
          "seed-generation": "1"
        },
        creationTimestamp: "2019-09-03T18:34:05Z",
        finalizers: [
          "finalizer.policies.ibm.com",
          "propagator.finalizer.mcm.ibm.com"
        ],
        generation: 81,
        name: "policy-certificatepolicy",
        namespace: "mcm",
        resourceVersion: "8280979",
        selfLink:
          "/apis/policy.mcm.ibm.com/v1alpha1/namespaces/mcm/policies/policy-certificatepolicy",
        uid: "68d772b1-ce79-11e9-a1ed-005056a0b88e"
      },
      spec: {
        complianceType: "musthave",
        namespaces: {
          exclude: ["kube-*"],
          include: ["default"]
        },
        "policy-templates": [
          {
            objectDefinition: {
              apiVersion: "policies.ibm.com/v1alpha1",
              kind: "CertificatePolicy",
              metadata: {
                label: {
                  category: "System-Integrity"
                },
                name: "certificate-policy-example"
              },
              spec: {
                minimumDuration: "300h",
                namespaceSelector: {
                  exclude: [],
                  include: ["default"]
                },
                remediationAction: "inform",
                severity: "low"
              }
            },
            status: {
              Validity: {}
            }
          }
        ],
        remediationAction: "inform"
      },
      status: {
        placementBindings: ["binding-policy-certificatepolicy"],
        placementPolicies: ["placement-policy-certificatepolicy"],
        status: {
          cluster1: {
            aggregatePoliciesStatus: {
              "policy-certificatepolicy": {
                compliant: "Compliant"
              }
            },
            clustername: "cluster1",
            compliant: "Compliant"
          },
          clusterhub: {
            aggregatePoliciesStatus: {
              "policy-certificatepolicy": {
                compliant: "Compliant"
              }
            },
            clustername: "clusterhub",
            compliant: "Compliant"
          }
        }
      }
    },
    remediation: "inform",
    policyCompliant: "0/2",
    clusterCompliant: "0/2",
    placementPolicies: [
      {
        metadata: {
          name: "placement-policy-certificatepolicy",
          selfLink:
            "/apis/mcm.ibm.com/v1alpha1/namespaces/mcm/placementpolicies/placement-policy-certificatepolicy",
          __typename: "Metadata"
        },
        __typename: "PlacementPolicy"
      }
    ],
    placementBindings: [
      {
        metadata: {
          name: "binding-policy-certificatepolicy",
          selfLink:
            "/apis/mcm.ibm.com/v1alpha1/namespaces/mcm/placementbindings/binding-policy-certificatepolicy",
          __typename: "Metadata"
        },
        __typename: "PlacementBinding"
      }
    ],
    __typename: "Compliance",
    subItems: [
      {
        name: "policy.pb",
        items: ["binding-policy-certificatepolicy"]
      },
      {
        name: "policy.pp",
        items: ["placement-policy-certificatepolicy"]
      }
    ],
    custom: {
      "metadata.name": {
        key: null,
        ref: null,
        props: {
          to: "/multicloud/policies/all/policy-certificatepolicy",
          children: "policy-certificatepolicy",
          replace: false
        },
        _owner: null,
        _store: {}
      },
      'metadata.annotations["policy.mcm.ibm.com/standards"]': "FISMA, PCI",
      'metadata.annotations["policy.mcm.ibm.com/controls"]': "Cert Manager",
      'metadata.annotations["policy.mcm.ibm.com/categories"]':
        "System And Information Integrity"
    }
  },
  "policy-iampolicy-mcm": {
    metadata: {
      name: "policy-iampolicy",
      namespace: "mcm",
      selfLink:
        "/apis/policy.mcm.ibm.com/v1alpha1/namespaces/mcm/policies/policy-iampolicy",
      annotations: {
        "policy.mcm.ibm.com/categories": "SystemAndCommunicationsProtections",
        "policy.mcm.ibm.com/controls": "MutationAdvisor",
        "policy.mcm.ibm.com/standards": "FISMA",
        "seed-generation": "1"
      },
      resourceVersion: "8280904",
      __typename: "Metadata"
    },
    name: "policy-iampolicy",
    namespace: "mcm",
    raw: {
      apiVersion: "policy.mcm.ibm.com/v1alpha1",
      kind: "Policy",
      metadata: {
        annotations: {
          "policy.mcm.ibm.com/categories": "SystemAndCommunicationsProtections",
          "policy.mcm.ibm.com/controls": "MutationAdvisor",
          "policy.mcm.ibm.com/standards": "FISMA",
          "seed-generation": "1"
        },
        creationTimestamp: "2019-08-30T14:58:31Z",
        finalizers: [
          "finalizer.policies.ibm.com",
          "propagator.finalizer.mcm.ibm.com"
        ],
        generation: 47,
        name: "policy-iampolicy",
        namespace: "mcm",
        resourceVersion: "8280904",
        selfLink:
          "/apis/policy.mcm.ibm.com/v1alpha1/namespaces/mcm/policies/policy-iampolicy",
        uid: "a18d825a-cb36-11e9-a1eb-005056a0b88e"
      },
      spec: {
        complianceType: "musthave",
        namespaces: {
          exclude: ["kube-*"],
          include: ["default"]
        },
        "policy-templates": [
          {
            objectDefinition: {
              apiVersion: "iam.policies.ibm.com/v1alpha1",
              kind: "IamPolicy",
              metadata: {
                label: {
                  category: "System-Integrity"
                },
                name: "iam-policy-example"
              },
              spec: {
                maxClusterRoleBindingUsers: 5,
                maxRoleBindingViolationsPerNamespace: 2,
                namespaceSelector: {
                  exclude: ["kube-system"],
                  include: ["default", "kube-*"]
                },
                remediationAction: "inform",
                severity: "medium"
              }
            },
            status: {
              Validity: {}
            }
          }
        ],
        remediationAction: "inform"
      },
      status: {
        placementBindings: ["binding-policy-iampolicy"],
        placementPolicies: ["placement-policy-iampolicy"],
        status: {
          cluster1: {
            aggregatePoliciesStatus: {
              "policy-iampolicy": {
                compliant: "NonCompliant"
              }
            },
            clustername: "cluster1",
            compliant: "NonCompliant"
          },
          clusterhub: {
            aggregatePoliciesStatus: {
              "policy-iampolicy": {}
            },
            clustername: "clusterhub"
          }
        }
      }
    },
    remediation: "inform",
    policyCompliant: "2/2",
    clusterCompliant: "2/2",
    placementPolicies: [
      {
        metadata: {
          name: "placement-policy-iampolicy",
          selfLink:
            "/apis/mcm.ibm.com/v1alpha1/namespaces/mcm/placementpolicies/placement-policy-iampolicy",
          __typename: "Metadata"
        },
        __typename: "PlacementPolicy"
      }
    ],
    placementBindings: [
      {
        metadata: {
          name: "binding-policy-iampolicy",
          selfLink:
            "/apis/mcm.ibm.com/v1alpha1/namespaces/mcm/placementbindings/binding-policy-iampolicy",
          __typename: "Metadata"
        },
        __typename: "PlacementBinding"
      }
    ],
    __typename: "Compliance",
    subItems: [
      {
        name: "policy.pb",
        items: ["binding-policy-iampolicy"]
      },
      {
        name: "policy.pp",
        items: ["placement-policy-iampolicy"]
      }
    ],
    custom: {
      "metadata.name": {
        key: null,
        ref: null,
        props: {
          to: "/multicloud/policies/all/policy-iampolicy",
          children: "policy-iampolicy",
          replace: false
        },
        _owner: null,
        _store: {}
      },
      'metadata.annotations["policy.mcm.ibm.com/standards"]': "FISMA",
      'metadata.annotations["policy.mcm.ibm.com/controls"]': "Mutation Advisor",
      'metadata.annotations["policy.mcm.ibm.com/categories"]':
        "System And Communications Protections"
    }
  },
  "policy-image-mcm": {
    metadata: {
      name: "policy-image",
      namespace: "mcm",
      selfLink:
        "/apis/policy.mcm.ibm.com/v1alpha1/namespaces/mcm/policies/policy-image",
      annotations: {
        "policy.mcm.ibm.com/categories": "SystemAndCommunicationsProtections",
        "policy.mcm.ibm.com/controls": "VA",
        "policy.mcm.ibm.com/standards": "FISMA",
        "seed-generation": "4"
      },
      resourceVersion: "8073784",
      __typename: "Metadata"
    },
    name: "policy-image",
    namespace: "mcm",
    raw: {
      apiVersion: "policy.mcm.ibm.com/v1alpha1",
      kind: "Policy",
      metadata: {
        annotations: {
          "policy.mcm.ibm.com/categories": "SystemAndCommunicationsProtections",
          "policy.mcm.ibm.com/controls": "VA",
          "policy.mcm.ibm.com/standards": "FISMA",
          "seed-generation": "4"
        },
        creationTimestamp: "2019-08-30T13:46:19Z",
        finalizers: [
          "finalizer.policies.ibm.com",
          "propagator.finalizer.mcm.ibm.com"
        ],
        generation: 70,
        name: "policy-image",
        namespace: "mcm",
        resourceVersion: "8073784",
        selfLink:
          "/apis/policy.mcm.ibm.com/v1alpha1/namespaces/mcm/policies/policy-image",
        uid: "8be1a627-cb2c-11e9-a1eb-005056a0b88e"
      },
      spec: {
        complianceType: "musthave",
        namespaces: {
          exclude: ["kube-*"],
          include: ["default"]
        },
        "object-templates": [
          {
            complianceType: "musthave",
            objectDefinition: {
              apiVersion: "securityenforcement.admission.cloud.ibm.com/v1beta1",
              kind: "ClusterImagePolicy",
              metadata: {
                name: "mongo"
              },
              spec: {
                repositories: [
                  {
                    name: "docker.io/mongo"
                  }
                ]
              }
            },
            status: {
              Validity: {}
            }
          }
        ],
        remediationAction: "inform"
      },
      status: {
        placementBindings: ["binding-policy-image"],
        placementPolicies: ["placement-policy-image"],
        status: {
          cluster1: {
            aggregatePoliciesStatus: {
              "policy-image": {
                compliant: "NonCompliant"
              }
            },
            clustername: "cluster1",
            compliant: "NonCompliant"
          },
          clusterhub: {
            aggregatePoliciesStatus: {
              "policy-image": {
                compliant: "NonCompliant"
              }
            },
            clustername: "clusterhub",
            compliant: "NonCompliant"
          }
        }
      }
    },
    remediation: "inform",
    policyCompliant: "2/2",
    clusterCompliant: "2/2",
    placementPolicies: [
      {
        metadata: {
          name: "placement-policy-image",
          selfLink:
            "/apis/mcm.ibm.com/v1alpha1/namespaces/mcm/placementpolicies/placement-policy-image",
          __typename: "Metadata"
        },
        __typename: "PlacementPolicy"
      }
    ],
    placementBindings: [
      {
        metadata: {
          name: "binding-policy-image",
          selfLink:
            "/apis/mcm.ibm.com/v1alpha1/namespaces/mcm/placementbindings/binding-policy-image",
          __typename: "Metadata"
        },
        __typename: "PlacementBinding"
      }
    ],
    __typename: "Compliance",
    subItems: [
      {
        name: "policy.pb",
        items: ["binding-policy-image"]
      },
      {
        name: "policy.pp",
        items: ["placement-policy-image"]
      }
    ],
    custom: {
      "metadata.name": {
        key: null,
        ref: null,
        props: {
          to: "/multicloud/policies/all/policy-image",
          children: "policy-image",
          replace: false
        },
        _owner: null,
        _store: {}
      },
      'metadata.annotations["policy.mcm.ibm.com/standards"]': "FISMA",
      'metadata.annotations["policy.mcm.ibm.com/controls"]': "VA",
      'metadata.annotations["policy.mcm.ibm.com/categories"]':
        "System And Communications Protections"
    }
  },
  "policy-limitrange-mcm": {
    metadata: {
      name: "policy-limitrange",
      namespace: "mcm",
      selfLink:
        "/apis/policy.mcm.ibm.com/v1alpha1/namespaces/mcm/policies/policy-limitrange",
      annotations: {
        "policy.mcm.ibm.com/categories": "SystemAndCommunicationsProtections",
        "policy.mcm.ibm.com/controls": "CertManager",
        "policy.mcm.ibm.com/standards": "HIPAA",
        "seed-generation": "1"
      },
      resourceVersion: "8073778",
      __typename: "Metadata"
    },
    name: "policy-limitrange",
    namespace: "mcm",
    raw: {
      apiVersion: "policy.mcm.ibm.com/v1alpha1",
      kind: "Policy",
      metadata: {
        annotations: {
          "policy.mcm.ibm.com/categories": "SystemAndCommunicationsProtections",
          "policy.mcm.ibm.com/controls": "CertManager",
          "policy.mcm.ibm.com/standards": "HIPAA",
          "seed-generation": "1"
        },
        creationTimestamp: "2019-09-04T16:27:02Z",
        finalizers: [
          "propagator.finalizer.mcm.ibm.com",
          "finalizer.policies.ibm.com"
        ],
        generation: 48,
        name: "policy-limitrange",
        namespace: "mcm",
        resourceVersion: "8073778",
        selfLink:
          "/apis/policy.mcm.ibm.com/v1alpha1/namespaces/mcm/policies/policy-limitrange",
        uid: "d358638d-cf30-11e9-a1ed-005056a0b88e"
      },
      spec: {
        complianceType: "musthave",
        namespaces: {
          exclude: ["kube-*"],
          include: ["default"]
        },
        "object-templates": [
          {
            complianceType: "musthave",
            objectDefinition: {
              apiVersion: "v1",
              kind: "LimitRange",
              metadata: {
                name: "mem-limit-range"
              },
              spec: {
                limits: [
                  {
                    default: {
                      memory: "512Mi"
                    },
                    defaultRequest: {
                      memory: "256Mi"
                    },
                    type: "Container"
                  }
                ]
              }
            },
            status: {
              Validity: {}
            }
          }
        ],
        remediationAction: "inform"
      },
      status: {
        placementBindings: ["binding-policy-limitrange"],
        placementPolicies: ["placement-policy-limitrange"],
        status: {
          cluster1: {
            aggregatePoliciesStatus: {
              "policy-limitrange": {
                compliant: "NonCompliant"
              }
            },
            clustername: "cluster1",
            compliant: "NonCompliant"
          },
          clusterhub: {
            aggregatePoliciesStatus: {
              "policy-limitrange": {
                compliant: "NonCompliant"
              }
            },
            clustername: "clusterhub",
            compliant: "NonCompliant"
          }
        }
      }
    },
    remediation: "inform",
    policyCompliant: "2/2",
    clusterCompliant: "2/2",
    placementPolicies: [
      {
        metadata: {
          name: "placement-policy-limitrange",
          selfLink:
            "/apis/mcm.ibm.com/v1alpha1/namespaces/mcm/placementpolicies/placement-policy-limitrange",
          __typename: "Metadata"
        },
        __typename: "PlacementPolicy"
      }
    ],
    placementBindings: [
      {
        metadata: {
          name: "binding-policy-limitrange",
          selfLink:
            "/apis/mcm.ibm.com/v1alpha1/namespaces/mcm/placementbindings/binding-policy-limitrange",
          __typename: "Metadata"
        },
        __typename: "PlacementBinding"
      }
    ],
    __typename: "Compliance",
    subItems: [
      {
        name: "policy.pb",
        items: ["binding-policy-limitrange"]
      },
      {
        name: "policy.pp",
        items: ["placement-policy-limitrange"]
      }
    ],
    custom: {
      "metadata.name": {
        key: null,
        ref: null,
        props: {
          to: "/multicloud/policies/all/policy-limitrange",
          children: "policy-limitrange",
          replace: false
        },
        _owner: null,
        _store: {}
      },
      'metadata.annotations["policy.mcm.ibm.com/standards"]': "HIPAA",
      'metadata.annotations["policy.mcm.ibm.com/controls"]': "Cert Manager",
      'metadata.annotations["policy.mcm.ibm.com/categories"]':
        "System And Communications Protections"
    }
  },
  "policy-namespace-mcm": {
    metadata: {
      name: "policy-namespace",
      namespace: "mcm",
      selfLink:
        "/apis/policy.mcm.ibm.com/v1alpha1/namespaces/mcm/policies/policy-namespace",
      annotations: {
        "policy.mcm.ibm.com/categories":
          "SystemAndCommunicationsProtections,SystemAndInformationIntegrity",
        "policy.mcm.ibm.com/controls": "MutationAdvisor",
        "policy.mcm.ibm.com/standards": "NIST,HIPAA",
        "seed-generation": "1"
      },
      resourceVersion: "8280831",
      __typename: "Metadata"
    },
    name: "policy-namespace",
    namespace: "mcm",
    raw: {
      apiVersion: "policy.mcm.ibm.com/v1alpha1",
      kind: "Policy",
      metadata: {
        annotations: {
          "policy.mcm.ibm.com/categories":
            "SystemAndCommunicationsProtections,SystemAndInformationIntegrity",
          "policy.mcm.ibm.com/controls": "MutationAdvisor",
          "policy.mcm.ibm.com/standards": "NIST,HIPAA",
          "seed-generation": "1"
        },
        creationTimestamp: "2019-09-10T17:55:15Z",
        finalizers: [
          "propagator.finalizer.mcm.ibm.com",
          "finalizer.policies.ibm.com"
        ],
        generation: 25,
        name: "policy-namespace",
        namespace: "mcm",
        resourceVersion: "8280831",
        selfLink:
          "/apis/policy.mcm.ibm.com/v1alpha1/namespaces/mcm/policies/policy-namespace",
        uid: "2516c2c7-d3f4-11e9-a1ed-005056a0b88e"
      },
      spec: {
        complianceType: "musthave",
        namespaces: {},
        "object-templates": [
          {
            complianceType: "musthave",
            objectDefinition: {
              apiVersion: "v1",
              kind: "Namespace",
              metadata: {
                name: "dev-will-test"
              }
            },
            status: {
              Validity: {}
            }
          }
        ],
        remediationAction: "enforce"
      },
      status: {
        placementBindings: ["binding-namespace"],
        placementPolicies: ["placement-namespace"],
        status: {
          cluster1: {
            aggregatePoliciesStatus: {
              "policy-namespace": {}
            },
            clustername: "cluster1"
          },
          clusterhub: {
            aggregatePoliciesStatus: {
              "policy-namespace": {}
            },
            clustername: "clusterhub"
          }
        }
      }
    },
    remediation: "enforce",
    policyCompliant: "2/2",
    clusterCompliant: "2/2",
    placementPolicies: [
      {
        metadata: {
          name: "placement-namespace",
          selfLink:
            "/apis/mcm.ibm.com/v1alpha1/namespaces/mcm/placementpolicies/placement-namespace",
          __typename: "Metadata"
        },
        __typename: "PlacementPolicy"
      }
    ],
    placementBindings: [
      {
        metadata: {
          name: "binding-namespace",
          selfLink:
            "/apis/mcm.ibm.com/v1alpha1/namespaces/mcm/placementbindings/binding-namespace",
          __typename: "Metadata"
        },
        __typename: "PlacementBinding"
      }
    ],
    __typename: "Compliance",
    subItems: [
      {
        name: "policy.pb",
        items: ["binding-namespace"]
      },
      {
        name: "policy.pp",
        items: ["placement-namespace"]
      }
    ],
    custom: {
      "metadata.name": {
        key: null,
        ref: null,
        props: {
          to: "/multicloud/policies/all/policy-namespace",
          children: "policy-namespace",
          replace: false
        },
        _owner: null,
        _store: {}
      },
      'metadata.annotations["policy.mcm.ibm.com/standards"]': "NIST, HIPAA",
      'metadata.annotations["policy.mcm.ibm.com/controls"]': "Mutation Advisor",
      'metadata.annotations["policy.mcm.ibm.com/categories"]':
        "System And Communications Protections, System And Information Integrity"
    }
  },
  "policy-pod-mcm": {
    metadata: {
      name: "policy-pod",
      namespace: "mcm",
      selfLink:
        "/apis/policy.mcm.ibm.com/v1alpha1/namespaces/mcm/policies/policy-pod",
      annotations: {
        "policy.mcm.ibm.com/categories": "SystemAndCommunicationsProtections",
        "policy.mcm.ibm.com/controls": "MutationAdvisor",
        "policy.mcm.ibm.com/standards": "FISMA",
        "seed-generation": "1"
      },
      resourceVersion: "8280895",
      __typename: "Metadata"
    },
    name: "policy-pod",
    namespace: "mcm",
    raw: {
      apiVersion: "policy.mcm.ibm.com/v1alpha1",
      kind: "Policy",
      metadata: {
        annotations: {
          "policy.mcm.ibm.com/categories": "SystemAndCommunicationsProtections",
          "policy.mcm.ibm.com/controls": "MutationAdvisor",
          "policy.mcm.ibm.com/standards": "FISMA",
          "seed-generation": "1"
        },
        creationTimestamp: "2019-09-05T18:16:29Z",
        finalizers: [
          "finalizer.policies.ibm.com",
          "propagator.finalizer.mcm.ibm.com"
        ],
        generation: 59,
        name: "policy-pod",
        namespace: "mcm",
        resourceVersion: "8280895",
        selfLink:
          "/apis/policy.mcm.ibm.com/v1alpha1/namespaces/mcm/policies/policy-pod",
        uid: "48316272-d009-11e9-a1ed-005056a0b88e"
      },
      spec: {
        complianceType: "musthave",
        namespaces: {
          exclude: ["kube-*"],
          include: ["default"]
        },
        "object-templates": [
          {
            complianceType: "musthave",
            objectDefinition: {
              apiVersion: "v1",
              kind: "Pod",
              metadata: {
                name: "nginx-pod"
              },
              spec: {
                containers: [
                  {
                    image: "nginx:1.7.9",
                    name: "nginx",
                    ports: [
                      {
                        containerPort: 80
                      }
                    ]
                  }
                ]
              }
            },
            status: {
              Validity: {}
            }
          }
        ],
        remediationAction: "inform"
      },
      status: {
        placementBindings: ["binding-policy-pod"],
        placementPolicies: ["placement-policy-pod"],
        status: {
          cluster1: {
            aggregatePoliciesStatus: {
              "policy-pod": {
                compliant: "NonCompliant"
              }
            },
            clustername: "cluster1",
            compliant: "NonCompliant"
          },
          clusterhub: {
            aggregatePoliciesStatus: {
              "policy-pod": {
                compliant: "NonCompliant"
              }
            },
            clustername: "clusterhub",
            compliant: "NonCompliant"
          }
        }
      }
    },
    remediation: "inform",
    policyCompliant: "2/2",
    clusterCompliant: "2/2",
    placementPolicies: [
      {
        metadata: {
          name: "placement-policy-pod",
          selfLink:
            "/apis/mcm.ibm.com/v1alpha1/namespaces/mcm/placementpolicies/placement-policy-pod",
          __typename: "Metadata"
        },
        __typename: "PlacementPolicy"
      }
    ],
    placementBindings: [
      {
        metadata: {
          name: "binding-policy-pod",
          selfLink:
            "/apis/mcm.ibm.com/v1alpha1/namespaces/mcm/placementbindings/binding-policy-pod",
          __typename: "Metadata"
        },
        __typename: "PlacementBinding"
      }
    ],
    __typename: "Compliance",
    subItems: [
      {
        name: "policy.pb",
        items: ["binding-policy-pod"]
      },
      {
        name: "policy.pp",
        items: ["placement-policy-pod"]
      }
    ],
    custom: {
      "metadata.name": {
        key: null,
        ref: null,
        props: {
          to: "/multicloud/policies/all/policy-pod",
          children: "policy-pod",
          replace: false
        },
        _owner: null,
        _store: {}
      },
      'metadata.annotations["policy.mcm.ibm.com/standards"]': "FISMA",
      'metadata.annotations["policy.mcm.ibm.com/controls"]': "Mutation Advisor",
      'metadata.annotations["policy.mcm.ibm.com/categories"]':
        "System And Communications Protections"
    }
  },
  "policy-pod-2-mcm": {
    metadata: {
      name: "policy-pod-2",
      namespace: "mcm",
      selfLink:
        "/apis/policy.mcm.ibm.com/v1alpha1/namespaces/mcm/policies/policy-pod-2",
      annotations: {
        "policy.mcm.ibm.com/categories": "SystemAndCommunicationsProtections",
        "policy.mcm.ibm.com/controls": "VA",
        "policy.mcm.ibm.com/standards": "HIPAA",
        "seed-generation": "1"
      },
      resourceVersion: "8280872",
      __typename: "Metadata"
    },
    name: "policy-pod-2",
    namespace: "mcm",
    raw: {
      apiVersion: "policy.mcm.ibm.com/v1alpha1",
      kind: "Policy",
      metadata: {
        annotations: {
          "policy.mcm.ibm.com/categories": "SystemAndCommunicationsProtections",
          "policy.mcm.ibm.com/controls": "VA",
          "policy.mcm.ibm.com/standards": "HIPAA",
          "seed-generation": "1"
        },
        creationTimestamp: "2019-09-18T17:27:24Z",
        finalizers: [
          "finalizer.policies.ibm.com",
          "propagator.finalizer.mcm.ibm.com"
        ],
        generation: 26,
        name: "policy-pod-2",
        namespace: "mcm",
        resourceVersion: "8280872",
        selfLink:
          "/apis/policy.mcm.ibm.com/v1alpha1/namespaces/mcm/policies/policy-pod-2",
        uid: "9412ab84-da39-11e9-a1ed-005056a0b88e"
      },
      spec: {
        complianceType: "musthave",
        namespaces: {
          exclude: ["kube-*"],
          include: ["default"]
        },
        "object-templates": [
          {
            complianceType: "musthave",
            objectDefinition: {
              apiVersion: "v1",
              kind: "Pod",
              metadata: {
                name: "nginx-pod"
              },
              spec: {
                containers: [
                  {
                    image: "nginx:1.7.9",
                    name: "nginx",
                    ports: [
                      {
                        containerPort: 80
                      }
                    ]
                  }
                ]
              }
            },
            status: {
              Validity: {}
            }
          }
        ],
        remediationAction: "inform"
      },
      status: {
        placementBindings: ["binding-policy-pod-2"],
        placementPolicies: ["placement-policy-pod-2"],
        status: {
          cluster1: {
            aggregatePoliciesStatus: {
              "policy-pod-2": {
                compliant: "NonCompliant"
              }
            },
            clustername: "cluster1",
            compliant: "NonCompliant"
          },
          clusterhub: {
            aggregatePoliciesStatus: {
              "policy-pod-2": {
                compliant: "NonCompliant"
              }
            },
            clustername: "clusterhub",
            compliant: "NonCompliant"
          }
        }
      }
    },
    remediation: "inform",
    policyCompliant: "2/2",
    clusterCompliant: "2/2",
    placementPolicies: [
      {
        metadata: {
          name: "placement-policy-pod-2",
          selfLink:
            "/apis/mcm.ibm.com/v1alpha1/namespaces/mcm/placementpolicies/placement-policy-pod-2",
          __typename: "Metadata"
        },
        __typename: "PlacementPolicy"
      }
    ],
    placementBindings: [
      {
        metadata: {
          name: "binding-policy-pod-2",
          selfLink:
            "/apis/mcm.ibm.com/v1alpha1/namespaces/mcm/placementbindings/binding-policy-pod-2",
          __typename: "Metadata"
        },
        __typename: "PlacementBinding"
      }
    ],
    __typename: "Compliance",
    subItems: [
      {
        name: "policy.pb",
        items: ["binding-policy-pod-2"]
      },
      {
        name: "policy.pp",
        items: ["placement-policy-pod-2"]
      }
    ],
    custom: {
      "metadata.name": {
        key: null,
        ref: null,
        props: {
          to: "/multicloud/policies/all/policy-pod-2",
          children: "policy-pod-2",
          replace: false
        },
        _owner: null,
        _store: {}
      },
      'metadata.annotations["policy.mcm.ibm.com/standards"]': "HIPAA",
      'metadata.annotations["policy.mcm.ibm.com/controls"]': "VA",
      'metadata.annotations["policy.mcm.ibm.com/categories"]':
        "System And Communications Protections"
    }
  },
  "policy-pod-edge-mcm": {
    metadata: {
      name: "policy-pod-edge",
      namespace: "mcm",
      selfLink:
        "/apis/policy.mcm.ibm.com/v1alpha1/namespaces/mcm/policies/policy-pod-edge",
      annotations: {
        "policy.mcm.ibm.com/categories": "SystemAndCommunicationsProtections",
        "policy.mcm.ibm.com/controls": "VA",
        "policy.mcm.ibm.com/standards": "HIPAA",
        "seed-generation": "1"
      },
      resourceVersion: "8280876",
      __typename: "Metadata"
    },
    name: "policy-pod-edge",
    namespace: "mcm",
    raw: {
      apiVersion: "policy.mcm.ibm.com/v1alpha1",
      kind: "Policy",
      metadata: {
        annotations: {
          "policy.mcm.ibm.com/categories": "SystemAndCommunicationsProtections",
          "policy.mcm.ibm.com/controls": "VA",
          "policy.mcm.ibm.com/standards": "HIPAA",
          "seed-generation": "1"
        },
        creationTimestamp: "2019-09-17T15:25:30Z",
        finalizers: [
          "finalizer.policies.ibm.com",
          "propagator.finalizer.mcm.ibm.com"
        ],
        generation: 27,
        name: "policy-pod-edge",
        namespace: "mcm",
        resourceVersion: "8280876",
        selfLink:
          "/apis/policy.mcm.ibm.com/v1alpha1/namespaces/mcm/policies/policy-pod-edge",
        uid: "6279d239-d95f-11e9-a1ed-005056a0b88e"
      },
      spec: {
        complianceType: "musthave",
        namespaces: {
          exclude: ["kube-*"],
          include: ["default"]
        },
        "object-templates": [
          {
            complianceType: "musthave",
            objectDefinition: {
              apiVersion: "v1",
              kind: "Pod",
              metadata: {
                name: "nginx-pod"
              },
              spec: {
                containers: [
                  {
                    image: "nginx:1.7.9",
                    name: "nginx",
                    ports: [
                      {
                        containerPort: 80
                      }
                    ]
                  }
                ]
              }
            },
            status: {
              Validity: {}
            }
          }
        ],
        remediationAction: "inform"
      },
      status: {
        placementBindings: ["binding-policy-pod-edge"],
        placementPolicies: ["placement-policy-pod-edge"],
        status: {
          cluster1: {
            aggregatePoliciesStatus: {
              "policy-pod-edge": {
                compliant: "NonCompliant"
              }
            },
            clustername: "cluster1",
            compliant: "NonCompliant"
          },
          clusterhub: {
            aggregatePoliciesStatus: {
              "policy-pod-edge": {
                compliant: "NonCompliant"
              }
            },
            clustername: "clusterhub",
            compliant: "NonCompliant"
          }
        }
      }
    },
    remediation: "inform",
    policyCompliant: "2/2",
    clusterCompliant: "2/2",
    placementPolicies: [
      {
        metadata: {
          name: "placement-policy-pod-edge",
          selfLink:
            "/apis/mcm.ibm.com/v1alpha1/namespaces/mcm/placementpolicies/placement-policy-pod-edge",
          __typename: "Metadata"
        },
        __typename: "PlacementPolicy"
      }
    ],
    placementBindings: [
      {
        metadata: {
          name: "binding-policy-pod-edge",
          selfLink:
            "/apis/mcm.ibm.com/v1alpha1/namespaces/mcm/placementbindings/binding-policy-pod-edge",
          __typename: "Metadata"
        },
        __typename: "PlacementBinding"
      }
    ],
    __typename: "Compliance",
    subItems: [
      {
        name: "policy.pb",
        items: ["binding-policy-pod-edge"]
      },
      {
        name: "policy.pp",
        items: ["placement-policy-pod-edge"]
      }
    ],
    custom: {
      "metadata.name": {
        key: null,
        ref: null,
        props: {
          to: "/multicloud/policies/all/policy-pod-edge",
          children: "policy-pod-edge",
          replace: false
        },
        _owner: null,
        _store: {}
      },
      'metadata.annotations["policy.mcm.ibm.com/standards"]': "HIPAA",
      'metadata.annotations["policy.mcm.ibm.com/controls"]': "VA",
      'metadata.annotations["policy.mcm.ibm.com/categories"]':
        "System And Communications Protections"
    }
  }
};

export const itemIds = [
  "1569249226915-policy-test-mcm",
  "policy-auditpolicy-mcm",
  "policy-certificatepolicy-mcm",
  "policy-iampolicy-mcm",
  "policy-image-mcm",
  "policy-limitrange-mcm",
  "policy-namespace-mcm",
  "policy-pod-mcm",
  "policy-pod-2-mcm",
  "policy-pod-edge-mcm"
];

export const resourceType = {
  name: "HCMApplication",
  list: "HCMApplicationList"
};

export const staticResourceDataPolicyOverview = {
  defaultSortField: "metadata.name",
  primaryKey: "metadata.name",
  secondaryKey: "metadata.namespace",
  compliancePolicies: {
    resourceKey: "compliancePolicies",
    title: "table.header.compliance.policies",
    defaultSortField: "name",
    normalizedKey: "name",
    tableKeys: [
      {
        msgKey: "table.header.compliant",
        resourceKey: "policyCompliantStatus",
        key: "policyCompliantStatus"
      },
      {
        msgKey: "table.header.name",
        resourceKey: "name",
        key: "name",
        transformFunction: item => item.name
      },
      {
        msgKey: "table.header.cluster.compliant",
        resourceKey: "clusterCompliant",
        key: "clusterCompliant"
      },
      {
        msgKey: "table.header.cluster.not.compliant",
        resourceKey: "clusterNotCompliant",
        key: "clusterNotCompliant"
      }
    ]
  },
  placementBindingKeys: {
    title: "application.placement.bindings",
    defaultSortField: "name",
    resourceKey: "placementBindings",
    tableKeys: [
      {
        key: "name",
        resourceKey: "metadata.name",
        msgKey: "table.header.name",
        transformFunction: item => item.metadata.name
      },
      {
        key: "namespace",
        resourceKey: "metadata.namespace",
        msgKey: "table.header.namespace"
      },
      {
        key: "placementpolicy",
        resourceKey: "placementRef.name",
        msgKey: "table.header.placementpolicy"
      },
      {
        key: "subjects",
        resourceKey: "subjects",
        msgKey: "table.header.subjects"
      },
      {
        key: "timestamp",
        resourceKey: "metadata.creationTimestamp",
        msgKey: "table.header.created"
      }
    ],
    tableActions: ["table.actions.edit"]
  },
  placementPolicyKeys: {
    title: "application.placement.policies",
    defaultSortField: "name",
    resourceKey: "placementPolicies",
    tableKeys: [
      {
        key: "name",
        resourceKey: "metadata.name",
        msgKey: "table.header.name",
        transformFunction: item => item.metadata.name
      },
      {
        key: "namespace",
        resourceKey: "metadata.namespace",
        msgKey: "table.header.namespace"
      },
      {
        key: "replicas",
        resourceKey: "clusterReplicas",
        msgKey: "table.header.replicas"
      },
      {
        key: "clusterSelector",
        resourceKey: "clusterSelector",
        msgKey: "table.header.cluster.selector"
      },
      {
        key: "resourceSelector",
        resourceKey: "resourceSelector",
        msgKey: "table.header.resource.selector"
      },
      {
        key: "decisions",
        resourceKey: "status",
        msgKey: "table.header.decisions"
      },
      {
        key: "timestamp",
        resourceKey: "metadata.creationTimestamp",
        msgKey: "table.header.created"
      }
    ],
    tableActions: ["table.actions.edit"]
  },
  roleTemplates: {
    resourceKey: "role-templates",
    title: "table.header.role.template",
    defaultSortField: "metadata.name",
    normalizedKey: "metadata.name",
    tableKeys: [
      {
        msgKey: "table.header.role.template.name",
        resourceKey: "metadata.name",
        key: "name",
        transformFunction: item => item.metadata.name
      },
      {
        msgKey: "table.header.role.template.complianceType",
        resourceKey: "complianceType",
        key: "complianceType"
      },
      {
        msgKey: "table.header.role.template.apiVersion",
        resourceKey: "apiVersion",
        key: "apiVersion"
      },
      {
        msgKey: "table.header.role.template.lastTransition",
        resourceKey: "status.conditions[0].lastTransitionTime",
        key: "lastTransition"
      },
      {
        msgKey: "table.header.role.template.status",
        resourceKey: "status.Compliant",
        key: "status"
      }
    ],
    rows: [
      {
        cells: [
          {
            resourceKey: "metadata.name"
          },
          {
            resourceKey: "complianceType"
          },
          {
            resourceKey: "apiVersion"
          },
          {
            resourceKey: "status.conditions[0].lastTransitionTime"
          },
          {
            resourceKey: "status.Compliant"
          }
        ]
      }
    ],
    subHeaders: [
      "table.header.role.template.complianceType",
      "table.header.apiGroups",
      "table.header.resources",
      "table.header.ruleVerbs"
    ]
  },
  objectTemplates: {
    resourceKey: "object-templates",
    title: "table.header.object.template",
    defaultSortField: "objectDefinition.metadata.name",
    normalizedKey: "objectDefinition.metadata.name",
    tableKeys: [
      {
        msgKey: "table.header.object.template.name",
        resourceKey: "objectDefinition.metadata.name",
        key: "name"
      },
      {
        msgKey: "table.header.object.template.complianceType",
        resourceKey: "complianceType",
        key: "complianceType"
      },
      {
        msgKey: "table.header.object.template.apiVersion",
        resourceKey: "objectDefinition.apiVersion",
        key: "apiVersion"
      },
      {
        msgKey: "table.header.object.template.kind",
        resourceKey: "objectDefinition.kind",
        key: "kind"
      },
      {
        msgKey: "table.header.object.template.lastTransition",
        resourceKey: "status.conditions[0].lastTransitionTime",
        key: "lastTransition"
      },
      {
        msgKey: "table.header.object.template.status",
        resourceKey: "status.Compliant",
        key: "status"
      }
    ]
  },
  policyTemplates: {
    resourceKey: "policy-templates",
    title: "table.header.policy.template",
    defaultSortField: "objectDefinition.metadata.name",
    normalizedKey: "metadata.name",
    tableKeys: [
      {
        msgKey: "table.header.object.template.name",
        resourceKey: "objectDefinition.metadata.name",
        key: "name"
      },
      {
        msgKey: "table.header.object.template.apiVersion",
        resourceKey: "objectDefinition.apiVersion",
        key: "apiVersion"
      },
      {
        msgKey: "table.header.object.template.kind",
        resourceKey: "objectDefinition.kind",
        key: "kind"
      },
      {
        msgKey: "table.header.object.template.lastTransition",
        resourceKey: "status.conditions[0].lastTransitionTime",
        key: "lastTransition"
      },
      {
        msgKey: "table.header.object.template.status",
        resourceKey: "status.Compliant",
        key: "status"
      }
    ]
  },
  complianceStatus: {
    resourceKey: "complianceStatus",
    title: "table.header.compliance.compliant",
    defaultSortField: "clusterNamespace",
    normalizedKey: "clusterNamespace",
    tableKeys: [
      {
        msgKey: "table.header.cluster.namespace",
        resourceKey: "clusterNamespace",
        key: "clusterNamespace"
      },
      {
        msgKey: "table.header.compliance.policy.status",
        resourceKey: "localCompliantStatus",
        key: "localCompliantStatus"
      },
      {
        msgKey: "table.header.compliance.policy.valid",
        resourceKey: "localValidStatus",
        key: "localValidStatus"
      }
    ]
  },
  tableKeys: [
    {
      msgKey: "table.header.policy.name",
      resourceKey: "metadata.name",
      transformFunction: item => item.metadata.name
    },
    {
      msgKey: "table.header.namespace",
      resourceKey: "metadata.namespace"
    },
    {
      msgKey: "table.header.remediation",
      resourceKey: "remediation"
    },
    {
      msgKey: "table.header.cluster.violation",
      resourceKey: "clusterCompliant"
    },
    {
      msgKey: "table.header.controls",
      resourceKey: 'metadata.annotations["policy.mcm.ibm.com/controls"]'
    },
    {
      msgKey: "table.header.standards",
      resourceKey: 'metadata.annotations["policy.mcm.ibm.com/standards"]'
    },
    {
      msgKey: "table.header.categories",
      resourceKey: 'metadata.annotations["policy.mcm.ibm.com/categories"]'
    }
  ],
  tableActions: ["table.actions.edit", "table.actions.remove"],
  policyTemplatesKeys: {
    title: "policy.template.details",
    headerRows: [
      "description.title.name",
      "description.title.last.transition",
      "description.title.templateType"
    ],
    rows: [
      {
        cells: [
          {
            resourceKey: "name"
          },
          {
            resourceKey: "lastTransition"
          },
          {
            resourceKey: "templateType"
          }
        ]
      }
    ]
  },
  policyRules: {
    title: "table.header.rules",
    resourceKey: "rules",
    defaultSortField: "ruleUID",
    normalizedKey: "ruleUID",
    tableKeys: [
      {
        msgKey: "table.header.name",
        resourceKey: "ruleUID",
        key: "ruleUID"
      },
      {
        msgKey: "table.header.templateType",
        resourceKey: "templateType",
        key: "templateType"
      },
      {
        msgKey: "table.header.complianceType",
        resourceKey: "complianceType",
        key: "complianceType"
      },
      {
        msgKey: "table.header.apiGroups",
        resourceKey: "apiGroups",
        key: "apiGroups"
      },
      {
        msgKey: "table.header.ruleVerbs",
        resourceKey: "verbs",
        key: "verbs"
      },
      {
        msgKey: "table.header.resources",
        resourceKey: "resources",
        key: "resources"
      }
    ]
  },
  policyViolations: {
    resourceKey: "violations",
    title: "table.header.violation",
    defaultSortField: "name",
    normalizedKey: "name",
    tableKeys: [
      {
        msgKey: "table.header.name",
        resourceKey: "name",
        key: "name"
      },
      {
        msgKey: "table.header.selector",
        resourceKey: "selector",
        key: "selector"
      },
      {
        msgKey: "table.header.cluster",
        resourceKey: "cluster",
        key: "cluster"
      },
      {
        msgKey: "table.header.message",
        resourceKey: "message",
        key: "message"
      },
      {
        msgKey: "table.header.reason",
        resourceKey: "reason",
        key: "reason"
      },
      {
        msgKey: "table.header.status",
        resourceKey: "status",
        key: "status"
      }
    ]
  },
  policyInfoKeys: {
    title: "policy.details",
    headerRows: ["type", "detail"],
    rows: [
      {
        cells: [
          {
            resourceKey: "description.title.name",
            type: "i18n"
          },
          {
            resourceKey: "name"
          }
        ]
      },
      {
        cells: [
          {
            resourceKey: "table.header.message",
            type: "i18n"
          },
          {
            resourceKey: "message"
          }
        ]
      },
      {
        cells: [
          {
            resourceKey: "description.title.status",
            type: "i18n"
          },
          {
            resourceKey: "status"
          }
        ]
      },
      {
        cells: [
          {
            resourceKey: "description.title.enforcement",
            type: "i18n"
          },
          {
            resourceKey: "enforcement"
          }
        ]
      },
      {
        cells: [
          {
            resourceKey: "description.title.exclude_namespace",
            type: "i18n"
          },
          {
            resourceKey: "detail.exclude_namespace"
          }
        ]
      },
      {
        cells: [
          {
            resourceKey: "description.title.include_namespace",
            type: "i18n"
          },
          {
            resourceKey: "detail.include_namespace"
          }
        ]
      }
    ]
  },
  policyRoleTemplates: {
    title: "table.header.roleTemplates",
    defaultSortField: "name",
    normalizedKey: "name",
    resourceKey: "roleTemplates",
    tableKeys: [
      {
        msgKey: "table.header.name",
        resourceKey: "name",
        key: "name"
      },
      {
        msgKey: "table.header.complianceType",
        resourceKey: "complianceType",
        key: "complianceType"
      },
      {
        msgKey: "description.title.api.version",
        resourceKey: "apiVersion",
        key: "apiVersion"
      },
      {
        msgKey: "description.title.last.transition",
        resourceKey: "lastTransition",
        key: "lastTransition"
      },
      {
        msgKey: "table.header.compliant",
        resourceKey: "compliant",
        key: "compliant"
      }
    ]
  },
  policyRoleBindingTemplates: {
    title: "table.header.roleBindingTemplates",
    defaultSortField: "name",
    normalizedKey: "name",
    resourceKey: "roleBindingTemplates",
    tableKeys: [
      {
        msgKey: "table.header.name",
        resourceKey: "name",
        key: "name"
      },
      {
        msgKey: "table.header.complianceType",
        resourceKey: "complianceType",
        key: "complianceType"
      },
      {
        msgKey: "description.title.api.version",
        resourceKey: "apiVersion",
        key: "apiVersion"
      },
      {
        msgKey: "description.title.last.transition",
        resourceKey: "lastTransition",
        key: "lastTransition"
      },
      {
        msgKey: "table.header.compliant",
        resourceKey: "compliant",
        key: "compliant"
      }
    ]
  },
  policyObjectTemplates: {
    title: "table.header.objectTemplates",
    defaultSortField: "name",
    normalizedKey: "name",
    resourceKey: "objectTemplates",
    tableKeys: [
      {
        msgKey: "table.header.name",
        resourceKey: "name",
        key: "name"
      },
      {
        msgKey: "table.header.complianceType",
        resourceKey: "complianceType",
        key: "complianceType"
      },
      {
        msgKey: "description.title.api.version",
        resourceKey: "apiVersion",
        key: "apiVersion"
      },
      {
        msgKey: "table.header.kind",
        resourceKey: "kind",
        key: "kind"
      },
      {
        msgKey: "description.title.last.transition",
        resourceKey: "lastTransition",
        key: "lastTransition"
      },
      {
        msgKey: "table.header.compliant",
        resourceKey: "compliant",
        key: "compliant"
      }
    ]
  }
};

export const itemPolicyOverview = [
  {
    raw: {
      apiVersion: "policy.mcm.ibm.com/v1alpha1",
      kind: "Policy",
      metadata: {
        annotations: {
          "policy.mcm.ibm.com/categories": "SystemAndInformationIntegrity",
          "policy.mcm.ibm.com/controls": "VA",
          "policy.mcm.ibm.com/standards": "NIST",
          "seed-generation": "1"
        },
        creationTimestamp: "2019-09-23T14:34:25Z",
        finalizers: [
          "propagator.finalizer.mcm.ibm.com",
          "finalizer.policies.ibm.com"
        ],
        generation: 7,
        name: "1569249226915-policy-test",
        namespace: "mcm",
        resourceVersion: "7688204",
        selfLink:
          "/apis/policy.mcm.ibm.com/v1alpha1/namespaces/mcm/policies/1569249226915-policy-test",
        uid: "3dc879b5-de0f-11e9-a1ed-005056a0b88e"
      },
      spec: {
        complianceType: "musthave",
        namespaces: {
          exclude: ["kube-*"],
          include: ["default"]
        },
        "object-templates": [
          {
            complianceType: "musthave",
            objectDefinition: {
              apiVersion: "v1",
              kind: "Namespace",
              metadata: {
                name: "prod"
              }
            },
            status: {
              Validity: {}
            }
          }
        ],
        remediationAction: "inform"
      },
      status: {
        placementBindings: ["binding-1569249226915-policy-test"],
        placementPolicies: ["placement-1569249226915-policy-test"],
        status: {
          cluster1: {
            aggregatePoliciesStatus: {
              "1569249226915-policy-test": {
                compliant: "NonCompliant"
              }
            },
            clustername: "cluster1",
            compliant: "NonCompliant"
          },
          clusterhub: {
            aggregatePoliciesStatus: {
              "1569249226915-policy-test": {
                compliant: "NonCompliant"
              }
            },
            clustername: "clusterhub",
            compliant: "NonCompliant"
          }
        }
      }
    },
    metadata: {
      creationTimestamp: "2019-09-23T14:34:25Z",
      name: "1569249226915-policy-test",
      namespace: "mcm",
      resourceVersion: "7688204",
      selfLink:
        "/apis/policy.mcm.ibm.com/v1alpha1/namespaces/mcm/policies/1569249226915-policy-test",
      uid: "3dc879b5-de0f-11e9-a1ed-005056a0b88e",
      annotations: {
        "policy.mcm.ibm.com/categories": "SystemAndInformationIntegrity",
        "policy.mcm.ibm.com/controls": "VA",
        "policy.mcm.ibm.com/standards": "NIST",
        "seed-generation": "1"
      },
      __typename: "Metadata"
    },
    annotations: {
      categories: "SystemAndInformationIntegrity",
      controls: "VA",
      standards: "NIST"
    },
    placementPolicies: [
      {
        metadata: {
          annotations: {
            "mcm.ibm.com/user-group":
              "c3lzdGVtOnNlcnZpY2VhY2NvdW50cyxzeXN0ZW06c2VydmljZWFjY291bnRzOmt1YmUtc3lzdGVtLHN5c3RlbTphdXRoZW50aWNhdGVk",
            "mcm.ibm.com/user-identity":
              "c3lzdGVtOnNlcnZpY2VhY2NvdW50Omt1YmUtc3lzdGVtOmRlZmF1bHQ="
          },
          name: "placement-1569249226915-policy-test",
          namespace: "mcm",
          creationTimestamp: "2019-09-23T14:34:25Z",
          selfLink:
            "/apis/mcm.ibm.com/v1alpha1/namespaces/mcm/placementpolicies/placement-1569249226915-policy-test",
          __typename: "Metadata"
        },
        clusterSelector: [],
        clusterReplicas: null,
        resourceSelector: {},
        status: {
          decisions: [
            {
              clusterName: "cluster1",
              clusterNamespace: "cluster1"
            }
          ]
        },
        raw: {
          apiVersion: "mcm.ibm.com/v1alpha1",
          kind: "PlacementPolicy",
          metadata: {
            name: "placement-1569249226915-policy-test",
            namespace: "mcm",
            selfLink:
              "/apis/mcm.ibm.com/v1alpha1/namespaces/mcm/placementpolicies/placement-1569249226915-policy-test",
            uid: "3de387ad-de0f-11e9-a6d8-02e847915a0f",
            resourceVersion: "188032",
            creationTimestamp: "2019-09-23T14:34:25Z",
            annotations: {
              "mcm.ibm.com/user-group":
                "c3lzdGVtOnNlcnZpY2VhY2NvdW50cyxzeXN0ZW06c2VydmljZWFjY291bnRzOmt1YmUtc3lzdGVtLHN5c3RlbTphdXRoZW50aWNhdGVk",
              "mcm.ibm.com/user-identity":
                "c3lzdGVtOnNlcnZpY2VhY2NvdW50Omt1YmUtc3lzdGVtOmRlZmF1bHQ="
            }
          },
          spec: {
            resourceSelector: {},
            clusterSelector: [],
            resourceHint: {}
          },
          status: {
            decisions: [
              {
                clusterName: "cluster1",
                clusterNamespace: "cluster1"
              }
            ]
          }
        },
        __typename: "PlacementPolicy"
      }
    ],
    placementBindings: [
      {
        metadata: {
          name: "binding-1569249226915-policy-test",
          namespace: "mcm",
          creationTimestamp: "2019-09-23T14:34:25Z",
          selfLink:
            "/apis/mcm.ibm.com/v1alpha1/namespaces/mcm/placementbindings/binding-1569249226915-policy-test",
          __typename: "Metadata"
        },
        placementRef: {
          name: "placement-1569249226915-policy-test",
          kind: "PlacementPolicy",
          __typename: "Subject"
        },
        subjects: [],
        raw: {
          apiVersion: "mcm.ibm.com/v1alpha1",
          kind: "PlacementBinding",
          metadata: {
            name: "binding-1569249226915-policy-test",
            namespace: "mcm",
            selfLink:
              "/apis/mcm.ibm.com/v1alpha1/namespaces/mcm/placementbindings/binding-1569249226915-policy-test",
            uid: "3de3a5b6-de0f-11e9-a6d8-02e847915a0f",
            resourceVersion: "185883",
            creationTimestamp: "2019-09-23T14:34:25Z",
            labels: {
              name: "binding-1569249226915-policy-test",
              placementPolicy: "placement-1569249226915-policy-test"
            },
            annotations: {
              "mcm.ibm.com/user-group":
                "c3lzdGVtOnNlcnZpY2VhY2NvdW50cyxzeXN0ZW06c2VydmljZWFjY291bnRzOmt1YmUtc3lzdGVtLHN5c3RlbTphdXRoZW50aWNhdGVk",
              "mcm.ibm.com/user-identity":
                "c3lzdGVtOnNlcnZpY2VhY2NvdW50Omt1YmUtc3lzdGVtOmRlZmF1bHQ="
            },
            finalizers: ["propagator.finalizer.mcm.ibm.com"]
          },
          subjects: [
            {
              kind: "Policy",
              apiGroup: "policy.mcm.ibm.com",
              name: "1569249226915-policy-test"
            }
          ],
          placementRef: {
            name: "placement-1569249226915-policy-test",
            kind: "PlacementPolicy",
            apiGroup: "mcm.ibm.com"
          }
        },
        __typename: "PlacementBinding"
      }
    ],
    complianceStatus: [
      {
        clusterNamespace: "cluster1",
        localCompliantStatus: "0/1",
        localValidStatus: "1/1",
        compliant: "NonCompliant",
        __typename: "CompliantStatus"
      },
      {
        clusterNamespace: "clusterhub",
        localCompliantStatus: "0/1",
        localValidStatus: "1/1",
        compliant: "NonCompliant",
        __typename: "CompliantStatus"
      }
    ],
    compliancePolicy: [
      {
        name: "1569249226915-policy-test",
        status: "NonCompliant",
        complianceName: "1569249226915-policy-test",
        complianceNamespace: "mcm",
        complianceSelfLink:
          "/apis/policy.mcm.ibm.com/v1alpha1/namespaces/mcm/policies/1569249226915-policy-test",
        roleTemplates: [],
        roleBindingTemplates: [],
        objectTemplates: [
          {
            apiVersion: "v1",
            complianceType: "musthave",
            compliant: "",
            lastTransition: "",
            name: "prod",
            kind: "Namespace",
            validity: "[object Object]",
            raw: {
              complianceType: "musthave",
              objectDefinition: {
                apiVersion: "v1",
                kind: "Namespace",
                metadata: {
                  name: "prod"
                }
              },
              status: {
                Validity: {}
              },
              templateType: "object-templates"
            },
            __typename: "PolicyTemplate"
          }
        ],
        policyTemplates: [],
        detail: {
          exclude_namespace: ["kube-*"],
          include_namespace: ["default"]
        },
        raw: {
          apiVersion: "policy.mcm.ibm.com/v1alpha1",
          kind: "Policy",
          metadata: {
            annotations: {
              "policy.mcm.ibm.com/categories": "SystemAndInformationIntegrity",
              "policy.mcm.ibm.com/controls": "VA",
              "policy.mcm.ibm.com/standards": "NIST",
              "seed-generation": "1"
            },
            creationTimestamp: "2019-09-23T14:34:25Z",
            finalizers: [
              "propagator.finalizer.mcm.ibm.com",
              "finalizer.policies.ibm.com"
            ],
            generation: 7,
            name: "1569249226915-policy-test",
            namespace: "mcm",
            resourceVersion: "7688204",
            selfLink:
              "/apis/policy.mcm.ibm.com/v1alpha1/namespaces/mcm/policies/1569249226915-policy-test",
            uid: "3dc879b5-de0f-11e9-a1ed-005056a0b88e"
          },
          spec: {
            complianceType: "musthave",
            namespaces: {
              exclude: ["kube-*"],
              include: ["default"]
            },
            "object-templates": [
              {
                complianceType: "musthave",
                objectDefinition: {
                  apiVersion: "v1",
                  kind: "Namespace",
                  metadata: {
                    name: "prod"
                  }
                },
                status: {
                  Validity: {}
                }
              }
            ],
            remediationAction: "inform"
          },
          status: {
            placementBindings: ["binding-1569249226915-policy-test"],
            placementPolicies: ["placement-1569249226915-policy-test"],
            status: {
              cluster1: {
                aggregatePoliciesStatus: {
                  "1569249226915-policy-test": {
                    compliant: "NonCompliant"
                  }
                },
                clustername: "cluster1",
                compliant: "NonCompliant"
              },
              clusterhub: {
                aggregatePoliciesStatus: {
                  "1569249226915-policy-test": {
                    compliant: "NonCompliant"
                  }
                },
                clustername: "clusterhub",
                compliant: "NonCompliant"
              }
            }
          },
          raw: {
            apiVersion: "policy.mcm.ibm.com/v1alpha1",
            kind: "Policy",
            metadata: {
              annotations: {
                "policy.mcm.ibm.com/categories":
                  "SystemAndInformationIntegrity",
                "policy.mcm.ibm.com/controls": "VA",
                "policy.mcm.ibm.com/standards": "NIST",
                "seed-generation": "1"
              },
              creationTimestamp: "2019-09-23T14:34:25Z",
              finalizers: [
                "propagator.finalizer.mcm.ibm.com",
                "finalizer.policies.ibm.com"
              ],
              generation: 7,
              name: "1569249226915-policy-test",
              namespace: "mcm",
              resourceVersion: "7688204",
              selfLink:
                "/apis/policy.mcm.ibm.com/v1alpha1/namespaces/mcm/policies/1569249226915-policy-test",
              uid: "3dc879b5-de0f-11e9-a1ed-005056a0b88e"
            },
            spec: {
              complianceType: "musthave",
              namespaces: {
                exclude: ["kube-*"],
                include: ["default"]
              },
              "object-templates": [
                {
                  complianceType: "musthave",
                  objectDefinition: {
                    apiVersion: "v1",
                    kind: "Namespace",
                    metadata: {
                      name: "prod"
                    }
                  },
                  status: {
                    Validity: {}
                  }
                }
              ],
              remediationAction: "inform"
            },
            status: {
              placementBindings: ["binding-1569249226915-policy-test"],
              placementPolicies: ["placement-1569249226915-policy-test"],
              status: {
                cluster1: {
                  aggregatePoliciesStatus: {
                    "1569249226915-policy-test": {
                      compliant: "NonCompliant"
                    }
                  },
                  clustername: "cluster1",
                  compliant: "NonCompliant"
                },
                clusterhub: {
                  aggregatePoliciesStatus: {
                    "1569249226915-policy-test": {
                      compliant: "NonCompliant"
                    }
                  },
                  clustername: "clusterhub",
                  compliant: "NonCompliant"
                }
              }
            }
          },
          name: "1569249226915-policy-test",
          namespace: "mcm",
          remediation: "inform",
          clusters: ["cluster1", "clusterhub"]
        },
        __typename: "CompliancePolicyDetail"
      }
    ],
    compliancePolicies: [
      {
        name: "1569249226915-policy-test",
        clusterCompliant: [],
        clusterNotCompliant: ["cluster1", "clusterhub"],
        complianceName: "1569249226915-policy-test",
        complianceNamespace: "mcm",
        policies: [
          {
            name: "1569249226915-policy-test",
            cluster: "cluster1",
            compliant: "NonCompliant",
            complianceName: "1569249226915-policy-test",
            complianceNamespace: "mcm",
            valid: "unknown",
            enforcement: "unknown",
            status: "NonCompliant",
            raw: null,
            metadata: {
              annotations: {
                "policy.mcm.ibm.com/categories":
                  "SystemAndInformationIntegrity",
                "policy.mcm.ibm.com/controls": "VA",
                "policy.mcm.ibm.com/standards": "NIST",
                "seed-generation": "1"
              },
              creationTimestamp: "2019-09-23T14:34:25Z",
              name: "1569249226915-policy-test",
              resourceVersion: "7688204",
              selfLink:
                "/apis/policy.mcm.ibm.com/v1alpha1/namespaces/mcm/policies/1569249226915-policy-test",
              uid: "3dc879b5-de0f-11e9-a1ed-005056a0b88e",
              __typename: "Metadata"
            },
            roleTemplates: [],
            roleBindingTemplates: [],
            objectTemplates: [],
            rules: [],
            violations: [],
            __typename: "CompliancePolicy"
          },
          {
            name: "1569249226915-policy-test",
            cluster: "clusterhub",
            compliant: "NonCompliant",
            complianceName: "1569249226915-policy-test",
            complianceNamespace: "mcm",
            valid: "unknown",
            enforcement: "unknown",
            status: "NonCompliant",
            raw: null,
            metadata: {
              annotations: {
                "policy.mcm.ibm.com/categories":
                  "SystemAndInformationIntegrity",
                "policy.mcm.ibm.com/controls": "VA",
                "policy.mcm.ibm.com/standards": "NIST",
                "seed-generation": "1"
              },
              creationTimestamp: "2019-09-23T14:34:25Z",
              name: "1569249226915-policy-test",
              resourceVersion: "7688204",
              selfLink:
                "/apis/policy.mcm.ibm.com/v1alpha1/namespaces/mcm/policies/1569249226915-policy-test",
              uid: "3dc879b5-de0f-11e9-a1ed-005056a0b88e",
              __typename: "Metadata"
            },
            roleTemplates: [],
            roleBindingTemplates: [],
            objectTemplates: [],
            rules: [],
            violations: [],
            __typename: "CompliancePolicy"
          }
        ],
        __typename: "CompliancePolicies"
      }
    ],
    policyCompliant: "2/2",
    clusterCompliant: "2/2",
    clusters: ["cluster1", "clusterhub"],
    __typename: "Compliance"
  }
];
