#
# Fluentd Kubernetes Metadata Filter Plugin - Enrich Fluentd events with
# Kubernetes metadata
#
# Copyright 2015 Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#   http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
---
http_interactions:
- request:
    method: get
    uri: https://localhost:8443/api/v1/namespaces/journald-namespace-name/pods/journald-pod-name
    body:
      encoding: US-ASCII
      string: ''
    headers:
      Accept:
      - "*/*; q=0.5, application/xml"
      Accept-Encoding:
      - gzip, deflate
      User-Agent:
      - Ruby
  response:
    status:
      code: 200
      message: OK
    headers:
      Content-Type:
      - application/json
      Date:
      - Fri, 08 May 2015 10:35:37 GMT
      Transfer-Encoding:
      - chunked
    body:
      encoding: UTF-8
      string: |-
        {
          "kind": "Pod",
          "apiVersion": "v1",
          "metadata": {
            "name": "journald-pod-name",
            "generateName": "journald-pod-name-",
            "namespace": "journald-namespace-name",
            "selfLink": "/api/v1/namespaces/journald-namespace-name/pods/journald-pod-name",
            "uid": "5e1c1e27-b637-4e81-80b6-6d8a8c404d3b",
            "resourceVersion": "122",
            "creationTimestamp": "2015-05-08T09:22:42Z",
            "labels": {
              "component": "journald-test"
            }
          },
          "spec": {
            "containers": [
              {
                "name": "journald-container-name",
                "image": "journald-container-image:latest",
                "terminationMessagePath": "/dev/termination-log",
                "imagePullPolicy": "IfNotPresent",
                "capabilities": {}
              }
            ],
            "nodeName": "jimmi-redhat.localnet"
          },
          "status": {
            "phase": "Running",
            "Condition": [
              {
                "type": "Ready",
                "status": "True"
              }
            ],
            "hostIP": "172.17.42.1",
            "podIP": "172.17.0.8",
            "containerStatuses": [
              {
                "name": "journald-container-name",
                "state": {
                  "running": {
                    "startedAt": "2015-05-08T09:22:44Z"
                  }
                },
                "lastState": {},
                "ready": true,
                "restartCount": 0,
                "image": "journald-container-image:latest",
                "imageID": "docker://dda4c95705fb7050b701b10a7fe928ca5bc971a1dcb521ae3c339194cbf36b47",
                "containerID": "docker://838350c64bacba968d39a30a50789b2795291fceca6ccbff55298671d46b0e3b"
              }
            ]
          }
        }
    http_version:
  recorded_at: Fri, 08 May 2015 10:35:37 GMT
- request:
    method: get
    uri: https://localhost:8443/api/v1/namespaces/journald-namespace-name
    body:
      encoding: US-ASCII
      string: ''
    headers:
      Accept:
      - "*/*; q=0.5, application/xml"
      Accept-Encoding:
      - gzip, deflate
      User-Agent:
      - Ruby
  response:
    status:
      code: 200
      message: OK
    headers:
      Content-Type:
      - application/json
      Date:
      - Fri, 08 May 2015 10:35:37 GMT
      Transfer-Encoding:
      - chunked
    body:
      encoding: UTF-8
      string: |-
        {
          "kind": "Namespace",
          "apiVersion": "v1",
          "metadata": {
            "name": "journald-namespace-name",
            "selfLink": "/api/v1/namespaces/journald-namespace-name",
            "uid": "8282888f-733f-4f23-a3d3-1fdfa3bdacf2",
            "resourceVersion": "6",
            "creationTimestamp": "2015-05-08T09:22:01Z"
          },
          "spec": {
            "finalizers": [
                "kubernetes"
            ]
          },
          "status": {
            "phase": "Active"
          }
        }
    http_version:
  recorded_at: Fri, 08 May 2015 10:35:37 GMT
recorded_with: VCR 2.9.3
