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
5a9e5be4
Commit
5a9e5be4
authored
May 26, 2016
by
Chao Xu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
expose GET and PATCH for status subresource
parent
0f300367
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
85 additions
and
0 deletions
+85
-0
etcd.go
pkg/registry/controller/etcd/etcd.go
+5
-0
etcd.go
pkg/registry/daemonset/etcd/etcd.go
+5
-0
etcd.go
pkg/registry/deployment/etcd/etcd.go
+5
-0
etcd.go
pkg/registry/horizontalpodautoscaler/etcd/etcd.go
+5
-0
etcd.go
pkg/registry/ingress/etcd/etcd.go
+5
-0
etcd.go
pkg/registry/job/etcd/etcd.go
+5
-0
etcd.go
pkg/registry/namespace/etcd/etcd.go
+5
-0
etcd.go
pkg/registry/node/etcd/etcd.go
+5
-0
etcd.go
pkg/registry/persistentvolume/etcd/etcd.go
+5
-0
etcd.go
pkg/registry/persistentvolumeclaim/etcd/etcd.go
+5
-0
etcd.go
pkg/registry/petset/etcd/etcd.go
+5
-0
etcd.go
pkg/registry/pod/etcd/etcd.go
+5
-0
etcd.go
pkg/registry/poddisruptionbudget/etcd/etcd.go
+5
-0
etcd.go
pkg/registry/replicaset/etcd/etcd.go
+5
-0
etcd.go
pkg/registry/resourcequota/etcd/etcd.go
+5
-0
etcd.go
pkg/registry/scheduledjob/etcd/etcd.go
+5
-0
etcd.go
pkg/registry/service/etcd/etcd.go
+5
-0
No files found.
pkg/registry/controller/etcd/etcd.go
View file @
5a9e5be4
...
...
@@ -116,6 +116,11 @@ func (r *StatusREST) New() runtime.Object {
return
&
api
.
ReplicationController
{}
}
// Get retrieves the object from the storage. It is required to support Patch.
func
(
r
*
StatusREST
)
Get
(
ctx
api
.
Context
,
name
string
)
(
runtime
.
Object
,
error
)
{
return
r
.
store
.
Get
(
ctx
,
name
)
}
// Update alters the status subset of an object.
func
(
r
*
StatusREST
)
Update
(
ctx
api
.
Context
,
name
string
,
objInfo
rest
.
UpdatedObjectInfo
)
(
runtime
.
Object
,
bool
,
error
)
{
return
r
.
store
.
Update
(
ctx
,
name
,
objInfo
)
...
...
pkg/registry/daemonset/etcd/etcd.go
View file @
5a9e5be4
...
...
@@ -92,6 +92,11 @@ func (r *StatusREST) New() runtime.Object {
return
&
extensions
.
DaemonSet
{}
}
// Get retrieves the object from the storage. It is required to support Patch.
func
(
r
*
StatusREST
)
Get
(
ctx
api
.
Context
,
name
string
)
(
runtime
.
Object
,
error
)
{
return
r
.
store
.
Get
(
ctx
,
name
)
}
// Update alters the status subset of an object.
func
(
r
*
StatusREST
)
Update
(
ctx
api
.
Context
,
name
string
,
objInfo
rest
.
UpdatedObjectInfo
)
(
runtime
.
Object
,
bool
,
error
)
{
return
r
.
store
.
Update
(
ctx
,
name
,
objInfo
)
...
...
pkg/registry/deployment/etcd/etcd.go
View file @
5a9e5be4
...
...
@@ -115,6 +115,11 @@ func (r *StatusREST) New() runtime.Object {
return
&
extensions
.
Deployment
{}
}
// Get retrieves the object from the storage. It is required to support Patch.
func
(
r
*
StatusREST
)
Get
(
ctx
api
.
Context
,
name
string
)
(
runtime
.
Object
,
error
)
{
return
r
.
store
.
Get
(
ctx
,
name
)
}
// Update alters the status subset of an object.
func
(
r
*
StatusREST
)
Update
(
ctx
api
.
Context
,
name
string
,
objInfo
rest
.
UpdatedObjectInfo
)
(
runtime
.
Object
,
bool
,
error
)
{
return
r
.
store
.
Update
(
ctx
,
name
,
objInfo
)
...
...
pkg/registry/horizontalpodautoscaler/etcd/etcd.go
View file @
5a9e5be4
...
...
@@ -89,6 +89,11 @@ func (r *StatusREST) New() runtime.Object {
return
&
autoscaling
.
HorizontalPodAutoscaler
{}
}
// Get retrieves the object from the storage. It is required to support Patch.
func
(
r
*
StatusREST
)
Get
(
ctx
api
.
Context
,
name
string
)
(
runtime
.
Object
,
error
)
{
return
r
.
store
.
Get
(
ctx
,
name
)
}
// Update alters the status subset of an object.
func
(
r
*
StatusREST
)
Update
(
ctx
api
.
Context
,
name
string
,
objInfo
rest
.
UpdatedObjectInfo
)
(
runtime
.
Object
,
bool
,
error
)
{
return
r
.
store
.
Update
(
ctx
,
name
,
objInfo
)
...
...
pkg/registry/ingress/etcd/etcd.go
View file @
5a9e5be4
...
...
@@ -91,6 +91,11 @@ func (r *StatusREST) New() runtime.Object {
return
&
extensions
.
Ingress
{}
}
// Get retrieves the object from the storage. It is required to support Patch.
func
(
r
*
StatusREST
)
Get
(
ctx
api
.
Context
,
name
string
)
(
runtime
.
Object
,
error
)
{
return
r
.
store
.
Get
(
ctx
,
name
)
}
// Update alters the status subset of an object.
func
(
r
*
StatusREST
)
Update
(
ctx
api
.
Context
,
name
string
,
objInfo
rest
.
UpdatedObjectInfo
)
(
runtime
.
Object
,
bool
,
error
)
{
return
r
.
store
.
Update
(
ctx
,
name
,
objInfo
)
...
...
pkg/registry/job/etcd/etcd.go
View file @
5a9e5be4
...
...
@@ -93,6 +93,11 @@ func (r *StatusREST) New() runtime.Object {
return
&
batch
.
Job
{}
}
// Get retrieves the object from the storage. It is required to support Patch.
func
(
r
*
StatusREST
)
Get
(
ctx
api
.
Context
,
name
string
)
(
runtime
.
Object
,
error
)
{
return
r
.
store
.
Get
(
ctx
,
name
)
}
// Update alters the status subset of an object.
func
(
r
*
StatusREST
)
Update
(
ctx
api
.
Context
,
name
string
,
objInfo
rest
.
UpdatedObjectInfo
)
(
runtime
.
Object
,
bool
,
error
)
{
return
r
.
store
.
Update
(
ctx
,
name
,
objInfo
)
...
...
pkg/registry/namespace/etcd/etcd.go
View file @
5a9e5be4
...
...
@@ -176,6 +176,11 @@ func (r *StatusREST) New() runtime.Object {
return
r
.
store
.
New
()
}
// Get retrieves the object from the storage. It is required to support Patch.
func
(
r
*
StatusREST
)
Get
(
ctx
api
.
Context
,
name
string
)
(
runtime
.
Object
,
error
)
{
return
r
.
store
.
Get
(
ctx
,
name
)
}
// Update alters the status subset of an object.
func
(
r
*
StatusREST
)
Update
(
ctx
api
.
Context
,
name
string
,
objInfo
rest
.
UpdatedObjectInfo
)
(
runtime
.
Object
,
bool
,
error
)
{
return
r
.
store
.
Update
(
ctx
,
name
,
objInfo
)
...
...
pkg/registry/node/etcd/etcd.go
View file @
5a9e5be4
...
...
@@ -54,6 +54,11 @@ func (r *StatusREST) New() runtime.Object {
return
&
api
.
Node
{}
}
// Get retrieves the object from the storage. It is required to support Patch.
func
(
r
*
StatusREST
)
Get
(
ctx
api
.
Context
,
name
string
)
(
runtime
.
Object
,
error
)
{
return
r
.
store
.
Get
(
ctx
,
name
)
}
// Update alters the status subset of an object.
func
(
r
*
StatusREST
)
Update
(
ctx
api
.
Context
,
name
string
,
objInfo
rest
.
UpdatedObjectInfo
)
(
runtime
.
Object
,
bool
,
error
)
{
return
r
.
store
.
Update
(
ctx
,
name
,
objInfo
)
...
...
pkg/registry/persistentvolume/etcd/etcd.go
View file @
5a9e5be4
...
...
@@ -81,6 +81,11 @@ func (r *StatusREST) New() runtime.Object {
return
&
api
.
PersistentVolume
{}
}
// Get retrieves the object from the storage. It is required to support Patch.
func
(
r
*
StatusREST
)
Get
(
ctx
api
.
Context
,
name
string
)
(
runtime
.
Object
,
error
)
{
return
r
.
store
.
Get
(
ctx
,
name
)
}
// Update alters the status subset of an object.
func
(
r
*
StatusREST
)
Update
(
ctx
api
.
Context
,
name
string
,
objInfo
rest
.
UpdatedObjectInfo
)
(
runtime
.
Object
,
bool
,
error
)
{
return
r
.
store
.
Update
(
ctx
,
name
,
objInfo
)
...
...
pkg/registry/persistentvolumeclaim/etcd/etcd.go
View file @
5a9e5be4
...
...
@@ -81,6 +81,11 @@ func (r *StatusREST) New() runtime.Object {
return
&
api
.
PersistentVolumeClaim
{}
}
// Get retrieves the object from the storage. It is required to support Patch.
func
(
r
*
StatusREST
)
Get
(
ctx
api
.
Context
,
name
string
)
(
runtime
.
Object
,
error
)
{
return
r
.
store
.
Get
(
ctx
,
name
)
}
// Update alters the status subset of an object.
func
(
r
*
StatusREST
)
Update
(
ctx
api
.
Context
,
name
string
,
objInfo
rest
.
UpdatedObjectInfo
)
(
runtime
.
Object
,
bool
,
error
)
{
return
r
.
store
.
Update
(
ctx
,
name
,
objInfo
)
...
...
pkg/registry/petset/etcd/etcd.go
View file @
5a9e5be4
...
...
@@ -91,6 +91,11 @@ func (r *StatusREST) New() runtime.Object {
return
&
appsapi
.
PetSet
{}
}
// Get retrieves the object from the storage. It is required to support Patch.
func
(
r
*
StatusREST
)
Get
(
ctx
api
.
Context
,
name
string
)
(
runtime
.
Object
,
error
)
{
return
r
.
store
.
Get
(
ctx
,
name
)
}
// Update alters the status subset of an object.
func
(
r
*
StatusREST
)
Update
(
ctx
api
.
Context
,
name
string
,
objInfo
rest
.
UpdatedObjectInfo
)
(
runtime
.
Object
,
bool
,
error
)
{
return
r
.
store
.
Update
(
ctx
,
name
,
objInfo
)
...
...
pkg/registry/pod/etcd/etcd.go
View file @
5a9e5be4
...
...
@@ -198,6 +198,11 @@ func (r *StatusREST) New() runtime.Object {
return
&
api
.
Pod
{}
}
// Get retrieves the object from the storage. It is required to support Patch.
func
(
r
*
StatusREST
)
Get
(
ctx
api
.
Context
,
name
string
)
(
runtime
.
Object
,
error
)
{
return
r
.
store
.
Get
(
ctx
,
name
)
}
// Update alters the status subset of an object.
func
(
r
*
StatusREST
)
Update
(
ctx
api
.
Context
,
name
string
,
objInfo
rest
.
UpdatedObjectInfo
)
(
runtime
.
Object
,
bool
,
error
)
{
return
r
.
store
.
Update
(
ctx
,
name
,
objInfo
)
...
...
pkg/registry/poddisruptionbudget/etcd/etcd.go
View file @
5a9e5be4
...
...
@@ -91,6 +91,11 @@ func (r *StatusREST) New() runtime.Object {
return
&
policyapi
.
PodDisruptionBudget
{}
}
// Get retrieves the object from the storage. It is required to support Patch.
func
(
r
*
StatusREST
)
Get
(
ctx
api
.
Context
,
name
string
)
(
runtime
.
Object
,
error
)
{
return
r
.
store
.
Get
(
ctx
,
name
)
}
// Update alters the status subset of an object.
func
(
r
*
StatusREST
)
Update
(
ctx
api
.
Context
,
name
string
,
objInfo
rest
.
UpdatedObjectInfo
)
(
runtime
.
Object
,
bool
,
error
)
{
return
r
.
store
.
Update
(
ctx
,
name
,
objInfo
)
...
...
pkg/registry/replicaset/etcd/etcd.go
View file @
5a9e5be4
...
...
@@ -115,6 +115,11 @@ func (r *StatusREST) New() runtime.Object {
return
&
extensions
.
ReplicaSet
{}
}
// Get retrieves the object from the storage. It is required to support Patch.
func
(
r
*
StatusREST
)
Get
(
ctx
api
.
Context
,
name
string
)
(
runtime
.
Object
,
error
)
{
return
r
.
store
.
Get
(
ctx
,
name
)
}
// Update alters the status subset of an object.
func
(
r
*
StatusREST
)
Update
(
ctx
api
.
Context
,
name
string
,
objInfo
rest
.
UpdatedObjectInfo
)
(
runtime
.
Object
,
bool
,
error
)
{
return
r
.
store
.
Update
(
ctx
,
name
,
objInfo
)
...
...
pkg/registry/resourcequota/etcd/etcd.go
View file @
5a9e5be4
...
...
@@ -81,6 +81,11 @@ func (r *StatusREST) New() runtime.Object {
return
&
api
.
ResourceQuota
{}
}
// Get retrieves the object from the storage. It is required to support Patch.
func
(
r
*
StatusREST
)
Get
(
ctx
api
.
Context
,
name
string
)
(
runtime
.
Object
,
error
)
{
return
r
.
store
.
Get
(
ctx
,
name
)
}
// Update alters the status subset of an object.
func
(
r
*
StatusREST
)
Update
(
ctx
api
.
Context
,
name
string
,
objInfo
rest
.
UpdatedObjectInfo
)
(
runtime
.
Object
,
bool
,
error
)
{
return
r
.
store
.
Update
(
ctx
,
name
,
objInfo
)
...
...
pkg/registry/scheduledjob/etcd/etcd.go
View file @
5a9e5be4
...
...
@@ -92,6 +92,11 @@ func (r *StatusREST) New() runtime.Object {
return
&
batch
.
ScheduledJob
{}
}
// Get retrieves the object from the storage. It is required to support Patch.
func
(
r
*
StatusREST
)
Get
(
ctx
api
.
Context
,
name
string
)
(
runtime
.
Object
,
error
)
{
return
r
.
store
.
Get
(
ctx
,
name
)
}
// Update alters the status subset of an object.
func
(
r
*
StatusREST
)
Update
(
ctx
api
.
Context
,
obj
runtime
.
Object
)
(
runtime
.
Object
,
bool
,
error
)
{
return
r
.
store
.
Update
(
ctx
,
obj
)
...
...
pkg/registry/service/etcd/etcd.go
View file @
5a9e5be4
...
...
@@ -79,6 +79,11 @@ func (r *StatusREST) New() runtime.Object {
return
&
api
.
Service
{}
}
// Get retrieves the object from the storage. It is required to support Patch.
func
(
r
*
StatusREST
)
Get
(
ctx
api
.
Context
,
name
string
)
(
runtime
.
Object
,
error
)
{
return
r
.
store
.
Get
(
ctx
,
name
)
}
// Update alters the status subset of an object.
func
(
r
*
StatusREST
)
Update
(
ctx
api
.
Context
,
name
string
,
objInfo
rest
.
UpdatedObjectInfo
)
(
runtime
.
Object
,
bool
,
error
)
{
return
r
.
store
.
Update
(
ctx
,
name
,
objInfo
)
...
...
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