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
66f45195
Commit
66f45195
authored
May 08, 2017
by
Nail Islamov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replacing “Pod Injection Policy” with “Pod Preset” in the code documentation
parent
a4a94d29
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
16 additions
and
16 deletions
+16
-16
swagger.json
api/openapi-spec/swagger.json
+1
-1
settings.k8s.io_v1alpha1.json
api/swagger-spec/settings.k8s.io_v1alpha1.json
+1
-1
definitions.html
docs/api-reference/settings.k8s.io/v1alpha1/definitions.html
+1
-1
types.go
pkg/apis/settings/types.go
+1
-1
generated.proto
pkg/apis/settings/v1alpha1/generated.proto
+1
-1
types.go
pkg/apis/settings/v1alpha1/types.go
+1
-1
types_swagger_doc_generated.go
pkg/apis/settings/v1alpha1/types_swagger_doc_generated.go
+1
-1
strategy.go
pkg/registry/settings/podpreset/strategy.go
+5
-5
types.go
staging/src/k8s.io/client-go/pkg/apis/settings/types.go
+1
-1
generated.proto
...s.io/client-go/pkg/apis/settings/v1alpha1/generated.proto
+1
-1
types.go
.../src/k8s.io/client-go/pkg/apis/settings/v1alpha1/types.go
+1
-1
types_swagger_doc_generated.go
...pkg/apis/settings/v1alpha1/types_swagger_doc_generated.go
+1
-1
No files found.
api/openapi-spec/swagger.json
View file @
66f45195
...
@@ -45948,7 +45948,7 @@
...
@@ -45948,7 +45948,7 @@
]
]
},
},
"io.k8s.kubernetes.pkg.apis.settings.v1alpha1.PodPresetSpec"
:
{
"io.k8s.kubernetes.pkg.apis.settings.v1alpha1.PodPresetSpec"
:
{
"description"
:
"PodPresetSpec is a description of a pod
injection policy
."
,
"description"
:
"PodPresetSpec is a description of a pod
preset
."
,
"properties"
:
{
"properties"
:
{
"env"
:
{
"env"
:
{
"description"
:
"Env defines the collection of EnvVar to inject into containers."
,
"description"
:
"Env defines the collection of EnvVar to inject into containers."
,
api/swagger-spec/settings.k8s.io_v1alpha1.json
View file @
66f45195
...
@@ -1020,7 +1020,7 @@
...
@@ -1020,7 +1020,7 @@
},
},
"v1alpha1.PodPresetSpec"
:
{
"v1alpha1.PodPresetSpec"
:
{
"id"
:
"v1alpha1.PodPresetSpec"
,
"id"
:
"v1alpha1.PodPresetSpec"
,
"description"
:
"PodPresetSpec is a description of a pod
injection policy
."
,
"description"
:
"PodPresetSpec is a description of a pod
preset
."
,
"properties"
:
{
"properties"
:
{
"selector"
:
{
"selector"
:
{
"$ref"
:
"v1.LabelSelector"
,
"$ref"
:
"v1.LabelSelector"
,
...
...
docs/api-reference/settings.k8s.io/v1alpha1/definitions.html
View file @
66f45195
...
@@ -2473,7 +2473,7 @@ Populated by the system when a graceful deletion is requested. Read-only. More i
...
@@ -2473,7 +2473,7 @@ Populated by the system when a graceful deletion is requested. Read-only. More i
<div
class=
"sect2"
>
<div
class=
"sect2"
>
<h3
id=
"_v1alpha1_podpresetspec"
>
v1alpha1.PodPresetSpec
</h3>
<h3
id=
"_v1alpha1_podpresetspec"
>
v1alpha1.PodPresetSpec
</h3>
<div
class=
"paragraph"
>
<div
class=
"paragraph"
>
<p>
PodPresetSpec is a description of a pod
injection policy
.
</p>
<p>
PodPresetSpec is a description of a pod
preset
.
</p>
</div>
</div>
<table
class=
"tableblock frame-all grid-all"
style=
"width:100%; "
>
<table
class=
"tableblock frame-all grid-all"
style=
"width:100%; "
>
<colgroup>
<colgroup>
...
...
pkg/apis/settings/types.go
View file @
66f45195
...
@@ -34,7 +34,7 @@ type PodPreset struct {
...
@@ -34,7 +34,7 @@ type PodPreset struct {
Spec
PodPresetSpec
Spec
PodPresetSpec
}
}
// PodPresetSpec is a description of a pod
injection policy
.
// PodPresetSpec is a description of a pod
preset
.
type
PodPresetSpec
struct
{
type
PodPresetSpec
struct
{
// Selector is a label query over a set of resources, in this case pods.
// Selector is a label query over a set of resources, in this case pods.
// Required.
// Required.
...
...
pkg/apis/settings/v1alpha1/generated.proto
View file @
66f45195
...
@@ -51,7 +51,7 @@ message PodPresetList {
...
@@ -51,7 +51,7 @@ message PodPresetList {
repeated
PodPreset
items
=
2
;
repeated
PodPreset
items
=
2
;
}
}
// PodPresetSpec is a description of a pod
injection policy
.
// PodPresetSpec is a description of a pod
preset
.
message
PodPresetSpec
{
message
PodPresetSpec
{
// Selector is a label query over a set of resources, in this case pods.
// Selector is a label query over a set of resources, in this case pods.
// Required.
// Required.
...
...
pkg/apis/settings/v1alpha1/types.go
View file @
66f45195
...
@@ -34,7 +34,7 @@ type PodPreset struct {
...
@@ -34,7 +34,7 @@ type PodPreset struct {
Spec
PodPresetSpec
`json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"`
Spec
PodPresetSpec
`json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"`
}
}
// PodPresetSpec is a description of a pod
injection policy
.
// PodPresetSpec is a description of a pod
preset
.
type
PodPresetSpec
struct
{
type
PodPresetSpec
struct
{
// Selector is a label query over a set of resources, in this case pods.
// Selector is a label query over a set of resources, in this case pods.
// Required.
// Required.
...
...
pkg/apis/settings/v1alpha1/types_swagger_doc_generated.go
View file @
66f45195
...
@@ -46,7 +46,7 @@ func (PodPresetList) SwaggerDoc() map[string]string {
...
@@ -46,7 +46,7 @@ func (PodPresetList) SwaggerDoc() map[string]string {
}
}
var
map_PodPresetSpec
=
map
[
string
]
string
{
var
map_PodPresetSpec
=
map
[
string
]
string
{
""
:
"PodPresetSpec is a description of a pod
injection policy
."
,
""
:
"PodPresetSpec is a description of a pod
preset
."
,
"selector"
:
"Selector is a label query over a set of resources, in this case pods. Required."
,
"selector"
:
"Selector is a label query over a set of resources, in this case pods. Required."
,
"env"
:
"Env defines the collection of EnvVar to inject into containers."
,
"env"
:
"Env defines the collection of EnvVar to inject into containers."
,
"envFrom"
:
"EnvFrom defines the collection of EnvFromSource to inject into containers."
,
"envFrom"
:
"EnvFrom defines the collection of EnvFromSource to inject into containers."
,
...
...
pkg/registry/settings/podpreset/strategy.go
View file @
66f45195
...
@@ -32,21 +32,21 @@ import (
...
@@ -32,21 +32,21 @@ import (
"k8s.io/kubernetes/pkg/apis/settings/validation"
"k8s.io/kubernetes/pkg/apis/settings/validation"
)
)
// podPresetStrategy implements verification logic for Pod
Injection Policie
s.
// podPresetStrategy implements verification logic for Pod
Preset
s.
type
podPresetStrategy
struct
{
type
podPresetStrategy
struct
{
runtime
.
ObjectTyper
runtime
.
ObjectTyper
names
.
NameGenerator
names
.
NameGenerator
}
}
// Strategy is the default logic that applies when creating and updating Pod
Injection Policy
objects.
// Strategy is the default logic that applies when creating and updating Pod
Preset
objects.
var
Strategy
=
podPresetStrategy
{
api
.
Scheme
,
names
.
SimpleNameGenerator
}
var
Strategy
=
podPresetStrategy
{
api
.
Scheme
,
names
.
SimpleNameGenerator
}
// NamespaceScoped returns true because all Pod
Injection Policie
s need to be within a namespace.
// NamespaceScoped returns true because all Pod
Preset
s need to be within a namespace.
func
(
podPresetStrategy
)
NamespaceScoped
()
bool
{
func
(
podPresetStrategy
)
NamespaceScoped
()
bool
{
return
true
return
true
}
}
// PrepareForCreate clears the status of a Pod
Injection Policy
before creation.
// PrepareForCreate clears the status of a Pod
Preset
before creation.
func
(
podPresetStrategy
)
PrepareForCreate
(
ctx
genericapirequest
.
Context
,
obj
runtime
.
Object
)
{
func
(
podPresetStrategy
)
PrepareForCreate
(
ctx
genericapirequest
.
Context
,
obj
runtime
.
Object
)
{
pip
:=
obj
.
(
*
settings
.
PodPreset
)
pip
:=
obj
.
(
*
settings
.
PodPreset
)
pip
.
Generation
=
1
pip
.
Generation
=
1
...
@@ -82,7 +82,7 @@ func (podPresetStrategy) ValidateUpdate(ctx genericapirequest.Context, obj, old
...
@@ -82,7 +82,7 @@ func (podPresetStrategy) ValidateUpdate(ctx genericapirequest.Context, obj, old
return
append
(
validationErrorList
,
updateErrorList
...
)
return
append
(
validationErrorList
,
updateErrorList
...
)
}
}
// AllowUnconditionalUpdate is the default update policy for Pod
Injection Policy
objects.
// AllowUnconditionalUpdate is the default update policy for Pod
Preset
objects.
func
(
podPresetStrategy
)
AllowUnconditionalUpdate
()
bool
{
func
(
podPresetStrategy
)
AllowUnconditionalUpdate
()
bool
{
return
true
return
true
}
}
...
...
staging/src/k8s.io/client-go/pkg/apis/settings/types.go
View file @
66f45195
...
@@ -34,7 +34,7 @@ type PodPreset struct {
...
@@ -34,7 +34,7 @@ type PodPreset struct {
Spec
PodPresetSpec
Spec
PodPresetSpec
}
}
// PodPresetSpec is a description of a pod
injection policy
.
// PodPresetSpec is a description of a pod
preset
.
type
PodPresetSpec
struct
{
type
PodPresetSpec
struct
{
// Selector is a label query over a set of resources, in this case pods.
// Selector is a label query over a set of resources, in this case pods.
// Required.
// Required.
...
...
staging/src/k8s.io/client-go/pkg/apis/settings/v1alpha1/generated.proto
View file @
66f45195
...
@@ -51,7 +51,7 @@ message PodPresetList {
...
@@ -51,7 +51,7 @@ message PodPresetList {
repeated
PodPreset
items
=
2
;
repeated
PodPreset
items
=
2
;
}
}
// PodPresetSpec is a description of a pod
injection policy
.
// PodPresetSpec is a description of a pod
preset
.
message
PodPresetSpec
{
message
PodPresetSpec
{
// Selector is a label query over a set of resources, in this case pods.
// Selector is a label query over a set of resources, in this case pods.
// Required.
// Required.
...
...
staging/src/k8s.io/client-go/pkg/apis/settings/v1alpha1/types.go
View file @
66f45195
...
@@ -34,7 +34,7 @@ type PodPreset struct {
...
@@ -34,7 +34,7 @@ type PodPreset struct {
Spec
PodPresetSpec
`json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"`
Spec
PodPresetSpec
`json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"`
}
}
// PodPresetSpec is a description of a pod
injection policy
.
// PodPresetSpec is a description of a pod
preset
.
type
PodPresetSpec
struct
{
type
PodPresetSpec
struct
{
// Selector is a label query over a set of resources, in this case pods.
// Selector is a label query over a set of resources, in this case pods.
// Required.
// Required.
...
...
staging/src/k8s.io/client-go/pkg/apis/settings/v1alpha1/types_swagger_doc_generated.go
View file @
66f45195
...
@@ -46,7 +46,7 @@ func (PodPresetList) SwaggerDoc() map[string]string {
...
@@ -46,7 +46,7 @@ func (PodPresetList) SwaggerDoc() map[string]string {
}
}
var
map_PodPresetSpec
=
map
[
string
]
string
{
var
map_PodPresetSpec
=
map
[
string
]
string
{
""
:
"PodPresetSpec is a description of a pod
injection policy
."
,
""
:
"PodPresetSpec is a description of a pod
preset
."
,
"selector"
:
"Selector is a label query over a set of resources, in this case pods. Required."
,
"selector"
:
"Selector is a label query over a set of resources, in this case pods. Required."
,
"env"
:
"Env defines the collection of EnvVar to inject into containers."
,
"env"
:
"Env defines the collection of EnvVar to inject into containers."
,
"envFrom"
:
"EnvFrom defines the collection of EnvFromSource to inject into containers."
,
"envFrom"
:
"EnvFrom defines the collection of EnvFromSource to inject into containers."
,
...
...
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