diff --git a/api/krusty/testdata/localize/simple/deployment.yaml b/api/krusty/testdata/localize/simple/deployment.yaml new file mode 100644 index 000000000..6d290ba5e --- /dev/null +++ b/api/krusty/testdata/localize/simple/deployment.yaml @@ -0,0 +1,20 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: test-deployment-simple + labels: + app: deployment-simple +spec: + selector: + matchLabels: + app: simple + template: + metadata: + labels: + app: simple + spec: + containers: + - name: nginx + image: nginx:1.16 + ports: + - containerPort: 8080 diff --git a/api/krusty/testdata/localize/simple/kustomization.yaml b/api/krusty/testdata/localize/simple/kustomization.yaml new file mode 100644 index 000000000..6419c2650 --- /dev/null +++ b/api/krusty/testdata/localize/simple/kustomization.yaml @@ -0,0 +1,8 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +resources: +- ./deployment.yaml +- ./service.yaml + +namePrefix: localize- diff --git a/api/krusty/testdata/localize/simple/service.yaml b/api/krusty/testdata/localize/simple/service.yaml new file mode 100644 index 000000000..23779bd00 --- /dev/null +++ b/api/krusty/testdata/localize/simple/service.yaml @@ -0,0 +1,11 @@ +apiVersion: v1 +kind: Service +metadata: + name: test-service-simple +spec: + selector: + app: deployment-simple + ports: + - protocol: TCP + port: 80 + targetPort: 8080