kubectl resource builder: don't check extension for single files

`kubectl create -f filename` doesn't need to check the extension
of filename. This fixes that behavior.
This commit is contained in:
Jeff Lowdermilk
2015-07-07 13:43:55 -07:00
parent e29b76d46e
commit 8d4167e7f6
3 changed files with 42 additions and 4 deletions

13
examples/pod Normal file
View File

@@ -0,0 +1,13 @@
# Copy of pod.yaml without file extension for test
apiVersion: v1
kind: Pod
metadata:
name: nginx
labels:
name: nginx
spec:
containers:
- name: nginx
image: nginx
ports:
- containerPort: 80