{
  "description": "ConsoleExternalLogLink is an extension for customizing OpenShift web console log links.\n\nCompatibility level 2: Stable within a major release for a minimum of 9 months or 3 minor releases (whichever is longer).",
  "properties": {
    "apiVersion": {
      "description": "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
      "type": "string"
    },
    "kind": {
      "description": "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
      "type": "string"
    },
    "metadata": {
      "type": "object"
    },
    "spec": {
      "description": "ConsoleExternalLogLinkSpec is the desired log link configuration.\nThe log link will appear on the logs tab of the pod details page.",
      "properties": {
        "hrefTemplate": {
          "description": "hrefTemplate is an absolute secure URL (must use https) for the log link including\nvariables to be replaced. Variables are specified in the URL with the format ${variableName},\nfor instance, ${containerName} and will be replaced with the corresponding values\nfrom the resource. Resource is a pod.\nSupported variables are:\n- ${resourceName} - name of the resource which containes the logs\n- ${resourceUID} - UID of the resource which contains the logs\n              - e.g. `11111111-2222-3333-4444-555555555555`\n- ${containerName} - name of the resource's container that contains the logs\n- ${resourceNamespace} - namespace of the resource that contains the logs\n- ${resourceNamespaceUID} - namespace UID of the resource that contains the logs\n- ${podLabels} - JSON representation of labels matching the pod with the logs\n            - e.g. `{\"key1\":\"value1\",\"key2\":\"value2\"}`\n\ne.g., https://example.com/logs?resourceName=${resourceName}&containerName=${containerName}&resourceNamespace=${resourceNamespace}&podLabels=${podLabels}",
          "pattern": "^https://",
          "type": "string"
        },
        "namespaceFilter": {
          "description": "namespaceFilter is a regular expression used to restrict a log link to a\nmatching set of namespaces (e.g., `^openshift-`). The string is converted\ninto a regular expression using the JavaScript RegExp constructor.\nIf not specified, links will be displayed for all the namespaces.",
          "type": "string"
        },
        "text": {
          "description": "text is the display text for the link",
          "type": "string"
        }
      },
      "required": [
        "hrefTemplate",
        "text"
      ],
      "type": "object",
      "additionalProperties": false
    }
  },
  "required": [
    "spec"
  ],
  "type": "object"
}
