mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-05-17 18:25:26 +00:00
Fix test broken by the change in ordering.
This commit is contained in:
@@ -101,6 +101,32 @@ func TestTransformersNoCreateArrays(t *testing.T) {
|
||||
th.AssertActualEqualsExpected(m, `
|
||||
apiVersion: apps/v1
|
||||
kind: StatefulSet
|
||||
metadata:
|
||||
labels:
|
||||
notIn: arrays
|
||||
name: test
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: test
|
||||
notIn: arrays
|
||||
serviceName: test
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: test
|
||||
notIn: arrays
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/nginx-slim:0.8
|
||||
name: nginx
|
||||
ports:
|
||||
- containerPort: 80
|
||||
name: web
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: StatefulSet
|
||||
metadata:
|
||||
labels:
|
||||
notIn: arrays
|
||||
@@ -152,31 +178,5 @@ spec:
|
||||
requests:
|
||||
storage: 100Gi
|
||||
storageClassName: my-storage-class
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: StatefulSet
|
||||
metadata:
|
||||
labels:
|
||||
notIn: arrays
|
||||
name: test
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: test
|
||||
notIn: arrays
|
||||
serviceName: test
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: test
|
||||
notIn: arrays
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/nginx-slim:0.8
|
||||
name: nginx
|
||||
ports:
|
||||
- containerPort: 80
|
||||
name: web
|
||||
`)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user