diff: Fix overlapping filenames

The filename can overlap when multiple resources have the same name (but
obviously are of a different type). Include the name of the type in the
file name to prevent the overlap.
This commit is contained in:
Antoine Pelisse
2018-12-10 15:46:03 -08:00
parent 0914272a42
commit b6135f63aa
7 changed files with 62 additions and 1 deletions

4
hack/testdata/diff/configmap.yaml vendored Normal file
View File

@@ -0,0 +1,4 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: test

17
hack/testdata/diff/deployment.yaml vendored Normal file
View File

@@ -0,0 +1,17 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: test
spec:
replicas: 3
selector:
matchLabels:
name: test
template:
metadata:
labels:
name: test
spec:
containers:
- name: nginx
image: nginx

8
hack/testdata/diff/pod.yaml vendored Normal file
View File

@@ -0,0 +1,8 @@
apiVersion: v1
kind: Pod
metadata:
name: test
spec:
containers:
- name: nginx
image: nginx

4
hack/testdata/diff/secret.yaml vendored Normal file
View File

@@ -0,0 +1,4 @@
apiVersion: v1
kind: Secret
metadata:
name: test