mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-10 16:42:51 +00:00
Merge pull request #4631 from annasong20/localize-test
Add test directory for command localize
This commit is contained in:
20
api/krusty/testdata/localize/simple/deployment.yaml
vendored
Normal file
20
api/krusty/testdata/localize/simple/deployment.yaml
vendored
Normal file
@@ -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
|
||||
8
api/krusty/testdata/localize/simple/kustomization.yaml
vendored
Normal file
8
api/krusty/testdata/localize/simple/kustomization.yaml
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
resources:
|
||||
- ./deployment.yaml
|
||||
- ./service.yaml
|
||||
|
||||
namePrefix: localize-
|
||||
11
api/krusty/testdata/localize/simple/service.yaml
vendored
Normal file
11
api/krusty/testdata/localize/simple/service.yaml
vendored
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user