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
7ad83079
Commit
7ad83079
authored
Jul 28, 2015
by
Brendan Burns
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set some default values and add some additional comments for clarity.
parent
6129d3d4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
1 deletion
+10
-1
conversion.go
pkg/api/conversion.go
+5
-0
latest.go
pkg/api/latest/latest.go
+1
-0
serialization_test.go
pkg/api/serialization_test.go
+1
-1
types.go
pkg/api/v1/types.go
+3
-0
No files found.
pkg/api/conversion.go
View file @
7ad83079
...
...
@@ -35,10 +35,15 @@ func init() {
obj
.
LabelSelector
=
labels
.
Everything
()
obj
.
FieldSelector
=
fields
.
Everything
()
},
// TODO: see about moving this into v1/defaults.go
func
(
obj
*
PodExecOptions
)
{
obj
.
Stderr
=
true
obj
.
Stdout
=
true
},
func
(
obj
*
PodAttachOptions
)
{
obj
.
Stderr
=
true
obj
.
Stdout
=
true
},
)
Scheme
.
AddConversionFuncs
(
func
(
in
*
util
.
Time
,
out
*
util
.
Time
,
s
conversion
.
Scope
)
error
{
...
...
pkg/api/latest/latest.go
View file @
7ad83079
...
...
@@ -93,6 +93,7 @@ func init() {
"Status"
,
"PodLogOptions"
,
"PodExecOptions"
,
"PodAttachOptions"
,
"PodProxyOptions"
)
mapper
:=
api
.
NewDefaultRESTMapper
(
versions
,
InterfacesFor
,
importPrefix
,
ignoredKinds
,
rootScoped
)
...
...
pkg/api/serialization_test.go
View file @
7ad83079
...
...
@@ -122,7 +122,7 @@ func TestList(t *testing.T) {
}
var
nonRoundTrippableTypes
=
util
.
NewStringSet
()
var
nonInternalRoundTrippableTypes
=
util
.
NewStringSet
(
"List"
,
"ListOptions"
,
"PodExecOptions"
)
var
nonInternalRoundTrippableTypes
=
util
.
NewStringSet
(
"List"
,
"ListOptions"
,
"PodExecOptions"
,
"PodAttachOptions"
)
var
nonRoundTrippableTypesByVersion
=
map
[
string
][]
string
{}
func
TestRoundTripTypes
(
t
*
testing
.
T
)
{
...
...
pkg/api/v1/types.go
View file @
7ad83079
...
...
@@ -1477,6 +1477,7 @@ type PodLogOptions struct {
// PodAttachOptions is the query options to a Pod's remote attach call
// TODO: merge w/ PodExecOptions below for stdin, stdout, etc
// and also when we cut V2, we should export a "StreamOptions" or somesuch that contains Stdin, Stdout, Stder and TTY
type
PodAttachOptions
struct
{
TypeMeta
`json:",inline"`
...
...
@@ -1498,6 +1499,8 @@ type PodAttachOptions struct {
}
// PodExecOptions is the query options to a Pod's remote exec call
// TODO: This is largely identical to PodAttachOptions above, make sure they stay in sync and see about merging
// and also when we cut V2, we should export a "StreamOptions" or somesuch that contains Stdin, Stdout, Stder and TTY
type
PodExecOptions
struct
{
TypeMeta
`json:",inline"`
...
...
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