Skip to content

Commit

Permalink
Merge pull request #4631 from annasong20/localize-test
Browse files Browse the repository at this point in the history
Add test directory for command localize
  • Loading branch information
k8s-ci-robot committed May 10, 2022
2 parents d3d9215 + c83ebd9 commit 596519d
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
20 changes: 20 additions & 0 deletions api/krusty/testdata/localize/simple/deployment.yaml
Original file line number Diff line number Diff line change
@@ -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 changes: 8 additions & 0 deletions api/krusty/testdata/localize/simple/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- ./deployment.yaml
- ./service.yaml

namePrefix: localize-
11 changes: 11 additions & 0 deletions api/krusty/testdata/localize/simple/service.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 596519d

Please sign in to comment.