Replacing “Pod Injection Policy” with “Pod Preset” in the code documentation

pull/6/head
Nail Islamov 2017-05-08 09:13:22 +10:00
parent a4a94d29c1
commit 66f45195af
12 changed files with 16 additions and 16 deletions

View File

@ -45948,7 +45948,7 @@
]
},
"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": {
"env": {
"description": "Env defines the collection of EnvVar to inject into containers.",

View File

@ -1020,7 +1020,7 @@
},
"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": {
"selector": {
"$ref": "v1.LabelSelector",

View File

@ -2473,7 +2473,7 @@ Populated by the system when a graceful deletion is requested. Read-only. More i
<div class="sect2">
<h3 id="_v1alpha1_podpresetspec">v1alpha1.PodPresetSpec</h3>
<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>
<table class="tableblock frame-all grid-all" style="width:100%; ">
<colgroup>

View File

@ -34,7 +34,7 @@ type PodPreset struct {
Spec PodPresetSpec
}
// PodPresetSpec is a description of a pod injection policy.
// PodPresetSpec is a description of a pod preset.
type PodPresetSpec struct {
// Selector is a label query over a set of resources, in this case pods.
// Required.

View File

@ -51,7 +51,7 @@ message PodPresetList {
repeated PodPreset items = 2;
}
// PodPresetSpec is a description of a pod injection policy.
// PodPresetSpec is a description of a pod preset.
message PodPresetSpec {
// Selector is a label query over a set of resources, in this case pods.
// Required.

View File

@ -34,7 +34,7 @@ type PodPreset struct {
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 {
// Selector is a label query over a set of resources, in this case pods.
// Required.

View File

@ -46,7 +46,7 @@ func (PodPresetList) SwaggerDoc() 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.",
"env": "Env defines the collection of EnvVar to inject into containers.",
"envFrom": "EnvFrom defines the collection of EnvFromSource to inject into containers.",

View File

@ -32,21 +32,21 @@ import (
"k8s.io/kubernetes/pkg/apis/settings/validation"
)
// podPresetStrategy implements verification logic for Pod Injection Policies.
// podPresetStrategy implements verification logic for Pod Presets.
type podPresetStrategy struct {
runtime.ObjectTyper
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}
// NamespaceScoped returns true because all Pod Injection Policies need to be within a namespace.
// NamespaceScoped returns true because all Pod Presets need to be within a namespace.
func (podPresetStrategy) NamespaceScoped() bool {
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) {
pip := obj.(*settings.PodPreset)
pip.Generation = 1
@ -82,7 +82,7 @@ func (podPresetStrategy) ValidateUpdate(ctx genericapirequest.Context, obj, old
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 {
return true
}

View File

@ -34,7 +34,7 @@ type PodPreset struct {
Spec PodPresetSpec
}
// PodPresetSpec is a description of a pod injection policy.
// PodPresetSpec is a description of a pod preset.
type PodPresetSpec struct {
// Selector is a label query over a set of resources, in this case pods.
// Required.

View File

@ -51,7 +51,7 @@ message PodPresetList {
repeated PodPreset items = 2;
}
// PodPresetSpec is a description of a pod injection policy.
// PodPresetSpec is a description of a pod preset.
message PodPresetSpec {
// Selector is a label query over a set of resources, in this case pods.
// Required.

View File

@ -34,7 +34,7 @@ type PodPreset struct {
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 {
// Selector is a label query over a set of resources, in this case pods.
// Required.

View File

@ -46,7 +46,7 @@ func (PodPresetList) SwaggerDoc() 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.",
"env": "Env defines the collection of EnvVar to inject into containers.",
"envFrom": "EnvFrom defines the collection of EnvFromSource to inject into containers.",