kubeconform/fixtures/duplicates-with-namespace-default.yaml
2020-06-06 18:46:08 +02:00

43 lines
795 B
YAML

# 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