Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
b409ffa6
Commit
b409ffa6
authored
Dec 19, 2018
by
Jordan Liggitt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update test manifests to apps/v1
parent
fd9e9b01
Hide whitespace changes
Inline
Side-by-side
Showing
35 changed files
with
137 additions
and
71 deletions
+137
-71
deployment-multicontainer-resources.yaml
hack/testdata/deployment-multicontainer-resources.yaml
+1
-1
deployment-multicontainer.yaml
hack/testdata/deployment-multicontainer.yaml
+1
-1
deployment-revision1.yaml
hack/testdata/deployment-revision1.yaml
+1
-1
deployment-revision2.yaml
hack/testdata/deployment-revision2.yaml
+1
-1
deployment-with-UnixUserID.yaml
hack/testdata/deployment-with-UnixUserID.yaml
+6
-1
frontend-replicaset.yaml
hack/testdata/frontend-replicaset.yaml
+8
-12
initializer-deployments.yaml
hack/testdata/initializer-deployments.yaml
+1
-1
list.yaml
hack/testdata/list.yaml
+4
-1
nginx-broken.yaml
...estdata/recursive/deployment/deployment/nginx-broken.yaml
+4
-1
nginx.yaml
hack/testdata/recursive/deployment/deployment/nginx.yaml
+4
-1
nginx.yaml
hack/testdata/recursive/deployment/nginx.yaml
+4
-1
redis-slave-replicaset.yaml
hack/testdata/redis-slave-replicaset.yaml
+10
-13
deployment-after.yaml
hack/testdata/retainKeys/deployment/deployment-after.yaml
+6
-1
deployment-before.yaml
hack/testdata/retainKeys/deployment/deployment-before.yaml
+6
-1
rollingupdate-daemonset-rv2.yaml
hack/testdata/rollingupdate-daemonset-rv2.yaml
+6
-1
rollingupdate-daemonset.yaml
hack/testdata/rollingupdate-daemonset.yaml
+6
-1
scale-deploy-1.yaml
hack/testdata/scale-deploy-1.yaml
+1
-1
scale-deploy-2.yaml
hack/testdata/scale-deploy-2.yaml
+1
-1
scale-deploy-3.yaml
hack/testdata/scale-deploy-3.yaml
+1
-1
frontend-deployment.yaml.in
...e/testing-manifests/guestbook/frontend-deployment.yaml.in
+5
-1
redis-master-deployment.yaml.in
...sting-manifests/guestbook/redis-master-deployment.yaml.in
+6
-1
redis-slave-deployment.yaml.in
...esting-manifests/guestbook/redis-slave-deployment.yaml.in
+6
-1
rc.yaml
test/e2e/testing-manifests/ingress/http2/rc.yaml
+4
-1
rc.yaml
test/e2e/testing-manifests/ingress/neg-clusterip/rc.yaml
+4
-1
rc.yaml
test/e2e/testing-manifests/ingress/neg-exposed/rc.yaml
+4
-1
rc.yaml
test/e2e/testing-manifests/ingress/neg/rc.yaml
+4
-1
daemon.yaml
test/fixtures/doc-yaml/admin/daemon.yaml
+4
-1
deployment.yaml
test/fixtures/doc-yaml/user-guide/deployment.yaml
+1
-1
redis-slave.yaml
.../fixtures/doc-yaml/user-guide/replicaset/redis-slave.yaml
+10
-13
deploy-clientside.yaml
test/fixtures/pkg/kubectl/cmd/apply/deploy-clientside.yaml
+6
-1
deploy-serverside.yaml
test/fixtures/pkg/kubectl/cmd/apply/deploy-serverside.yaml
+2
-2
v1HPA.yaml
test/fixtures/pkg/kubectl/cmd/convert/v1HPA.yaml
+1
-1
v2beta1HPA.yaml
test/fixtures/pkg/kubectl/cmd/convert/v2beta1HPA.yaml
+1
-1
example-daemon.yaml
test/images/apparmor-loader/example-daemon.yaml
+6
-1
kube_dns_template.yaml
test/kubemark/resources/kube_dns_template.yaml
+1
-1
No files found.
hack/testdata/deployment-multicontainer-resources.yaml
View file @
b409ffa6
apiVersion
:
extensions/v1beta
1
apiVersion
:
apps/v
1
kind
:
Deployment
metadata
:
name
:
nginx-deployment-resources
...
...
hack/testdata/deployment-multicontainer.yaml
View file @
b409ffa6
apiVersion
:
extensions/v1beta
1
apiVersion
:
apps/v
1
kind
:
Deployment
metadata
:
name
:
nginx-deployment
...
...
hack/testdata/deployment-revision1.yaml
View file @
b409ffa6
apiVersion
:
extensions/v1beta
1
apiVersion
:
apps/v
1
kind
:
Deployment
metadata
:
name
:
nginx
...
...
hack/testdata/deployment-revision2.yaml
View file @
b409ffa6
apiVersion
:
extensions/v1beta
1
apiVersion
:
apps/v
1
kind
:
Deployment
metadata
:
name
:
nginx
...
...
hack/testdata/deployment-with-UnixUserID.yaml
View file @
b409ffa6
apiVersion
:
extensions/v1beta
1
apiVersion
:
apps/v
1
kind
:
Deployment
metadata
:
name
:
deployment-with-unixuserid
labels
:
app
:
nginx
spec
:
replicas
:
1
selector
:
matchLabels
:
app
:
nginx
template
:
metadata
:
labels
:
...
...
hack/testdata/frontend-replicaset.yaml
View file @
b409ffa6
apiVersion
:
extensions/v1beta
1
apiVersion
:
apps/v
1
kind
:
ReplicaSet
metadata
:
name
:
frontend
# these labels can be applied automatically
# from the labels in the pod template if not set
# labels:
# app: guestbook
# tier: frontend
labels
:
app
:
guestbook
tier
:
frontend
spec
:
# this replicas value is default
# modify it according to your case
replicas
:
3
# selector can be applied automatically
# from the labels in the pod template if not set
# selector:
# matchLabels:
# app: guestbook
# tier: frontend
selector
:
matchLabels
:
app
:
guestbook
tier
:
frontend
template
:
metadata
:
labels
:
...
...
hack/testdata/initializer-deployments.yaml
View file @
b409ffa6
apiVersion
:
extensions/v1beta
1
apiVersion
:
apps/v
1
kind
:
Deployment
metadata
:
name
:
web
...
...
hack/testdata/list.yaml
View file @
b409ffa6
...
...
@@ -11,7 +11,7 @@ items:
port
:
80
selector
:
app
:
list-deployment-test
-
apiVersion
:
extensions/v1beta
1
-
apiVersion
:
apps/v
1
kind
:
Deployment
metadata
:
name
:
list-deployment-test
...
...
@@ -19,6 +19,9 @@ items:
app
:
list-deployment-test
spec
:
replicas
:
1
selector
:
matchLabels
:
app
:
list-deployment-test
template
:
metadata
:
labels
:
...
...
hack/testdata/recursive/deployment/deployment/nginx-broken.yaml
View file @
b409ffa6
apiVersion
:
extensions/v1beta
1
apiVersion
:
apps/v
1
ind
:
Deployment
metadata
:
name
:
nginx2-deployment
...
...
@@ -6,6 +6,9 @@ metadata:
app
:
nginx2-deployment
spec
:
replicas
:
2
selector
:
matchLabels
:
app
:
nginx2
template
:
metadata
:
labels
:
...
...
hack/testdata/recursive/deployment/deployment/nginx.yaml
View file @
b409ffa6
apiVersion
:
extensions/v1beta
1
apiVersion
:
apps/v
1
kind
:
Deployment
metadata
:
name
:
nginx1-deployment
...
...
@@ -6,6 +6,9 @@ metadata:
app
:
nginx1-deployment
spec
:
replicas
:
2
selector
:
matchLabels
:
app
:
nginx1
template
:
metadata
:
labels
:
...
...
hack/testdata/recursive/deployment/nginx.yaml
View file @
b409ffa6
apiVersion
:
extensions/v1beta
1
apiVersion
:
apps/v
1
kind
:
Deployment
metadata
:
name
:
nginx0-deployment
...
...
@@ -6,6 +6,9 @@ metadata:
app
:
nginx0-deployment
spec
:
replicas
:
2
selector
:
matchLabels
:
app
:
nginx0
template
:
metadata
:
labels
:
...
...
hack/testdata/redis-slave-replicaset.yaml
View file @
b409ffa6
apiVersion
:
extensions/v1beta
1
apiVersion
:
apps/v
1
kind
:
ReplicaSet
metadata
:
name
:
redis-slave
# these labels can be applied automatically
# from the labels in the pod template if not set
# labels:
# app: redis
# role: slave
# tier: backend
labels
:
app
:
redis
role
:
slave
tier
:
backend
spec
:
# this replicas value is default
# modify it according to your case
replicas
:
2
# selector can be applied automatically
# from the labels in the pod template if not set
# selector:
# app: guestbook
# role: slave
# tier: backend
selector
:
matchLabels
:
app
:
redis
role
:
slave
tier
:
backend
template
:
metadata
:
labels
:
...
...
hack/testdata/retainKeys/deployment/deployment-after.yaml
View file @
b409ffa6
apiVersion
:
extensions/v1beta
1
apiVersion
:
apps/v
1
kind
:
Deployment
metadata
:
name
:
test-deployment-retainkeys
labels
:
app
:
nginx
spec
:
strategy
:
type
:
Recreate
replicas
:
1
selector
:
matchLabels
:
app
:
nginx
template
:
metadata
:
labels
:
...
...
hack/testdata/retainKeys/deployment/deployment-before.yaml
View file @
b409ffa6
apiVersion
:
extensions/v1beta
1
apiVersion
:
apps/v
1
kind
:
Deployment
metadata
:
name
:
test-deployment-retainkeys
labels
:
app
:
nginx
spec
:
replicas
:
1
selector
:
matchLabels
:
app
:
nginx
template
:
metadata
:
labels
:
...
...
hack/testdata/rollingupdate-daemonset-rv2.yaml
View file @
b409ffa6
apiVersion
:
extensions/v1beta
1
apiVersion
:
apps/v
1
kind
:
DaemonSet
metadata
:
name
:
bind
labels
:
service
:
bind
spec
:
selector
:
matchLabels
:
service
:
bind
updateStrategy
:
type
:
RollingUpdate
rollingUpdate
:
...
...
hack/testdata/rollingupdate-daemonset.yaml
View file @
b409ffa6
apiVersion
:
extensions/v1beta
1
apiVersion
:
apps/v
1
kind
:
DaemonSet
metadata
:
name
:
bind
labels
:
service
:
bind
spec
:
selector
:
matchLabels
:
service
:
bind
updateStrategy
:
type
:
RollingUpdate
rollingUpdate
:
...
...
hack/testdata/scale-deploy-1.yaml
View file @
b409ffa6
apiVersion
:
extensions/v1beta
1
apiVersion
:
apps/v
1
kind
:
Deployment
metadata
:
labels
:
...
...
hack/testdata/scale-deploy-2.yaml
View file @
b409ffa6
apiVersion
:
extensions/v1beta
1
apiVersion
:
apps/v
1
kind
:
Deployment
metadata
:
labels
:
...
...
hack/testdata/scale-deploy-3.yaml
View file @
b409ffa6
apiVersion
:
extensions/v1beta
1
apiVersion
:
apps/v
1
kind
:
Deployment
metadata
:
labels
:
...
...
test/e2e/testing-manifests/guestbook/frontend-deployment.yaml.in
View file @
b409ffa6
apiVersion:
extensions/v1beta
1
apiVersion:
apps/v
1
kind: Deployment
metadata:
name: frontend
spec:
replicas: 3
selector:
matchLabels:
app: guestbook
tier: frontend
template:
metadata:
labels:
...
...
test/e2e/testing-manifests/guestbook/redis-master-deployment.yaml.in
View file @
b409ffa6
apiVersion:
extensions/v1beta
1
apiVersion:
apps/v
1
kind: Deployment
metadata:
name: redis-master
spec:
replicas: 1
selector:
matchLabels:
app: redis
role: master
tier: backend
template:
metadata:
labels:
...
...
test/e2e/testing-manifests/guestbook/redis-slave-deployment.yaml.in
View file @
b409ffa6
apiVersion:
extensions/v1beta
1
apiVersion:
apps/v
1
kind: Deployment
metadata:
name: redis-slave
spec:
replicas: 2
selector:
matchLabels:
app: redis
role: slave
tier: backend
template:
metadata:
labels:
...
...
test/e2e/testing-manifests/ingress/http2/rc.yaml
View file @
b409ffa6
apiVersion
:
extensions/v1beta
1
apiVersion
:
apps/v
1
kind
:
Deployment
metadata
:
name
:
echoheaders
spec
:
replicas
:
1
selector
:
matchLabels
:
app
:
echoheaders
template
:
metadata
:
labels
:
...
...
test/e2e/testing-manifests/ingress/neg-clusterip/rc.yaml
View file @
b409ffa6
apiVersion
:
extensions/v1beta
1
apiVersion
:
apps/v
1
kind
:
Deployment
metadata
:
labels
:
...
...
@@ -6,6 +6,9 @@ metadata:
name
:
hostname
spec
:
minReadySeconds
:
60
selector
:
matchLabels
:
run
:
hostname
template
:
metadata
:
labels
:
...
...
test/e2e/testing-manifests/ingress/neg-exposed/rc.yaml
View file @
b409ffa6
apiVersion
:
extensions/v1beta
1
apiVersion
:
apps/v
1
kind
:
Deployment
metadata
:
labels
:
run
:
hostname
name
:
hostname
spec
:
selector
:
matchLabels
:
run
:
hostname
template
:
metadata
:
labels
:
...
...
test/e2e/testing-manifests/ingress/neg/rc.yaml
View file @
b409ffa6
apiVersion
:
extensions/v1beta
1
apiVersion
:
apps/v
1
kind
:
Deployment
metadata
:
labels
:
...
...
@@ -6,6 +6,9 @@ metadata:
name
:
hostname
spec
:
minReadySeconds
:
60
selector
:
matchLabels
:
run
:
hostname
template
:
metadata
:
labels
:
...
...
test/fixtures/doc-yaml/admin/daemon.yaml
View file @
b409ffa6
apiVersion
:
extensions/v1beta
1
apiVersion
:
apps/v
1
kind
:
DaemonSet
metadata
:
name
:
prometheus-node-exporter
spec
:
selector
:
matchLabels
:
daemon
:
prom-node-exp
template
:
metadata
:
name
:
prometheus-node-exporter
...
...
test/fixtures/doc-yaml/user-guide/deployment.yaml
View file @
b409ffa6
apiVersion
:
extensions/v1beta
1
apiVersion
:
apps/v
1
kind
:
Deployment
metadata
:
name
:
nginx-deployment
...
...
test/fixtures/doc-yaml/user-guide/replicaset/redis-slave.yaml
View file @
b409ffa6
apiVersion
:
extensions/v1beta
1
apiVersion
:
apps/v
1
kind
:
ReplicaSet
metadata
:
name
:
redis-slave
# these labels can be applied automatically
# from the labels in the pod template if not set
# labels:
# app: redis
# role: slave
# tier: backend
labels
:
app
:
redis
role
:
slave
tier
:
backend
spec
:
# this replicas value is default
# modify it according to your case
replicas
:
2
# selector can be applied automatically
# from the labels in the pod template if not set
# selector:
# app: guestbook
# role: slave
# tier: backend
selector
:
matchLabels
:
app
:
redis
role
:
slave
tier
:
backend
template
:
metadata
:
labels
:
...
...
test/fixtures/pkg/kubectl/cmd/apply/deploy-clientside.yaml
View file @
b409ffa6
apiVersion
:
extensions/v1beta
1
apiVersion
:
apps/v
1
kind
:
Deployment
metadata
:
name
:
nginx-deployment
labels
:
name
:
nginx
spec
:
selector
:
matchLabels
:
name
:
nginx
strategy
:
type
:
Recreate
rollingUpdate
:
null
...
...
test/fixtures/pkg/kubectl/cmd/apply/deploy-serverside.yaml
View file @
b409ffa6
apiVersion
:
extensions/v1beta
1
apiVersion
:
apps/v
1
kind
:
Deployment
metadata
:
annotations
:
deployment.kubernetes.io/revision
:
"
1"
kubectl.kubernetes.io/last-applied-configuration
:
'
{"kind":"Deployment","apiVersion":"
extensions/v1beta1","metadata":{"name":"nginx-deployment","creationTimestamp":null},"spec":{
"template":{"metadata":{"creationTimestamp":null,"labels":{"name":"nginx"}},"spec":{"containers":[{"name":"nginx","image":"nginx","resources":{}}]}},"strategy":{}},"status":{}}'
kubectl.kubernetes.io/last-applied-configuration
:
'
{"kind":"Deployment","apiVersion":"
apps/v1","metadata":{"name":"nginx-deployment","creationTimestamp":null,"labels":{"name":"nginx"}},"spec":{"selector":{"matchLabels":{"name":"nginx"}},
"template":{"metadata":{"creationTimestamp":null,"labels":{"name":"nginx"}},"spec":{"containers":[{"name":"nginx","image":"nginx","resources":{}}]}},"strategy":{}},"status":{}}'
creationTimestamp
:
"
2016-10-24T22:15:06Z"
generation
:
6
labels
:
...
...
test/fixtures/pkg/kubectl/cmd/convert/v1HPA.yaml
View file @
b409ffa6
...
...
@@ -4,7 +4,7 @@ metadata:
name
:
php-apache
spec
:
scaleTargetRef
:
apiVersion
:
apps/v1
beta1
apiVersion
:
apps/v1
kind
:
Deployment
name
:
php-apache
minReplicas
:
1
...
...
test/fixtures/pkg/kubectl/cmd/convert/v2beta1HPA.yaml
View file @
b409ffa6
...
...
@@ -4,7 +4,7 @@ metadata:
name
:
php-apache
spec
:
scaleTargetRef
:
apiVersion
:
apps/v1
beta1
apiVersion
:
apps/v1
kind
:
Deployment
name
:
php-apache
minReplicas
:
1
...
...
test/images/apparmor-loader/example-daemon.yaml
View file @
b409ffa6
# The example DaemonSet demonstrating how the profile loader can be deployed onto a cluster to
# automatically load AppArmor profiles from a ConfigMap.
apiVersion
:
extensions/v1beta
1
apiVersion
:
apps/v
1
kind
:
DaemonSet
metadata
:
name
:
apparmor-loader
# Namespace must match that of the ConfigMap.
namespace
:
apparmor
labels
:
daemon
:
apparmor-loader
spec
:
selector
:
matchLabels
:
daemon
:
apparmor-loader
template
:
metadata
:
name
:
apparmor-loader
...
...
test/kubemark/resources/kube_dns_template.yaml
View file @
b409ffa6
...
...
@@ -36,7 +36,7 @@ metadata:
labels
:
addonmanager.kubernetes.io/mode
:
EnsureExists
---
apiVersion
:
extensions/v1beta
1
apiVersion
:
apps/v
1
kind
:
Deployment
metadata
:
name
:
kube-dns
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment