anchor.diff:  ====
   
   ----
  -{
  -  "kind": "DeploymentConfig",
  -  "apiVersion": "v1",
  -  "metadata": {
  -    "name": "my-app-deployment"
  -  },
  -  "spec": { <1>
  -    "strategy": {
  -      "type": "Rolling",
  -      "rollingParams": {
  -        "updatePeriodSeconds": 1,
  -        "intervalSeconds": 1,
  -        "timeoutSeconds": 120
  -      }
  -    },
  -    "replicas": 2,
  -    "selector": {
  -      "name": "frontend"
  -    },
  -    "template": {
  -      "metadata": {
  -        "labels": {
  -          "name": "frontend"
  -        }
  -      },
  -      "spec": {
  -        "containers": [
  -          {
  -            "name": "helloworld",
  -            "image": "origin-ruby-sample",
  -            "ports": [
  -              {
  -                "containerPort": 8080,
  -                "protocol": "TCP"
  -              }
  -            ],
  -            "env": [
  -              {
  -                "name": "MYSQL_USER",
  -                "value": "${MYSQL_USER}" <2>
  -              },
  -              {
  -                "name": "MYSQL_PASSWORD",
  -                "value": "${MYSQL_PASSWORD}" <3>
  -              },
  -              {
  -                "name": "MYSQL_DATABASE",
  -                "value": "${MYSQL_DATABASE}" <4>
  -              }
  -            ]
  -          }
  -        ]
  -      }
  -    }
  -  }
  -}
  -
  +  kind: "DeploymentConfig"
  +  apiVersion: "v1"
  +  metadata:
  +    name: "my-app-deployment"
  +  spec: <1>
  +    strategy:
  +      type: "Rolling"
  +      rollingParams:
  +        updatePeriodSeconds: 1
  +        intervalSeconds: 1
  +        timeoutSeconds: 120
  +    replicas: 2
  +    selector:
  +      name: "frontend"
  +    template:
  +      metadata:
  +        labels:
  +          name: "frontend"
  +      spec:
  +        containers:
  +          -
  +            name: "helloworld"
  +            image: "origin-ruby-sample"
  +            ports:
  +              -
  +                containerPort: 3306
  +                protocol: "TCP"
  +            env:
  +              -
  +                name: "MYSQL_USER"
  +                value: "${MYSQL_USER}" <2>
  +              -
  +                name: "MYSQL_PASSWORD"
  +                value: "${MYSQL_PASSWORD}" <3>
  +              -
  +                name: "MYSQL_DATABASE"
  +                value: "${MYSQL_DATABASE}" <4>
   ----
   
   <1> Other fields on the `DeploymentConfig` are omitted
  
positive.code: ====
  
  ----
  {
    "kind": "Service",
    "apiVersion": "v1",
    "metadata": {
      "name": "example-external-service"
    },
    "spec": {
      "ports": [
        {
          "name": "mysql",
          "protocol": "TCP",
          "port": 1234,
          "targetPort": 1234,
          "nodePort": 0
        }
      ]
    },
    "selector": {} <1>
  }
  ----
  
  <1> The `selector` field to leave blank.
  
negative.code: ====
  
  ----
  ---
    kind: "DeploymentConfig"
    apiVersion: "v1"
    metadata:
      name: "my-app-deployment"
    spec:  <1>
      strategy:
        type: "Rolling"
        rollingParams:
          updatePeriodSeconds: 1
          intervalSeconds: 1
          timeoutSeconds: 120
      replicas: 1
      selector:
        name: "frontend"
      template:
        metadata:
          labels:
            name: "frontend"
        spec:
          containers:
            -
              name: "helloworld"
              image: "openshift/openshift/origin-ruby-sample"
              ports:
                -
                  containerPort: 3306
                  protocol: "TCP"
              env:
                -
                  name: "SAAS_API_KEY" <2>
                  value: "<SaaS service API key>"
                -
                  name: "SAAS_USERNAME" <3>
                  value: "<SaaS service user>"
                -
                  name: "SAAS_PASSPHRASE" <4>
                  value: "<SaaS service passphrase>"
  
  ----
  
  <1> Other fields on the `DeploymentConfig` are omitted.
  