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
716bac3b
Unverified
Commit
716bac3b
authored
Sep 12, 2016
by
Clayton Coleman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
All REST that set DeleteCollectionWorkers should set EnableGC
parent
acb4c00b
Hide whitespace changes
Inline
Side-by-side
Showing
35 changed files
with
37 additions
and
1 deletion
+37
-1
etcd.go
federation/registry/cluster/etcd/etcd.go
+1
-0
etcd.go
pkg/registry/certificates/etcd/etcd.go
+1
-0
etcd.go
pkg/registry/clusterrole/etcd/etcd.go
+1
-0
etcd.go
pkg/registry/clusterrolebinding/etcd/etcd.go
+1
-0
etcd.go
pkg/registry/configmap/etcd/etcd.go
+1
-0
etcd.go
pkg/registry/controller/etcd/etcd.go
+1
-0
etcd.go
pkg/registry/daemonset/etcd/etcd.go
+1
-0
etcd.go
pkg/registry/deployment/etcd/etcd.go
+1
-0
etcd.go
pkg/registry/endpoint/etcd/etcd.go
+1
-0
etcd.go
pkg/registry/event/etcd/etcd.go
+3
-1
etcd.go
pkg/registry/horizontalpodautoscaler/etcd/etcd.go
+1
-0
etcd.go
pkg/registry/ingress/etcd/etcd.go
+1
-0
etcd.go
pkg/registry/job/etcd/etcd.go
+1
-0
etcd.go
pkg/registry/limitrange/etcd/etcd.go
+1
-0
etcd.go
pkg/registry/namespace/etcd/etcd.go
+1
-0
etcd.go
pkg/registry/networkpolicy/etcd/etcd.go
+1
-0
etcd.go
pkg/registry/node/etcd/etcd.go
+1
-0
etcd.go
pkg/registry/persistentvolume/etcd/etcd.go
+1
-0
etcd.go
pkg/registry/persistentvolumeclaim/etcd/etcd.go
+1
-0
etcd.go
pkg/registry/petset/etcd/etcd.go
+1
-0
etcd.go
pkg/registry/pod/etcd/etcd.go
+1
-0
etcd.go
pkg/registry/poddisruptionbudget/etcd/etcd.go
+1
-0
etcd.go
pkg/registry/podsecuritypolicy/etcd/etcd.go
+1
-0
etcd.go
pkg/registry/podtemplate/etcd/etcd.go
+1
-0
etcd.go
pkg/registry/replicaset/etcd/etcd.go
+1
-0
etcd.go
pkg/registry/resourcequota/etcd/etcd.go
+1
-0
etcd.go
pkg/registry/role/etcd/etcd.go
+1
-0
etcd.go
pkg/registry/rolebinding/etcd/etcd.go
+1
-0
etcd.go
pkg/registry/scheduledjob/etcd/etcd.go
+1
-0
etcd.go
pkg/registry/secret/etcd/etcd.go
+1
-0
etcd.go
pkg/registry/service/etcd/etcd.go
+1
-0
etcd.go
pkg/registry/serviceaccount/etcd/etcd.go
+1
-0
etcd.go
pkg/registry/storageclass/etcd/etcd.go
+1
-0
etcd.go
pkg/registry/thirdpartyresource/etcd/etcd.go
+1
-0
etcd.go
pkg/registry/thirdpartyresourcedata/etcd/etcd.go
+1
-0
No files found.
federation/registry/cluster/etcd/etcd.go
View file @
716bac3b
...
@@ -73,6 +73,7 @@ func NewREST(opts generic.RESTOptions) (*REST, *StatusREST) {
...
@@ -73,6 +73,7 @@ func NewREST(opts generic.RESTOptions) (*REST, *StatusREST) {
},
},
PredicateFunc
:
cluster
.
MatchCluster
,
PredicateFunc
:
cluster
.
MatchCluster
,
QualifiedResource
:
federation
.
Resource
(
"clusters"
),
QualifiedResource
:
federation
.
Resource
(
"clusters"
),
EnableGarbageCollection
:
opts
.
EnableGarbageCollection
,
DeleteCollectionWorkers
:
opts
.
DeleteCollectionWorkers
,
DeleteCollectionWorkers
:
opts
.
DeleteCollectionWorkers
,
CreateStrategy
:
cluster
.
Strategy
,
CreateStrategy
:
cluster
.
Strategy
,
...
...
pkg/registry/certificates/etcd/etcd.go
View file @
716bac3b
...
@@ -66,6 +66,7 @@ func NewREST(opts generic.RESTOptions) (*REST, *StatusREST, *ApprovalREST) {
...
@@ -66,6 +66,7 @@ func NewREST(opts generic.RESTOptions) (*REST, *StatusREST, *ApprovalREST) {
return
csrregistry
.
Matcher
(
label
,
field
)
return
csrregistry
.
Matcher
(
label
,
field
)
},
},
QualifiedResource
:
certificates
.
Resource
(
"certificatesigningrequests"
),
QualifiedResource
:
certificates
.
Resource
(
"certificatesigningrequests"
),
EnableGarbageCollection
:
opts
.
EnableGarbageCollection
,
DeleteCollectionWorkers
:
opts
.
DeleteCollectionWorkers
,
DeleteCollectionWorkers
:
opts
.
DeleteCollectionWorkers
,
CreateStrategy
:
csrregistry
.
Strategy
,
CreateStrategy
:
csrregistry
.
Strategy
,
...
...
pkg/registry/clusterrole/etcd/etcd.go
View file @
716bac3b
...
@@ -61,6 +61,7 @@ func NewREST(opts generic.RESTOptions) *REST {
...
@@ -61,6 +61,7 @@ func NewREST(opts generic.RESTOptions) *REST {
},
},
PredicateFunc
:
clusterrole
.
Matcher
,
PredicateFunc
:
clusterrole
.
Matcher
,
QualifiedResource
:
rbac
.
Resource
(
"clusterroles"
),
QualifiedResource
:
rbac
.
Resource
(
"clusterroles"
),
EnableGarbageCollection
:
opts
.
EnableGarbageCollection
,
DeleteCollectionWorkers
:
opts
.
DeleteCollectionWorkers
,
DeleteCollectionWorkers
:
opts
.
DeleteCollectionWorkers
,
CreateStrategy
:
clusterrole
.
Strategy
,
CreateStrategy
:
clusterrole
.
Strategy
,
...
...
pkg/registry/clusterrolebinding/etcd/etcd.go
View file @
716bac3b
...
@@ -61,6 +61,7 @@ func NewREST(opts generic.RESTOptions) *REST {
...
@@ -61,6 +61,7 @@ func NewREST(opts generic.RESTOptions) *REST {
},
},
PredicateFunc
:
clusterrolebinding
.
Matcher
,
PredicateFunc
:
clusterrolebinding
.
Matcher
,
QualifiedResource
:
rbac
.
Resource
(
"clusterrolebindings"
),
QualifiedResource
:
rbac
.
Resource
(
"clusterrolebindings"
),
EnableGarbageCollection
:
opts
.
EnableGarbageCollection
,
DeleteCollectionWorkers
:
opts
.
DeleteCollectionWorkers
,
DeleteCollectionWorkers
:
opts
.
DeleteCollectionWorkers
,
CreateStrategy
:
clusterrolebinding
.
Strategy
,
CreateStrategy
:
clusterrolebinding
.
Strategy
,
...
...
pkg/registry/configmap/etcd/etcd.go
View file @
716bac3b
...
@@ -75,6 +75,7 @@ func NewREST(opts generic.RESTOptions) *REST {
...
@@ -75,6 +75,7 @@ func NewREST(opts generic.RESTOptions) *REST {
QualifiedResource
:
api
.
Resource
(
"configmaps"
),
QualifiedResource
:
api
.
Resource
(
"configmaps"
),
EnableGarbageCollection
:
opts
.
EnableGarbageCollection
,
DeleteCollectionWorkers
:
opts
.
DeleteCollectionWorkers
,
DeleteCollectionWorkers
:
opts
.
DeleteCollectionWorkers
,
CreateStrategy
:
configmap
.
Strategy
,
CreateStrategy
:
configmap
.
Strategy
,
...
...
pkg/registry/controller/etcd/etcd.go
View file @
716bac3b
...
@@ -95,6 +95,7 @@ func NewREST(opts generic.RESTOptions) (*REST, *StatusREST) {
...
@@ -95,6 +95,7 @@ func NewREST(opts generic.RESTOptions) (*REST, *StatusREST) {
PredicateFunc
:
controller
.
MatchController
,
PredicateFunc
:
controller
.
MatchController
,
QualifiedResource
:
api
.
Resource
(
"replicationcontrollers"
),
QualifiedResource
:
api
.
Resource
(
"replicationcontrollers"
),
EnableGarbageCollection
:
opts
.
EnableGarbageCollection
,
DeleteCollectionWorkers
:
opts
.
DeleteCollectionWorkers
,
DeleteCollectionWorkers
:
opts
.
DeleteCollectionWorkers
,
// Used to validate controller creation
// Used to validate controller creation
...
...
pkg/registry/daemonset/etcd/etcd.go
View file @
716bac3b
...
@@ -70,6 +70,7 @@ func NewREST(opts generic.RESTOptions) (*REST, *StatusREST) {
...
@@ -70,6 +70,7 @@ func NewREST(opts generic.RESTOptions) (*REST, *StatusREST) {
// Used to match objects based on labels/fields for list and watch
// Used to match objects based on labels/fields for list and watch
PredicateFunc
:
daemonset
.
MatchDaemonSet
,
PredicateFunc
:
daemonset
.
MatchDaemonSet
,
QualifiedResource
:
extensions
.
Resource
(
"daemonsets"
),
QualifiedResource
:
extensions
.
Resource
(
"daemonsets"
),
EnableGarbageCollection
:
opts
.
EnableGarbageCollection
,
DeleteCollectionWorkers
:
opts
.
DeleteCollectionWorkers
,
DeleteCollectionWorkers
:
opts
.
DeleteCollectionWorkers
,
// Used to validate daemon set creation
// Used to validate daemon set creation
...
...
pkg/registry/deployment/etcd/etcd.go
View file @
716bac3b
...
@@ -93,6 +93,7 @@ func NewREST(opts generic.RESTOptions) (*REST, *StatusREST, *RollbackREST) {
...
@@ -93,6 +93,7 @@ func NewREST(opts generic.RESTOptions) (*REST, *StatusREST, *RollbackREST) {
// Used to match objects based on labels/fields for list.
// Used to match objects based on labels/fields for list.
PredicateFunc
:
deployment
.
MatchDeployment
,
PredicateFunc
:
deployment
.
MatchDeployment
,
QualifiedResource
:
extensions
.
Resource
(
"deployments"
),
QualifiedResource
:
extensions
.
Resource
(
"deployments"
),
EnableGarbageCollection
:
opts
.
EnableGarbageCollection
,
DeleteCollectionWorkers
:
opts
.
DeleteCollectionWorkers
,
DeleteCollectionWorkers
:
opts
.
DeleteCollectionWorkers
,
// Used to validate deployment creation.
// Used to validate deployment creation.
...
...
pkg/registry/endpoint/etcd/etcd.go
View file @
716bac3b
...
@@ -59,6 +59,7 @@ func NewREST(opts generic.RESTOptions) *REST {
...
@@ -59,6 +59,7 @@ func NewREST(opts generic.RESTOptions) *REST {
},
},
PredicateFunc
:
endpoint
.
MatchEndpoints
,
PredicateFunc
:
endpoint
.
MatchEndpoints
,
QualifiedResource
:
api
.
Resource
(
"endpoints"
),
QualifiedResource
:
api
.
Resource
(
"endpoints"
),
EnableGarbageCollection
:
opts
.
EnableGarbageCollection
,
DeleteCollectionWorkers
:
opts
.
DeleteCollectionWorkers
,
DeleteCollectionWorkers
:
opts
.
DeleteCollectionWorkers
,
CreateStrategy
:
endpoint
.
Strategy
,
CreateStrategy
:
endpoint
.
Strategy
,
...
...
pkg/registry/event/etcd/etcd.go
View file @
716bac3b
...
@@ -52,7 +52,9 @@ func NewREST(opts generic.RESTOptions, ttl uint64) *REST {
...
@@ -52,7 +52,9 @@ func NewREST(opts generic.RESTOptions, ttl uint64) *REST {
TTLFunc
:
func
(
runtime
.
Object
,
uint64
,
bool
)
(
uint64
,
error
)
{
TTLFunc
:
func
(
runtime
.
Object
,
uint64
,
bool
)
(
uint64
,
error
)
{
return
ttl
,
nil
return
ttl
,
nil
},
},
QualifiedResource
:
api
.
Resource
(
"events"
),
QualifiedResource
:
api
.
Resource
(
"events"
),
EnableGarbageCollection
:
opts
.
EnableGarbageCollection
,
DeleteCollectionWorkers
:
opts
.
DeleteCollectionWorkers
,
DeleteCollectionWorkers
:
opts
.
DeleteCollectionWorkers
,
CreateStrategy
:
event
.
Strategy
,
CreateStrategy
:
event
.
Strategy
,
...
...
pkg/registry/horizontalpodautoscaler/etcd/etcd.go
View file @
716bac3b
...
@@ -68,6 +68,7 @@ func NewREST(opts generic.RESTOptions) (*REST, *StatusREST) {
...
@@ -68,6 +68,7 @@ func NewREST(opts generic.RESTOptions) (*REST, *StatusREST) {
// Used to match objects based on labels/fields for list
// Used to match objects based on labels/fields for list
PredicateFunc
:
horizontalpodautoscaler
.
MatchAutoscaler
,
PredicateFunc
:
horizontalpodautoscaler
.
MatchAutoscaler
,
QualifiedResource
:
autoscaling
.
Resource
(
"horizontalpodautoscalers"
),
QualifiedResource
:
autoscaling
.
Resource
(
"horizontalpodautoscalers"
),
EnableGarbageCollection
:
opts
.
EnableGarbageCollection
,
DeleteCollectionWorkers
:
opts
.
DeleteCollectionWorkers
,
DeleteCollectionWorkers
:
opts
.
DeleteCollectionWorkers
,
// Used to validate autoscaler creation
// Used to validate autoscaler creation
...
...
pkg/registry/ingress/etcd/etcd.go
View file @
716bac3b
...
@@ -70,6 +70,7 @@ func NewREST(opts generic.RESTOptions) (*REST, *StatusREST) {
...
@@ -70,6 +70,7 @@ func NewREST(opts generic.RESTOptions) (*REST, *StatusREST) {
// Used to match objects based on labels/fields for list and watch
// Used to match objects based on labels/fields for list and watch
PredicateFunc
:
ingress
.
MatchIngress
,
PredicateFunc
:
ingress
.
MatchIngress
,
QualifiedResource
:
extensions
.
Resource
(
"ingresses"
),
QualifiedResource
:
extensions
.
Resource
(
"ingresses"
),
EnableGarbageCollection
:
opts
.
EnableGarbageCollection
,
DeleteCollectionWorkers
:
opts
.
DeleteCollectionWorkers
,
DeleteCollectionWorkers
:
opts
.
DeleteCollectionWorkers
,
// Used to validate controller creation
// Used to validate controller creation
...
...
pkg/registry/job/etcd/etcd.go
View file @
716bac3b
...
@@ -70,6 +70,7 @@ func NewREST(opts generic.RESTOptions) (*REST, *StatusREST) {
...
@@ -70,6 +70,7 @@ func NewREST(opts generic.RESTOptions) (*REST, *StatusREST) {
// Used to match objects based on labels/fields for list and watch
// Used to match objects based on labels/fields for list and watch
PredicateFunc
:
job
.
MatchJob
,
PredicateFunc
:
job
.
MatchJob
,
QualifiedResource
:
batch
.
Resource
(
"jobs"
),
QualifiedResource
:
batch
.
Resource
(
"jobs"
),
EnableGarbageCollection
:
opts
.
EnableGarbageCollection
,
DeleteCollectionWorkers
:
opts
.
DeleteCollectionWorkers
,
DeleteCollectionWorkers
:
opts
.
DeleteCollectionWorkers
,
// Used to validate job creation
// Used to validate job creation
...
...
pkg/registry/limitrange/etcd/etcd.go
View file @
716bac3b
...
@@ -59,6 +59,7 @@ func NewREST(opts generic.RESTOptions) *REST {
...
@@ -59,6 +59,7 @@ func NewREST(opts generic.RESTOptions) *REST {
},
},
PredicateFunc
:
limitrange
.
MatchLimitRange
,
PredicateFunc
:
limitrange
.
MatchLimitRange
,
QualifiedResource
:
api
.
Resource
(
"limitranges"
),
QualifiedResource
:
api
.
Resource
(
"limitranges"
),
EnableGarbageCollection
:
opts
.
EnableGarbageCollection
,
DeleteCollectionWorkers
:
opts
.
DeleteCollectionWorkers
,
DeleteCollectionWorkers
:
opts
.
DeleteCollectionWorkers
,
CreateStrategy
:
limitrange
.
Strategy
,
CreateStrategy
:
limitrange
.
Strategy
,
...
...
pkg/registry/namespace/etcd/etcd.go
View file @
716bac3b
...
@@ -77,6 +77,7 @@ func NewREST(opts generic.RESTOptions) (*REST, *StatusREST, *FinalizeREST) {
...
@@ -77,6 +77,7 @@ func NewREST(opts generic.RESTOptions) (*REST, *StatusREST, *FinalizeREST) {
},
},
PredicateFunc
:
namespace
.
MatchNamespace
,
PredicateFunc
:
namespace
.
MatchNamespace
,
QualifiedResource
:
api
.
Resource
(
"namespaces"
),
QualifiedResource
:
api
.
Resource
(
"namespaces"
),
EnableGarbageCollection
:
opts
.
EnableGarbageCollection
,
DeleteCollectionWorkers
:
opts
.
DeleteCollectionWorkers
,
DeleteCollectionWorkers
:
opts
.
DeleteCollectionWorkers
,
CreateStrategy
:
namespace
.
Strategy
,
CreateStrategy
:
namespace
.
Strategy
,
...
...
pkg/registry/networkpolicy/etcd/etcd.go
View file @
716bac3b
...
@@ -69,6 +69,7 @@ func NewREST(opts generic.RESTOptions) *REST {
...
@@ -69,6 +69,7 @@ func NewREST(opts generic.RESTOptions) *REST {
// Used to match objects based on labels/fields for list and watch
// Used to match objects based on labels/fields for list and watch
PredicateFunc
:
networkpolicy
.
MatchNetworkPolicy
,
PredicateFunc
:
networkpolicy
.
MatchNetworkPolicy
,
QualifiedResource
:
extensionsapi
.
Resource
(
"networkpolicies"
),
QualifiedResource
:
extensionsapi
.
Resource
(
"networkpolicies"
),
EnableGarbageCollection
:
opts
.
EnableGarbageCollection
,
DeleteCollectionWorkers
:
opts
.
DeleteCollectionWorkers
,
DeleteCollectionWorkers
:
opts
.
DeleteCollectionWorkers
,
// Used to validate controller creation
// Used to validate controller creation
...
...
pkg/registry/node/etcd/etcd.go
View file @
716bac3b
...
@@ -92,6 +92,7 @@ func NewStorage(opts generic.RESTOptions, connection client.ConnectionInfoGetter
...
@@ -92,6 +92,7 @@ func NewStorage(opts generic.RESTOptions, connection client.ConnectionInfoGetter
},
},
PredicateFunc
:
node
.
MatchNode
,
PredicateFunc
:
node
.
MatchNode
,
QualifiedResource
:
api
.
Resource
(
"nodes"
),
QualifiedResource
:
api
.
Resource
(
"nodes"
),
EnableGarbageCollection
:
opts
.
EnableGarbageCollection
,
DeleteCollectionWorkers
:
opts
.
DeleteCollectionWorkers
,
DeleteCollectionWorkers
:
opts
.
DeleteCollectionWorkers
,
CreateStrategy
:
node
.
Strategy
,
CreateStrategy
:
node
.
Strategy
,
...
...
pkg/registry/persistentvolume/etcd/etcd.go
View file @
716bac3b
...
@@ -60,6 +60,7 @@ func NewREST(opts generic.RESTOptions) (*REST, *StatusREST) {
...
@@ -60,6 +60,7 @@ func NewREST(opts generic.RESTOptions) (*REST, *StatusREST) {
},
},
PredicateFunc
:
persistentvolume
.
MatchPersistentVolumes
,
PredicateFunc
:
persistentvolume
.
MatchPersistentVolumes
,
QualifiedResource
:
api
.
Resource
(
"persistentvolumes"
),
QualifiedResource
:
api
.
Resource
(
"persistentvolumes"
),
EnableGarbageCollection
:
opts
.
EnableGarbageCollection
,
DeleteCollectionWorkers
:
opts
.
DeleteCollectionWorkers
,
DeleteCollectionWorkers
:
opts
.
DeleteCollectionWorkers
,
CreateStrategy
:
persistentvolume
.
Strategy
,
CreateStrategy
:
persistentvolume
.
Strategy
,
...
...
pkg/registry/persistentvolumeclaim/etcd/etcd.go
View file @
716bac3b
...
@@ -60,6 +60,7 @@ func NewREST(opts generic.RESTOptions) (*REST, *StatusREST) {
...
@@ -60,6 +60,7 @@ func NewREST(opts generic.RESTOptions) (*REST, *StatusREST) {
},
},
PredicateFunc
:
persistentvolumeclaim
.
MatchPersistentVolumeClaim
,
PredicateFunc
:
persistentvolumeclaim
.
MatchPersistentVolumeClaim
,
QualifiedResource
:
api
.
Resource
(
"persistentvolumeclaims"
),
QualifiedResource
:
api
.
Resource
(
"persistentvolumeclaims"
),
EnableGarbageCollection
:
opts
.
EnableGarbageCollection
,
DeleteCollectionWorkers
:
opts
.
DeleteCollectionWorkers
,
DeleteCollectionWorkers
:
opts
.
DeleteCollectionWorkers
,
CreateStrategy
:
persistentvolumeclaim
.
Strategy
,
CreateStrategy
:
persistentvolumeclaim
.
Strategy
,
...
...
pkg/registry/petset/etcd/etcd.go
View file @
716bac3b
...
@@ -70,6 +70,7 @@ func NewREST(opts generic.RESTOptions) (*REST, *StatusREST) {
...
@@ -70,6 +70,7 @@ func NewREST(opts generic.RESTOptions) (*REST, *StatusREST) {
// Used to match objects based on labels/fields for list and watch
// Used to match objects based on labels/fields for list and watch
PredicateFunc
:
petset
.
MatchPetSet
,
PredicateFunc
:
petset
.
MatchPetSet
,
QualifiedResource
:
appsapi
.
Resource
(
"petsets"
),
QualifiedResource
:
appsapi
.
Resource
(
"petsets"
),
EnableGarbageCollection
:
opts
.
EnableGarbageCollection
,
DeleteCollectionWorkers
:
opts
.
DeleteCollectionWorkers
,
DeleteCollectionWorkers
:
opts
.
DeleteCollectionWorkers
,
// Used to validate controller creation
// Used to validate controller creation
...
...
pkg/registry/pod/etcd/etcd.go
View file @
716bac3b
...
@@ -87,6 +87,7 @@ func NewStorage(opts generic.RESTOptions, k client.ConnectionInfoGetter, proxyTr
...
@@ -87,6 +87,7 @@ func NewStorage(opts generic.RESTOptions, k client.ConnectionInfoGetter, proxyTr
},
},
PredicateFunc
:
pod
.
MatchPod
,
PredicateFunc
:
pod
.
MatchPod
,
QualifiedResource
:
api
.
Resource
(
"pods"
),
QualifiedResource
:
api
.
Resource
(
"pods"
),
EnableGarbageCollection
:
opts
.
EnableGarbageCollection
,
DeleteCollectionWorkers
:
opts
.
DeleteCollectionWorkers
,
DeleteCollectionWorkers
:
opts
.
DeleteCollectionWorkers
,
CreateStrategy
:
pod
.
Strategy
,
CreateStrategy
:
pod
.
Strategy
,
...
...
pkg/registry/poddisruptionbudget/etcd/etcd.go
View file @
716bac3b
...
@@ -70,6 +70,7 @@ func NewREST(opts generic.RESTOptions) (*REST, *StatusREST) {
...
@@ -70,6 +70,7 @@ func NewREST(opts generic.RESTOptions) (*REST, *StatusREST) {
// Used to match objects based on labels/fields for list and watch
// Used to match objects based on labels/fields for list and watch
PredicateFunc
:
poddisruptionbudget
.
MatchPodDisruptionBudget
,
PredicateFunc
:
poddisruptionbudget
.
MatchPodDisruptionBudget
,
QualifiedResource
:
policyapi
.
Resource
(
"poddisruptionbudgets"
),
QualifiedResource
:
policyapi
.
Resource
(
"poddisruptionbudgets"
),
EnableGarbageCollection
:
opts
.
EnableGarbageCollection
,
DeleteCollectionWorkers
:
opts
.
DeleteCollectionWorkers
,
DeleteCollectionWorkers
:
opts
.
DeleteCollectionWorkers
,
// Used to validate controller creation
// Used to validate controller creation
...
...
pkg/registry/podsecuritypolicy/etcd/etcd.go
View file @
716bac3b
...
@@ -61,6 +61,7 @@ func NewREST(opts generic.RESTOptions) *REST {
...
@@ -61,6 +61,7 @@ func NewREST(opts generic.RESTOptions) *REST {
},
},
PredicateFunc
:
podsecuritypolicy
.
MatchPodSecurityPolicy
,
PredicateFunc
:
podsecuritypolicy
.
MatchPodSecurityPolicy
,
QualifiedResource
:
extensions
.
Resource
(
"podsecuritypolicies"
),
QualifiedResource
:
extensions
.
Resource
(
"podsecuritypolicies"
),
EnableGarbageCollection
:
opts
.
EnableGarbageCollection
,
DeleteCollectionWorkers
:
opts
.
DeleteCollectionWorkers
,
DeleteCollectionWorkers
:
opts
.
DeleteCollectionWorkers
,
CreateStrategy
:
podsecuritypolicy
.
Strategy
,
CreateStrategy
:
podsecuritypolicy
.
Strategy
,
...
...
pkg/registry/podtemplate/etcd/etcd.go
View file @
716bac3b
...
@@ -59,6 +59,7 @@ func NewREST(opts generic.RESTOptions) *REST {
...
@@ -59,6 +59,7 @@ func NewREST(opts generic.RESTOptions) *REST {
},
},
PredicateFunc
:
podtemplate
.
MatchPodTemplate
,
PredicateFunc
:
podtemplate
.
MatchPodTemplate
,
QualifiedResource
:
api
.
Resource
(
"podtemplates"
),
QualifiedResource
:
api
.
Resource
(
"podtemplates"
),
EnableGarbageCollection
:
opts
.
EnableGarbageCollection
,
DeleteCollectionWorkers
:
opts
.
DeleteCollectionWorkers
,
DeleteCollectionWorkers
:
opts
.
DeleteCollectionWorkers
,
CreateStrategy
:
podtemplate
.
Strategy
,
CreateStrategy
:
podtemplate
.
Strategy
,
...
...
pkg/registry/replicaset/etcd/etcd.go
View file @
716bac3b
...
@@ -93,6 +93,7 @@ func NewREST(opts generic.RESTOptions) (*REST, *StatusREST) {
...
@@ -93,6 +93,7 @@ func NewREST(opts generic.RESTOptions) (*REST, *StatusREST) {
// Used to match objects based on labels/fields for list and watch
// Used to match objects based on labels/fields for list and watch
PredicateFunc
:
replicaset
.
MatchReplicaSet
,
PredicateFunc
:
replicaset
.
MatchReplicaSet
,
QualifiedResource
:
api
.
Resource
(
"replicasets"
),
QualifiedResource
:
api
.
Resource
(
"replicasets"
),
EnableGarbageCollection
:
opts
.
EnableGarbageCollection
,
DeleteCollectionWorkers
:
opts
.
DeleteCollectionWorkers
,
DeleteCollectionWorkers
:
opts
.
DeleteCollectionWorkers
,
// Used to validate ReplicaSet creation
// Used to validate ReplicaSet creation
...
...
pkg/registry/resourcequota/etcd/etcd.go
View file @
716bac3b
...
@@ -60,6 +60,7 @@ func NewREST(opts generic.RESTOptions) (*REST, *StatusREST) {
...
@@ -60,6 +60,7 @@ func NewREST(opts generic.RESTOptions) (*REST, *StatusREST) {
},
},
PredicateFunc
:
resourcequota
.
MatchResourceQuota
,
PredicateFunc
:
resourcequota
.
MatchResourceQuota
,
QualifiedResource
:
api
.
Resource
(
"resourcequotas"
),
QualifiedResource
:
api
.
Resource
(
"resourcequotas"
),
EnableGarbageCollection
:
opts
.
EnableGarbageCollection
,
DeleteCollectionWorkers
:
opts
.
DeleteCollectionWorkers
,
DeleteCollectionWorkers
:
opts
.
DeleteCollectionWorkers
,
CreateStrategy
:
resourcequota
.
Strategy
,
CreateStrategy
:
resourcequota
.
Strategy
,
...
...
pkg/registry/role/etcd/etcd.go
View file @
716bac3b
...
@@ -61,6 +61,7 @@ func NewREST(opts generic.RESTOptions) *REST {
...
@@ -61,6 +61,7 @@ func NewREST(opts generic.RESTOptions) *REST {
},
},
PredicateFunc
:
role
.
Matcher
,
PredicateFunc
:
role
.
Matcher
,
QualifiedResource
:
rbac
.
Resource
(
"roles"
),
QualifiedResource
:
rbac
.
Resource
(
"roles"
),
EnableGarbageCollection
:
opts
.
EnableGarbageCollection
,
DeleteCollectionWorkers
:
opts
.
DeleteCollectionWorkers
,
DeleteCollectionWorkers
:
opts
.
DeleteCollectionWorkers
,
CreateStrategy
:
role
.
Strategy
,
CreateStrategy
:
role
.
Strategy
,
...
...
pkg/registry/rolebinding/etcd/etcd.go
View file @
716bac3b
...
@@ -61,6 +61,7 @@ func NewREST(opts generic.RESTOptions) *REST {
...
@@ -61,6 +61,7 @@ func NewREST(opts generic.RESTOptions) *REST {
},
},
PredicateFunc
:
rolebinding
.
Matcher
,
PredicateFunc
:
rolebinding
.
Matcher
,
QualifiedResource
:
rbac
.
Resource
(
"rolebindings"
),
QualifiedResource
:
rbac
.
Resource
(
"rolebindings"
),
EnableGarbageCollection
:
opts
.
EnableGarbageCollection
,
DeleteCollectionWorkers
:
opts
.
DeleteCollectionWorkers
,
DeleteCollectionWorkers
:
opts
.
DeleteCollectionWorkers
,
CreateStrategy
:
rolebinding
.
Strategy
,
CreateStrategy
:
rolebinding
.
Strategy
,
...
...
pkg/registry/scheduledjob/etcd/etcd.go
View file @
716bac3b
...
@@ -70,6 +70,7 @@ func NewREST(opts generic.RESTOptions) (*REST, *StatusREST) {
...
@@ -70,6 +70,7 @@ func NewREST(opts generic.RESTOptions) (*REST, *StatusREST) {
// Used to match objects based on labels/fields for list and watch
// Used to match objects based on labels/fields for list and watch
PredicateFunc
:
scheduledjob
.
MatchScheduledJob
,
PredicateFunc
:
scheduledjob
.
MatchScheduledJob
,
QualifiedResource
:
batch
.
Resource
(
"scheduledjobs"
),
QualifiedResource
:
batch
.
Resource
(
"scheduledjobs"
),
EnableGarbageCollection
:
opts
.
EnableGarbageCollection
,
DeleteCollectionWorkers
:
opts
.
DeleteCollectionWorkers
,
DeleteCollectionWorkers
:
opts
.
DeleteCollectionWorkers
,
// Used to validate scheduled job creation
// Used to validate scheduled job creation
...
...
pkg/registry/secret/etcd/etcd.go
View file @
716bac3b
...
@@ -59,6 +59,7 @@ func NewREST(opts generic.RESTOptions) *REST {
...
@@ -59,6 +59,7 @@ func NewREST(opts generic.RESTOptions) *REST {
},
},
PredicateFunc
:
secret
.
Matcher
,
PredicateFunc
:
secret
.
Matcher
,
QualifiedResource
:
api
.
Resource
(
"secrets"
),
QualifiedResource
:
api
.
Resource
(
"secrets"
),
EnableGarbageCollection
:
opts
.
EnableGarbageCollection
,
DeleteCollectionWorkers
:
opts
.
DeleteCollectionWorkers
,
DeleteCollectionWorkers
:
opts
.
DeleteCollectionWorkers
,
CreateStrategy
:
secret
.
Strategy
,
CreateStrategy
:
secret
.
Strategy
,
...
...
pkg/registry/service/etcd/etcd.go
View file @
716bac3b
...
@@ -60,6 +60,7 @@ func NewREST(opts generic.RESTOptions) (*REST, *StatusREST) {
...
@@ -60,6 +60,7 @@ func NewREST(opts generic.RESTOptions) (*REST, *StatusREST) {
},
},
PredicateFunc
:
service
.
MatchServices
,
PredicateFunc
:
service
.
MatchServices
,
QualifiedResource
:
api
.
Resource
(
"services"
),
QualifiedResource
:
api
.
Resource
(
"services"
),
EnableGarbageCollection
:
opts
.
EnableGarbageCollection
,
DeleteCollectionWorkers
:
opts
.
DeleteCollectionWorkers
,
DeleteCollectionWorkers
:
opts
.
DeleteCollectionWorkers
,
CreateStrategy
:
service
.
Strategy
,
CreateStrategy
:
service
.
Strategy
,
...
...
pkg/registry/serviceaccount/etcd/etcd.go
View file @
716bac3b
...
@@ -59,6 +59,7 @@ func NewREST(opts generic.RESTOptions) *REST {
...
@@ -59,6 +59,7 @@ func NewREST(opts generic.RESTOptions) *REST {
},
},
PredicateFunc
:
serviceaccount
.
Matcher
,
PredicateFunc
:
serviceaccount
.
Matcher
,
QualifiedResource
:
api
.
Resource
(
"serviceaccounts"
),
QualifiedResource
:
api
.
Resource
(
"serviceaccounts"
),
EnableGarbageCollection
:
opts
.
EnableGarbageCollection
,
DeleteCollectionWorkers
:
opts
.
DeleteCollectionWorkers
,
DeleteCollectionWorkers
:
opts
.
DeleteCollectionWorkers
,
CreateStrategy
:
serviceaccount
.
Strategy
,
CreateStrategy
:
serviceaccount
.
Strategy
,
...
...
pkg/registry/storageclass/etcd/etcd.go
View file @
716bac3b
...
@@ -60,6 +60,7 @@ func NewREST(opts generic.RESTOptions) *REST {
...
@@ -60,6 +60,7 @@ func NewREST(opts generic.RESTOptions) *REST {
},
},
PredicateFunc
:
storageclass
.
MatchStorageClasses
,
PredicateFunc
:
storageclass
.
MatchStorageClasses
,
QualifiedResource
:
storageapi
.
Resource
(
"storageclasses"
),
QualifiedResource
:
storageapi
.
Resource
(
"storageclasses"
),
EnableGarbageCollection
:
opts
.
EnableGarbageCollection
,
DeleteCollectionWorkers
:
opts
.
DeleteCollectionWorkers
,
DeleteCollectionWorkers
:
opts
.
DeleteCollectionWorkers
,
CreateStrategy
:
storageclass
.
Strategy
,
CreateStrategy
:
storageclass
.
Strategy
,
...
...
pkg/registry/thirdpartyresource/etcd/etcd.go
View file @
716bac3b
...
@@ -51,6 +51,7 @@ func NewREST(opts generic.RESTOptions) *REST {
...
@@ -51,6 +51,7 @@ func NewREST(opts generic.RESTOptions) *REST {
},
},
PredicateFunc
:
thirdpartyresource
.
Matcher
,
PredicateFunc
:
thirdpartyresource
.
Matcher
,
QualifiedResource
:
extensions
.
Resource
(
"thirdpartyresources"
),
QualifiedResource
:
extensions
.
Resource
(
"thirdpartyresources"
),
EnableGarbageCollection
:
opts
.
EnableGarbageCollection
,
DeleteCollectionWorkers
:
opts
.
DeleteCollectionWorkers
,
DeleteCollectionWorkers
:
opts
.
DeleteCollectionWorkers
,
CreateStrategy
:
thirdpartyresource
.
Strategy
,
CreateStrategy
:
thirdpartyresource
.
Strategy
,
UpdateStrategy
:
thirdpartyresource
.
Strategy
,
UpdateStrategy
:
thirdpartyresource
.
Strategy
,
...
...
pkg/registry/thirdpartyresourcedata/etcd/etcd.go
View file @
716bac3b
...
@@ -54,6 +54,7 @@ func NewREST(opts generic.RESTOptions, group, kind string) *REST {
...
@@ -54,6 +54,7 @@ func NewREST(opts generic.RESTOptions, group, kind string) *REST {
},
},
PredicateFunc
:
thirdpartyresourcedata
.
Matcher
,
PredicateFunc
:
thirdpartyresourcedata
.
Matcher
,
QualifiedResource
:
extensions
.
Resource
(
"thirdpartyresourcedatas"
),
QualifiedResource
:
extensions
.
Resource
(
"thirdpartyresourcedatas"
),
EnableGarbageCollection
:
opts
.
EnableGarbageCollection
,
DeleteCollectionWorkers
:
opts
.
DeleteCollectionWorkers
,
DeleteCollectionWorkers
:
opts
.
DeleteCollectionWorkers
,
CreateStrategy
:
thirdpartyresourcedata
.
Strategy
,
CreateStrategy
:
thirdpartyresourcedata
.
Strategy
,
UpdateStrategy
:
thirdpartyresourcedata
.
Strategy
,
UpdateStrategy
:
thirdpartyresourcedata
.
Strategy
,
...
...
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