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
0cf65495
Commit
0cf65495
authored
Nov 02, 2015
by
k8s-merge-robot
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #16656 from huangyuqi/use_defined_const_variable
Auto commit by PR queue bot
parents
5881c3c8
b69b4982
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
17 deletions
+17
-17
request.go
pkg/client/unversioned/request.go
+17
-17
No files found.
pkg/client/unversioned/request.go
View file @
0cf65495
...
...
@@ -322,33 +322,33 @@ func (v versionToResourceToFieldMapping) filterField(apiVersion, resourceType, f
var
fieldMappings
=
versionToResourceToFieldMapping
{
"v1"
:
resourceTypeToFieldMapping
{
"nodes"
:
clientFieldNameToAPIVersionFieldName
{
ObjectNameField
:
"metadata.name"
,
NodeUnschedulable
:
"spec.unschedulable"
,
ObjectNameField
:
ObjectNameField
,
NodeUnschedulable
:
NodeUnschedulable
,
},
"pods"
:
clientFieldNameToAPIVersionFieldName
{
PodHost
:
"spec.nodeName"
,
PodStatus
:
"status.phase"
,
PodHost
:
PodHost
,
PodStatus
:
PodStatus
,
},
"secrets"
:
clientFieldNameToAPIVersionFieldName
{
SecretType
:
"type"
,
SecretType
:
SecretType
,
},
"serviceAccounts"
:
clientFieldNameToAPIVersionFieldName
{
ObjectNameField
:
"metadata.name"
,
ObjectNameField
:
ObjectNameField
,
},
"endpoints"
:
clientFieldNameToAPIVersionFieldName
{
ObjectNameField
:
"metadata.name"
,
ObjectNameField
:
ObjectNameField
,
},
"events"
:
clientFieldNameToAPIVersionFieldName
{
ObjectNameField
:
"metadata.name"
,
EventReason
:
"reason"
,
EventSource
:
"source"
,
EventInvolvedKind
:
"involvedObject.kind"
,
EventInvolvedNamespace
:
"involvedObject.namespace"
,
EventInvolvedName
:
"involvedObject.name"
,
EventInvolvedUID
:
"involvedObject.uid"
,
EventInvolvedAPIVersion
:
"involvedObject.apiVersion"
,
EventInvolvedResourceVersion
:
"involvedObject.resourceVersion"
,
EventInvolvedFieldPath
:
"involvedObject.fieldPath"
,
ObjectNameField
:
ObjectNameField
,
EventReason
:
EventReason
,
EventSource
:
EventSource
,
EventInvolvedKind
:
EventInvolvedKind
,
EventInvolvedNamespace
:
EventInvolvedNamespace
,
EventInvolvedName
:
EventInvolvedName
,
EventInvolvedUID
:
EventInvolvedUID
,
EventInvolvedAPIVersion
:
EventInvolvedAPIVersion
,
EventInvolvedResourceVersion
:
EventInvolvedResourceVersion
,
EventInvolvedFieldPath
:
EventInvolvedFieldPath
,
},
},
}
...
...
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