# Two objects with same name in same namespace (one of them not given, i.e. will use default namespace as passed to kubeval)

apiVersion: v1
kind: ReplicationController
metadata:
  name: "bob"
  namespace: the-default-namespace
spec:
  replicas: 2
  selector:
    app: nginx
  template:
    metadata:
      name: nginx
      labels:
        app: nginx
    spec:
      containers:
      - name: nginx
        image: nginx
        ports:
        - containerPort: 80
---
apiVersion: v1
kind: ReplicationController
metadata:
  name: "bob"
  # namespace not given
spec:
  replicas: 2
  selector:
    app: nginx
  template:
    metadata:
      name: nginx
      labels:
        app: nginx
    spec:
      containers:
      - name: nginx
        image: nginx
        ports:
        - containerPort: 80
