mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 10:51:29 +00:00
Remove extensions/v1beta1 Job - generated changes
This commit is contained in:
parent
9f064c57ce
commit
cdec94523e
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -67,36 +67,36 @@ func NewForConfig(c *restclient.Config) (*Clientset, error) {
|
|||||||
if configShallowCopy.RateLimiter == nil && configShallowCopy.QPS > 0 {
|
if configShallowCopy.RateLimiter == nil && configShallowCopy.QPS > 0 {
|
||||||
configShallowCopy.RateLimiter = flowcontrol.NewTokenBucketRateLimiter(configShallowCopy.QPS, configShallowCopy.Burst)
|
configShallowCopy.RateLimiter = flowcontrol.NewTokenBucketRateLimiter(configShallowCopy.QPS, configShallowCopy.Burst)
|
||||||
}
|
}
|
||||||
var clientset Clientset
|
var cs Clientset
|
||||||
var err error
|
var err error
|
||||||
clientset.ApiregistrationV1alpha1Client, err = v1alpha1apiregistration.NewForConfig(&configShallowCopy)
|
cs.ApiregistrationV1alpha1Client, err = v1alpha1apiregistration.NewForConfig(&configShallowCopy)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
clientset.DiscoveryClient, err = discovery.NewDiscoveryClientForConfig(&configShallowCopy)
|
cs.DiscoveryClient, err = discovery.NewDiscoveryClientForConfig(&configShallowCopy)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
glog.Errorf("failed to create the DiscoveryClient: %v", err)
|
glog.Errorf("failed to create the DiscoveryClient: %v", err)
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
return &clientset, nil
|
return &cs, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewForConfigOrDie creates a new Clientset for the given config and
|
// NewForConfigOrDie creates a new Clientset for the given config and
|
||||||
// panics if there is an error in the config.
|
// panics if there is an error in the config.
|
||||||
func NewForConfigOrDie(c *restclient.Config) *Clientset {
|
func NewForConfigOrDie(c *restclient.Config) *Clientset {
|
||||||
var clientset Clientset
|
var cs Clientset
|
||||||
clientset.ApiregistrationV1alpha1Client = v1alpha1apiregistration.NewForConfigOrDie(c)
|
cs.ApiregistrationV1alpha1Client = v1alpha1apiregistration.NewForConfigOrDie(c)
|
||||||
|
|
||||||
clientset.DiscoveryClient = discovery.NewDiscoveryClientForConfigOrDie(c)
|
cs.DiscoveryClient = discovery.NewDiscoveryClientForConfigOrDie(c)
|
||||||
return &clientset
|
return &cs
|
||||||
}
|
}
|
||||||
|
|
||||||
// New creates a new Clientset for the given RESTClient.
|
// New creates a new Clientset for the given RESTClient.
|
||||||
func New(c restclient.Interface) *Clientset {
|
func New(c restclient.Interface) *Clientset {
|
||||||
var clientset Clientset
|
var cs Clientset
|
||||||
clientset.ApiregistrationV1alpha1Client = v1alpha1apiregistration.New(c)
|
cs.ApiregistrationV1alpha1Client = v1alpha1apiregistration.New(c)
|
||||||
|
|
||||||
clientset.DiscoveryClient = discovery.NewDiscoveryClient(c)
|
cs.DiscoveryClient = discovery.NewDiscoveryClient(c)
|
||||||
return &clientset
|
return &cs
|
||||||
}
|
}
|
||||||
|
@ -56,36 +56,36 @@ func NewForConfig(c *restclient.Config) (*Clientset, error) {
|
|||||||
if configShallowCopy.RateLimiter == nil && configShallowCopy.QPS > 0 {
|
if configShallowCopy.RateLimiter == nil && configShallowCopy.QPS > 0 {
|
||||||
configShallowCopy.RateLimiter = flowcontrol.NewTokenBucketRateLimiter(configShallowCopy.QPS, configShallowCopy.Burst)
|
configShallowCopy.RateLimiter = flowcontrol.NewTokenBucketRateLimiter(configShallowCopy.QPS, configShallowCopy.Burst)
|
||||||
}
|
}
|
||||||
var clientset Clientset
|
var cs Clientset
|
||||||
var err error
|
var err error
|
||||||
clientset.ApiregistrationClient, err = internalversionapiregistration.NewForConfig(&configShallowCopy)
|
cs.ApiregistrationClient, err = internalversionapiregistration.NewForConfig(&configShallowCopy)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
clientset.DiscoveryClient, err = discovery.NewDiscoveryClientForConfig(&configShallowCopy)
|
cs.DiscoveryClient, err = discovery.NewDiscoveryClientForConfig(&configShallowCopy)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
glog.Errorf("failed to create the DiscoveryClient: %v", err)
|
glog.Errorf("failed to create the DiscoveryClient: %v", err)
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
return &clientset, nil
|
return &cs, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewForConfigOrDie creates a new Clientset for the given config and
|
// NewForConfigOrDie creates a new Clientset for the given config and
|
||||||
// panics if there is an error in the config.
|
// panics if there is an error in the config.
|
||||||
func NewForConfigOrDie(c *restclient.Config) *Clientset {
|
func NewForConfigOrDie(c *restclient.Config) *Clientset {
|
||||||
var clientset Clientset
|
var cs Clientset
|
||||||
clientset.ApiregistrationClient = internalversionapiregistration.NewForConfigOrDie(c)
|
cs.ApiregistrationClient = internalversionapiregistration.NewForConfigOrDie(c)
|
||||||
|
|
||||||
clientset.DiscoveryClient = discovery.NewDiscoveryClientForConfigOrDie(c)
|
cs.DiscoveryClient = discovery.NewDiscoveryClientForConfigOrDie(c)
|
||||||
return &clientset
|
return &cs
|
||||||
}
|
}
|
||||||
|
|
||||||
// New creates a new Clientset for the given RESTClient.
|
// New creates a new Clientset for the given RESTClient.
|
||||||
func New(c restclient.Interface) *Clientset {
|
func New(c restclient.Interface) *Clientset {
|
||||||
var clientset Clientset
|
var cs Clientset
|
||||||
clientset.ApiregistrationClient = internalversionapiregistration.New(c)
|
cs.ApiregistrationClient = internalversionapiregistration.New(c)
|
||||||
|
|
||||||
clientset.DiscoveryClient = discovery.NewDiscoveryClient(c)
|
cs.DiscoveryClient = discovery.NewDiscoveryClient(c)
|
||||||
return &clientset
|
return &cs
|
||||||
}
|
}
|
||||||
|
@ -385,12 +385,6 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
|
|||||||
<p><a href="#_v1beta1_horizontalpodautoscalerlist">v1beta1.HorizontalPodAutoscalerList</a></p>
|
<p><a href="#_v1beta1_horizontalpodautoscalerlist">v1beta1.HorizontalPodAutoscalerList</a></p>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p><a href="#_v1beta1_job">v1beta1.Job</a></p>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<p><a href="#_v1beta1_joblist">v1beta1.JobList</a></p>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<p><a href="#_v1beta1_scale">v1beta1.Scale</a></p>
|
<p><a href="#_v1beta1_scale">v1beta1.Scale</a></p>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
@ -656,68 +650,6 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
</div>
|
|
||||||
<div class="sect2">
|
|
||||||
<h3 id="_v1beta1_job">v1beta1.Job</h3>
|
|
||||||
<div class="paragraph">
|
|
||||||
<p>Job represents the configuration of a single job. DEPRECATED: extensions/v1beta1.Job is deprecated, use batch/v1.Job instead.</p>
|
|
||||||
</div>
|
|
||||||
<table class="tableblock frame-all grid-all" style="width:100%; ">
|
|
||||||
<colgroup>
|
|
||||||
<col style="width:20%;">
|
|
||||||
<col style="width:20%;">
|
|
||||||
<col style="width:20%;">
|
|
||||||
<col style="width:20%;">
|
|
||||||
<col style="width:20%;">
|
|
||||||
</colgroup>
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th class="tableblock halign-left valign-top">Name</th>
|
|
||||||
<th class="tableblock halign-left valign-top">Description</th>
|
|
||||||
<th class="tableblock halign-left valign-top">Required</th>
|
|
||||||
<th class="tableblock halign-left valign-top">Schema</th>
|
|
||||||
<th class="tableblock halign-left valign-top">Default</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">kind</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: <a href="http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds">http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds</a></p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">false</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">string</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">apiVersion</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: <a href="http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources">http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources</a></p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">false</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">string</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">metadata</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">Standard object’s metadata. More info: <a href="http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata">http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata</a></p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">false</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="#_v1_objectmeta">v1.ObjectMeta</a></p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">spec</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">Spec is a structure defining the expected behavior of a job. More info: <a href="http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status">http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status</a></p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">false</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="#_v1beta1_jobspec">v1beta1.JobSpec</a></p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">status</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">Status is a structure describing current status of a job. More info: <a href="http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status">http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status</a></p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">false</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="#_v1beta1_jobstatus">v1beta1.JobStatus</a></p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"></td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="sect2">
|
<div class="sect2">
|
||||||
<h3 id="_v1_nodeselectorterm">v1.NodeSelectorTerm</h3>
|
<h3 id="_v1_nodeselectorterm">v1.NodeSelectorTerm</h3>
|
||||||
@ -1615,75 +1547,6 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
</div>
|
|
||||||
<div class="sect2">
|
|
||||||
<h3 id="_v1beta1_jobstatus">v1beta1.JobStatus</h3>
|
|
||||||
<div class="paragraph">
|
|
||||||
<p>JobStatus represents the current state of a Job.</p>
|
|
||||||
</div>
|
|
||||||
<table class="tableblock frame-all grid-all" style="width:100%; ">
|
|
||||||
<colgroup>
|
|
||||||
<col style="width:20%;">
|
|
||||||
<col style="width:20%;">
|
|
||||||
<col style="width:20%;">
|
|
||||||
<col style="width:20%;">
|
|
||||||
<col style="width:20%;">
|
|
||||||
</colgroup>
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th class="tableblock halign-left valign-top">Name</th>
|
|
||||||
<th class="tableblock halign-left valign-top">Description</th>
|
|
||||||
<th class="tableblock halign-left valign-top">Required</th>
|
|
||||||
<th class="tableblock halign-left valign-top">Schema</th>
|
|
||||||
<th class="tableblock halign-left valign-top">Default</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">conditions</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">Conditions represent the latest available observations of an object’s current state. More info: <a href="http://kubernetes.io/docs/user-guide/jobs">http://kubernetes.io/docs/user-guide/jobs</a></p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">false</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="#_v1beta1_jobcondition">v1beta1.JobCondition</a> array</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">startTime</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">StartTime represents time when the job was acknowledged by the Job Manager. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC.</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">false</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">string</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">completionTime</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">CompletionTime represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC.</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">false</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">string</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">active</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">Active is the number of actively running pods.</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">false</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">integer (int32)</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">succeeded</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">Succeeded is the number of pods which reached Phase Succeeded.</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">false</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">integer (int32)</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">failed</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">Failed is the number of pods which reached Phase Failed.</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">false</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">integer (int32)</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"></td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="sect2">
|
<div class="sect2">
|
||||||
<h3 id="_v1_capabilities">v1.Capabilities</h3>
|
<h3 id="_v1_capabilities">v1.Capabilities</h3>
|
||||||
@ -2814,75 +2677,6 @@ Populated by the system when a graceful deletion is requested. Read-only. More i
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
</div>
|
|
||||||
<div class="sect2">
|
|
||||||
<h3 id="_v1beta1_jobcondition">v1beta1.JobCondition</h3>
|
|
||||||
<div class="paragraph">
|
|
||||||
<p>JobCondition describes current state of a job.</p>
|
|
||||||
</div>
|
|
||||||
<table class="tableblock frame-all grid-all" style="width:100%; ">
|
|
||||||
<colgroup>
|
|
||||||
<col style="width:20%;">
|
|
||||||
<col style="width:20%;">
|
|
||||||
<col style="width:20%;">
|
|
||||||
<col style="width:20%;">
|
|
||||||
<col style="width:20%;">
|
|
||||||
</colgroup>
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th class="tableblock halign-left valign-top">Name</th>
|
|
||||||
<th class="tableblock halign-left valign-top">Description</th>
|
|
||||||
<th class="tableblock halign-left valign-top">Required</th>
|
|
||||||
<th class="tableblock halign-left valign-top">Schema</th>
|
|
||||||
<th class="tableblock halign-left valign-top">Default</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">type</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">Type of job condition, Complete or Failed.</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">true</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">string</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">status</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">Status of the condition, one of True, False, Unknown.</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">true</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">string</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">lastProbeTime</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">Last time the condition was checked.</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">false</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">string</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">lastTransitionTime</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">Last time the condition transit from one status to another.</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">false</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">string</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">reason</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">(brief) reason for the condition’s last transition.</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">false</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">string</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">message</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">Human readable message indicating details about last transition.</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">false</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">string</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"></td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="sect2">
|
<div class="sect2">
|
||||||
<h3 id="_v1_loadbalanceringress">v1.LoadBalancerIngress</h3>
|
<h3 id="_v1_loadbalanceringress">v1.LoadBalancerIngress</h3>
|
||||||
@ -5275,61 +5069,6 @@ Both these may change in the future. Incoming requests are matched against the h
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
</div>
|
|
||||||
<div class="sect2">
|
|
||||||
<h3 id="_v1beta1_joblist">v1beta1.JobList</h3>
|
|
||||||
<div class="paragraph">
|
|
||||||
<p>JobList is a collection of jobs. DEPRECATED: extensions/v1beta1.JobList is deprecated, use batch/v1.JobList instead.</p>
|
|
||||||
</div>
|
|
||||||
<table class="tableblock frame-all grid-all" style="width:100%; ">
|
|
||||||
<colgroup>
|
|
||||||
<col style="width:20%;">
|
|
||||||
<col style="width:20%;">
|
|
||||||
<col style="width:20%;">
|
|
||||||
<col style="width:20%;">
|
|
||||||
<col style="width:20%;">
|
|
||||||
</colgroup>
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th class="tableblock halign-left valign-top">Name</th>
|
|
||||||
<th class="tableblock halign-left valign-top">Description</th>
|
|
||||||
<th class="tableblock halign-left valign-top">Required</th>
|
|
||||||
<th class="tableblock halign-left valign-top">Schema</th>
|
|
||||||
<th class="tableblock halign-left valign-top">Default</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">kind</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: <a href="http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds">http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds</a></p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">false</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">string</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">apiVersion</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: <a href="http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources">http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources</a></p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">false</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">string</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">metadata</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">Standard list metadata More info: <a href="http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata">http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata</a></p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">false</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="#_v1_listmeta">v1.ListMeta</a></p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">items</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">Items is the list of Job.</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">true</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="#_v1beta1_job">v1beta1.Job</a> array</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"></td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="sect2">
|
<div class="sect2">
|
||||||
<h3 id="_v1beta1_networkpolicypeer">v1beta1.NetworkPolicyPeer</h3>
|
<h3 id="_v1beta1_networkpolicypeer">v1beta1.NetworkPolicyPeer</h3>
|
||||||
@ -6828,75 +6567,6 @@ Both these may change in the future. Incoming requests are matched against the h
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
</div>
|
|
||||||
<div class="sect2">
|
|
||||||
<h3 id="_v1beta1_jobspec">v1beta1.JobSpec</h3>
|
|
||||||
<div class="paragraph">
|
|
||||||
<p>JobSpec describes how the job execution will look like.</p>
|
|
||||||
</div>
|
|
||||||
<table class="tableblock frame-all grid-all" style="width:100%; ">
|
|
||||||
<colgroup>
|
|
||||||
<col style="width:20%;">
|
|
||||||
<col style="width:20%;">
|
|
||||||
<col style="width:20%;">
|
|
||||||
<col style="width:20%;">
|
|
||||||
<col style="width:20%;">
|
|
||||||
</colgroup>
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th class="tableblock halign-left valign-top">Name</th>
|
|
||||||
<th class="tableblock halign-left valign-top">Description</th>
|
|
||||||
<th class="tableblock halign-left valign-top">Required</th>
|
|
||||||
<th class="tableblock halign-left valign-top">Schema</th>
|
|
||||||
<th class="tableblock halign-left valign-top">Default</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">parallelism</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">Parallelism specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: <a href="http://kubernetes.io/docs/user-guide/jobs">http://kubernetes.io/docs/user-guide/jobs</a></p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">false</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">integer (int32)</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">completions</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">Completions specifies the desired number of successfully finished pods the job should be run with. Setting to nil means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: <a href="http://kubernetes.io/docs/user-guide/jobs">http://kubernetes.io/docs/user-guide/jobs</a></p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">false</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">integer (int32)</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">activeDeadlineSeconds</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">Optional duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">false</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">integer (int64)</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">selector</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">Selector is a label query over pods that should match the pod count. Normally, the system sets this field for you. More info: <a href="http://kubernetes.io/docs/user-guide/labels#label-selectors">http://kubernetes.io/docs/user-guide/labels#label-selectors</a></p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">false</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="#_v1_labelselector">v1.LabelSelector</a></p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">autoSelector</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">AutoSelector controls generation of pod labels and pod selectors. It was not present in the original extensions/v1beta1 Job definition, but exists to allow conversion from batch/v1 Jobs, where it corresponds to, but has the opposite meaning as, ManualSelector. More info: <a href="http://releases.k8s.io/HEAD/docs/design/selector-generation.md">http://releases.k8s.io/HEAD/docs/design/selector-generation.md</a></p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">false</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">boolean</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">false</p></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">template</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">Template is the object that describes the pod that will be created when executing a job. More info: <a href="http://kubernetes.io/docs/user-guide/jobs">http://kubernetes.io/docs/user-guide/jobs</a></p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">true</p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="#_v1_podtemplatespec">v1.PodTemplateSpec</a></p></td>
|
|
||||||
<td class="tableblock halign-left valign-top"></td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="sect2">
|
<div class="sect2">
|
||||||
<h3 id="_v1_nodeaffinity">v1.NodeAffinity</h3>
|
<h3 id="_v1_nodeaffinity">v1.NodeAffinity</h3>
|
||||||
@ -7249,7 +6919,7 @@ Both these may change in the future. Incoming requests are matched against the h
|
|||||||
</div>
|
</div>
|
||||||
<div id="footer">
|
<div id="footer">
|
||||||
<div id="footer-text">
|
<div id="footer-text">
|
||||||
Last updated 2016-12-16 14:44:47 UTC
|
Last updated 2016-12-16 21:59:42 UTC
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -133,54 +133,54 @@ func NewForConfig(c *restclient.Config) (*Clientset, error) {
|
|||||||
if configShallowCopy.RateLimiter == nil && configShallowCopy.QPS > 0 {
|
if configShallowCopy.RateLimiter == nil && configShallowCopy.QPS > 0 {
|
||||||
configShallowCopy.RateLimiter = flowcontrol.NewTokenBucketRateLimiter(configShallowCopy.QPS, configShallowCopy.Burst)
|
configShallowCopy.RateLimiter = flowcontrol.NewTokenBucketRateLimiter(configShallowCopy.QPS, configShallowCopy.Burst)
|
||||||
}
|
}
|
||||||
var clientset Clientset
|
var cs Clientset
|
||||||
var err error
|
var err error
|
||||||
clientset.CoreV1Client, err = v1core.NewForConfig(&configShallowCopy)
|
cs.CoreV1Client, err = v1core.NewForConfig(&configShallowCopy)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
clientset.BatchV1Client, err = v1batch.NewForConfig(&configShallowCopy)
|
cs.BatchV1Client, err = v1batch.NewForConfig(&configShallowCopy)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
clientset.ExtensionsV1beta1Client, err = v1beta1extensions.NewForConfig(&configShallowCopy)
|
cs.ExtensionsV1beta1Client, err = v1beta1extensions.NewForConfig(&configShallowCopy)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
clientset.FederationV1beta1Client, err = v1beta1federation.NewForConfig(&configShallowCopy)
|
cs.FederationV1beta1Client, err = v1beta1federation.NewForConfig(&configShallowCopy)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
clientset.DiscoveryClient, err = discovery.NewDiscoveryClientForConfig(&configShallowCopy)
|
cs.DiscoveryClient, err = discovery.NewDiscoveryClientForConfig(&configShallowCopy)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
glog.Errorf("failed to create the DiscoveryClient: %v", err)
|
glog.Errorf("failed to create the DiscoveryClient: %v", err)
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
return &clientset, nil
|
return &cs, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewForConfigOrDie creates a new Clientset for the given config and
|
// NewForConfigOrDie creates a new Clientset for the given config and
|
||||||
// panics if there is an error in the config.
|
// panics if there is an error in the config.
|
||||||
func NewForConfigOrDie(c *restclient.Config) *Clientset {
|
func NewForConfigOrDie(c *restclient.Config) *Clientset {
|
||||||
var clientset Clientset
|
var cs Clientset
|
||||||
clientset.CoreV1Client = v1core.NewForConfigOrDie(c)
|
cs.CoreV1Client = v1core.NewForConfigOrDie(c)
|
||||||
clientset.BatchV1Client = v1batch.NewForConfigOrDie(c)
|
cs.BatchV1Client = v1batch.NewForConfigOrDie(c)
|
||||||
clientset.ExtensionsV1beta1Client = v1beta1extensions.NewForConfigOrDie(c)
|
cs.ExtensionsV1beta1Client = v1beta1extensions.NewForConfigOrDie(c)
|
||||||
clientset.FederationV1beta1Client = v1beta1federation.NewForConfigOrDie(c)
|
cs.FederationV1beta1Client = v1beta1federation.NewForConfigOrDie(c)
|
||||||
|
|
||||||
clientset.DiscoveryClient = discovery.NewDiscoveryClientForConfigOrDie(c)
|
cs.DiscoveryClient = discovery.NewDiscoveryClientForConfigOrDie(c)
|
||||||
return &clientset
|
return &cs
|
||||||
}
|
}
|
||||||
|
|
||||||
// New creates a new Clientset for the given RESTClient.
|
// New creates a new Clientset for the given RESTClient.
|
||||||
func New(c restclient.Interface) *Clientset {
|
func New(c restclient.Interface) *Clientset {
|
||||||
var clientset Clientset
|
var cs Clientset
|
||||||
clientset.CoreV1Client = v1core.New(c)
|
cs.CoreV1Client = v1core.New(c)
|
||||||
clientset.BatchV1Client = v1batch.New(c)
|
cs.BatchV1Client = v1batch.New(c)
|
||||||
clientset.ExtensionsV1beta1Client = v1beta1extensions.New(c)
|
cs.ExtensionsV1beta1Client = v1beta1extensions.New(c)
|
||||||
clientset.FederationV1beta1Client = v1beta1federation.New(c)
|
cs.FederationV1beta1Client = v1beta1federation.New(c)
|
||||||
|
|
||||||
clientset.DiscoveryClient = discovery.NewDiscoveryClient(c)
|
cs.DiscoveryClient = discovery.NewDiscoveryClient(c)
|
||||||
return &clientset
|
return &cs
|
||||||
}
|
}
|
||||||
|
@ -92,54 +92,54 @@ func NewForConfig(c *restclient.Config) (*Clientset, error) {
|
|||||||
if configShallowCopy.RateLimiter == nil && configShallowCopy.QPS > 0 {
|
if configShallowCopy.RateLimiter == nil && configShallowCopy.QPS > 0 {
|
||||||
configShallowCopy.RateLimiter = flowcontrol.NewTokenBucketRateLimiter(configShallowCopy.QPS, configShallowCopy.Burst)
|
configShallowCopy.RateLimiter = flowcontrol.NewTokenBucketRateLimiter(configShallowCopy.QPS, configShallowCopy.Burst)
|
||||||
}
|
}
|
||||||
var clientset Clientset
|
var cs Clientset
|
||||||
var err error
|
var err error
|
||||||
clientset.CoreClient, err = internalversioncore.NewForConfig(&configShallowCopy)
|
cs.CoreClient, err = internalversioncore.NewForConfig(&configShallowCopy)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
clientset.BatchClient, err = internalversionbatch.NewForConfig(&configShallowCopy)
|
cs.BatchClient, err = internalversionbatch.NewForConfig(&configShallowCopy)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
clientset.ExtensionsClient, err = internalversionextensions.NewForConfig(&configShallowCopy)
|
cs.ExtensionsClient, err = internalversionextensions.NewForConfig(&configShallowCopy)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
clientset.FederationClient, err = internalversionfederation.NewForConfig(&configShallowCopy)
|
cs.FederationClient, err = internalversionfederation.NewForConfig(&configShallowCopy)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
clientset.DiscoveryClient, err = discovery.NewDiscoveryClientForConfig(&configShallowCopy)
|
cs.DiscoveryClient, err = discovery.NewDiscoveryClientForConfig(&configShallowCopy)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
glog.Errorf("failed to create the DiscoveryClient: %v", err)
|
glog.Errorf("failed to create the DiscoveryClient: %v", err)
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
return &clientset, nil
|
return &cs, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewForConfigOrDie creates a new Clientset for the given config and
|
// NewForConfigOrDie creates a new Clientset for the given config and
|
||||||
// panics if there is an error in the config.
|
// panics if there is an error in the config.
|
||||||
func NewForConfigOrDie(c *restclient.Config) *Clientset {
|
func NewForConfigOrDie(c *restclient.Config) *Clientset {
|
||||||
var clientset Clientset
|
var cs Clientset
|
||||||
clientset.CoreClient = internalversioncore.NewForConfigOrDie(c)
|
cs.CoreClient = internalversioncore.NewForConfigOrDie(c)
|
||||||
clientset.BatchClient = internalversionbatch.NewForConfigOrDie(c)
|
cs.BatchClient = internalversionbatch.NewForConfigOrDie(c)
|
||||||
clientset.ExtensionsClient = internalversionextensions.NewForConfigOrDie(c)
|
cs.ExtensionsClient = internalversionextensions.NewForConfigOrDie(c)
|
||||||
clientset.FederationClient = internalversionfederation.NewForConfigOrDie(c)
|
cs.FederationClient = internalversionfederation.NewForConfigOrDie(c)
|
||||||
|
|
||||||
clientset.DiscoveryClient = discovery.NewDiscoveryClientForConfigOrDie(c)
|
cs.DiscoveryClient = discovery.NewDiscoveryClientForConfigOrDie(c)
|
||||||
return &clientset
|
return &cs
|
||||||
}
|
}
|
||||||
|
|
||||||
// New creates a new Clientset for the given RESTClient.
|
// New creates a new Clientset for the given RESTClient.
|
||||||
func New(c restclient.Interface) *Clientset {
|
func New(c restclient.Interface) *Clientset {
|
||||||
var clientset Clientset
|
var cs Clientset
|
||||||
clientset.CoreClient = internalversioncore.New(c)
|
cs.CoreClient = internalversioncore.New(c)
|
||||||
clientset.BatchClient = internalversionbatch.New(c)
|
cs.BatchClient = internalversionbatch.New(c)
|
||||||
clientset.ExtensionsClient = internalversionextensions.New(c)
|
cs.ExtensionsClient = internalversionextensions.New(c)
|
||||||
clientset.FederationClient = internalversionfederation.New(c)
|
cs.FederationClient = internalversionfederation.New(c)
|
||||||
|
|
||||||
clientset.DiscoveryClient = discovery.NewDiscoveryClient(c)
|
cs.DiscoveryClient = discovery.NewDiscoveryClient(c)
|
||||||
return &clientset
|
return &cs
|
||||||
}
|
}
|
||||||
|
@ -22,7 +22,6 @@ go_library(
|
|||||||
"//pkg/api:go_default_library",
|
"//pkg/api:go_default_library",
|
||||||
"//pkg/api/resource:go_default_library",
|
"//pkg/api/resource:go_default_library",
|
||||||
"//pkg/apis/autoscaling:go_default_library",
|
"//pkg/apis/autoscaling:go_default_library",
|
||||||
"//pkg/apis/batch:go_default_library",
|
|
||||||
"//pkg/apis/meta/v1:go_default_library",
|
"//pkg/apis/meta/v1:go_default_library",
|
||||||
"//pkg/conversion:go_default_library",
|
"//pkg/conversion:go_default_library",
|
||||||
"//pkg/runtime:go_default_library",
|
"//pkg/runtime:go_default_library",
|
||||||
|
@ -29,7 +29,6 @@ go_library(
|
|||||||
"//pkg/api/resource:go_default_library",
|
"//pkg/api/resource:go_default_library",
|
||||||
"//pkg/api/v1:go_default_library",
|
"//pkg/api/v1:go_default_library",
|
||||||
"//pkg/apis/autoscaling:go_default_library",
|
"//pkg/apis/autoscaling:go_default_library",
|
||||||
"//pkg/apis/batch:go_default_library",
|
|
||||||
"//pkg/apis/extensions:go_default_library",
|
"//pkg/apis/extensions:go_default_library",
|
||||||
"//pkg/apis/meta/v1:go_default_library",
|
"//pkg/apis/meta/v1:go_default_library",
|
||||||
"//pkg/conversion:go_default_library",
|
"//pkg/conversion:go_default_library",
|
||||||
@ -46,17 +45,13 @@ go_library(
|
|||||||
|
|
||||||
go_test(
|
go_test(
|
||||||
name = "go_default_xtest",
|
name = "go_default_xtest",
|
||||||
srcs = [
|
srcs = ["defaults_test.go"],
|
||||||
"conversion_test.go",
|
|
||||||
"defaults_test.go",
|
|
||||||
],
|
|
||||||
tags = ["automanaged"],
|
tags = ["automanaged"],
|
||||||
deps = [
|
deps = [
|
||||||
"//pkg/api:go_default_library",
|
"//pkg/api:go_default_library",
|
||||||
"//pkg/api/install:go_default_library",
|
"//pkg/api/install:go_default_library",
|
||||||
"//pkg/api/resource:go_default_library",
|
"//pkg/api/resource:go_default_library",
|
||||||
"//pkg/api/v1:go_default_library",
|
"//pkg/api/v1:go_default_library",
|
||||||
"//pkg/apis/batch:go_default_library",
|
|
||||||
"//pkg/apis/extensions/install:go_default_library",
|
"//pkg/apis/extensions/install:go_default_library",
|
||||||
"//pkg/apis/extensions/v1beta1:go_default_library",
|
"//pkg/apis/extensions/v1beta1:go_default_library",
|
||||||
"//pkg/apis/meta/v1:go_default_library",
|
"//pkg/apis/meta/v1:go_default_library",
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -541,138 +541,6 @@ message IngressTLS {
|
|||||||
optional string secretName = 2;
|
optional string secretName = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Job represents the configuration of a single job.
|
|
||||||
// DEPRECATED: extensions/v1beta1.Job is deprecated, use batch/v1.Job instead.
|
|
||||||
message Job {
|
|
||||||
// Standard object's metadata.
|
|
||||||
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
|
|
||||||
// +optional
|
|
||||||
optional k8s.io.kubernetes.pkg.api.v1.ObjectMeta metadata = 1;
|
|
||||||
|
|
||||||
// Spec is a structure defining the expected behavior of a job.
|
|
||||||
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status
|
|
||||||
// +optional
|
|
||||||
optional JobSpec spec = 2;
|
|
||||||
|
|
||||||
// Status is a structure describing current status of a job.
|
|
||||||
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status
|
|
||||||
// +optional
|
|
||||||
optional JobStatus status = 3;
|
|
||||||
}
|
|
||||||
|
|
||||||
// JobCondition describes current state of a job.
|
|
||||||
message JobCondition {
|
|
||||||
// Type of job condition, Complete or Failed.
|
|
||||||
optional string type = 1;
|
|
||||||
|
|
||||||
// Status of the condition, one of True, False, Unknown.
|
|
||||||
optional string status = 2;
|
|
||||||
|
|
||||||
// Last time the condition was checked.
|
|
||||||
// +optional
|
|
||||||
optional k8s.io.kubernetes.pkg.apis.meta.v1.Time lastProbeTime = 3;
|
|
||||||
|
|
||||||
// Last time the condition transit from one status to another.
|
|
||||||
// +optional
|
|
||||||
optional k8s.io.kubernetes.pkg.apis.meta.v1.Time lastTransitionTime = 4;
|
|
||||||
|
|
||||||
// (brief) reason for the condition's last transition.
|
|
||||||
// +optional
|
|
||||||
optional string reason = 5;
|
|
||||||
|
|
||||||
// Human readable message indicating details about last transition.
|
|
||||||
// +optional
|
|
||||||
optional string message = 6;
|
|
||||||
}
|
|
||||||
|
|
||||||
// JobList is a collection of jobs.
|
|
||||||
// DEPRECATED: extensions/v1beta1.JobList is deprecated, use batch/v1.JobList instead.
|
|
||||||
message JobList {
|
|
||||||
// Standard list metadata
|
|
||||||
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
|
|
||||||
// +optional
|
|
||||||
optional k8s.io.kubernetes.pkg.apis.meta.v1.ListMeta metadata = 1;
|
|
||||||
|
|
||||||
// Items is the list of Job.
|
|
||||||
repeated Job items = 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
// JobSpec describes how the job execution will look like.
|
|
||||||
message JobSpec {
|
|
||||||
// Parallelism specifies the maximum desired number of pods the job should
|
|
||||||
// run at any given time. The actual number of pods running in steady state will
|
|
||||||
// be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism),
|
|
||||||
// i.e. when the work left to do is less than max parallelism.
|
|
||||||
// More info: http://kubernetes.io/docs/user-guide/jobs
|
|
||||||
// +optional
|
|
||||||
optional int32 parallelism = 1;
|
|
||||||
|
|
||||||
// Completions specifies the desired number of successfully finished pods the
|
|
||||||
// job should be run with. Setting to nil means that the success of any
|
|
||||||
// pod signals the success of all pods, and allows parallelism to have any positive
|
|
||||||
// value. Setting to 1 means that parallelism is limited to 1 and the success of that
|
|
||||||
// pod signals the success of the job.
|
|
||||||
// More info: http://kubernetes.io/docs/user-guide/jobs
|
|
||||||
// +optional
|
|
||||||
optional int32 completions = 2;
|
|
||||||
|
|
||||||
// Optional duration in seconds relative to the startTime that the job may be active
|
|
||||||
// before the system tries to terminate it; value must be positive integer
|
|
||||||
// +optional
|
|
||||||
optional int64 activeDeadlineSeconds = 3;
|
|
||||||
|
|
||||||
// Selector is a label query over pods that should match the pod count.
|
|
||||||
// Normally, the system sets this field for you.
|
|
||||||
// More info: http://kubernetes.io/docs/user-guide/labels#label-selectors
|
|
||||||
// +optional
|
|
||||||
optional k8s.io.kubernetes.pkg.apis.meta.v1.LabelSelector selector = 4;
|
|
||||||
|
|
||||||
// AutoSelector controls generation of pod labels and pod selectors.
|
|
||||||
// It was not present in the original extensions/v1beta1 Job definition, but exists
|
|
||||||
// to allow conversion from batch/v1 Jobs, where it corresponds to, but has the opposite
|
|
||||||
// meaning as, ManualSelector.
|
|
||||||
// More info: http://releases.k8s.io/HEAD/docs/design/selector-generation.md
|
|
||||||
// +optional
|
|
||||||
optional bool autoSelector = 5;
|
|
||||||
|
|
||||||
// Template is the object that describes the pod that will be created when
|
|
||||||
// executing a job.
|
|
||||||
// More info: http://kubernetes.io/docs/user-guide/jobs
|
|
||||||
optional k8s.io.kubernetes.pkg.api.v1.PodTemplateSpec template = 6;
|
|
||||||
}
|
|
||||||
|
|
||||||
// JobStatus represents the current state of a Job.
|
|
||||||
message JobStatus {
|
|
||||||
// Conditions represent the latest available observations of an object's current state.
|
|
||||||
// More info: http://kubernetes.io/docs/user-guide/jobs
|
|
||||||
// +optional
|
|
||||||
repeated JobCondition conditions = 1;
|
|
||||||
|
|
||||||
// StartTime represents time when the job was acknowledged by the Job Manager.
|
|
||||||
// It is not guaranteed to be set in happens-before order across separate operations.
|
|
||||||
// It is represented in RFC3339 form and is in UTC.
|
|
||||||
// +optional
|
|
||||||
optional k8s.io.kubernetes.pkg.apis.meta.v1.Time startTime = 2;
|
|
||||||
|
|
||||||
// CompletionTime represents time when the job was completed. It is not guaranteed to
|
|
||||||
// be set in happens-before order across separate operations.
|
|
||||||
// It is represented in RFC3339 form and is in UTC.
|
|
||||||
// +optional
|
|
||||||
optional k8s.io.kubernetes.pkg.apis.meta.v1.Time completionTime = 3;
|
|
||||||
|
|
||||||
// Active is the number of actively running pods.
|
|
||||||
// +optional
|
|
||||||
optional int32 active = 4;
|
|
||||||
|
|
||||||
// Succeeded is the number of pods which reached Phase Succeeded.
|
|
||||||
// +optional
|
|
||||||
optional int32 succeeded = 5;
|
|
||||||
|
|
||||||
// Failed is the number of pods which reached Phase Failed.
|
|
||||||
// +optional
|
|
||||||
optional int32 failed = 6;
|
|
||||||
}
|
|
||||||
|
|
||||||
message NetworkPolicy {
|
message NetworkPolicy {
|
||||||
// Standard object's metadata.
|
// Standard object's metadata.
|
||||||
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
|
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -366,69 +366,6 @@ func (IngressTLS) SwaggerDoc() map[string]string {
|
|||||||
return map_IngressTLS
|
return map_IngressTLS
|
||||||
}
|
}
|
||||||
|
|
||||||
var map_Job = map[string]string{
|
|
||||||
"": "Job represents the configuration of a single job. DEPRECATED: extensions/v1beta1.Job is deprecated, use batch/v1.Job instead.",
|
|
||||||
"metadata": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata",
|
|
||||||
"spec": "Spec is a structure defining the expected behavior of a job. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status",
|
|
||||||
"status": "Status is a structure describing current status of a job. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status",
|
|
||||||
}
|
|
||||||
|
|
||||||
func (Job) SwaggerDoc() map[string]string {
|
|
||||||
return map_Job
|
|
||||||
}
|
|
||||||
|
|
||||||
var map_JobCondition = map[string]string{
|
|
||||||
"": "JobCondition describes current state of a job.",
|
|
||||||
"type": "Type of job condition, Complete or Failed.",
|
|
||||||
"status": "Status of the condition, one of True, False, Unknown.",
|
|
||||||
"lastProbeTime": "Last time the condition was checked.",
|
|
||||||
"lastTransitionTime": "Last time the condition transit from one status to another.",
|
|
||||||
"reason": "(brief) reason for the condition's last transition.",
|
|
||||||
"message": "Human readable message indicating details about last transition.",
|
|
||||||
}
|
|
||||||
|
|
||||||
func (JobCondition) SwaggerDoc() map[string]string {
|
|
||||||
return map_JobCondition
|
|
||||||
}
|
|
||||||
|
|
||||||
var map_JobList = map[string]string{
|
|
||||||
"": "JobList is a collection of jobs. DEPRECATED: extensions/v1beta1.JobList is deprecated, use batch/v1.JobList instead.",
|
|
||||||
"metadata": "Standard list metadata More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata",
|
|
||||||
"items": "Items is the list of Job.",
|
|
||||||
}
|
|
||||||
|
|
||||||
func (JobList) SwaggerDoc() map[string]string {
|
|
||||||
return map_JobList
|
|
||||||
}
|
|
||||||
|
|
||||||
var map_JobSpec = map[string]string{
|
|
||||||
"": "JobSpec describes how the job execution will look like.",
|
|
||||||
"parallelism": "Parallelism specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: http://kubernetes.io/docs/user-guide/jobs",
|
|
||||||
"completions": "Completions specifies the desired number of successfully finished pods the job should be run with. Setting to nil means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: http://kubernetes.io/docs/user-guide/jobs",
|
|
||||||
"activeDeadlineSeconds": "Optional duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer",
|
|
||||||
"selector": "Selector is a label query over pods that should match the pod count. Normally, the system sets this field for you. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors",
|
|
||||||
"autoSelector": "AutoSelector controls generation of pod labels and pod selectors. It was not present in the original extensions/v1beta1 Job definition, but exists to allow conversion from batch/v1 Jobs, where it corresponds to, but has the opposite meaning as, ManualSelector. More info: http://releases.k8s.io/HEAD/docs/design/selector-generation.md",
|
|
||||||
"template": "Template is the object that describes the pod that will be created when executing a job. More info: http://kubernetes.io/docs/user-guide/jobs",
|
|
||||||
}
|
|
||||||
|
|
||||||
func (JobSpec) SwaggerDoc() map[string]string {
|
|
||||||
return map_JobSpec
|
|
||||||
}
|
|
||||||
|
|
||||||
var map_JobStatus = map[string]string{
|
|
||||||
"": "JobStatus represents the current state of a Job.",
|
|
||||||
"conditions": "Conditions represent the latest available observations of an object's current state. More info: http://kubernetes.io/docs/user-guide/jobs",
|
|
||||||
"startTime": "StartTime represents time when the job was acknowledged by the Job Manager. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC.",
|
|
||||||
"completionTime": "CompletionTime represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC.",
|
|
||||||
"active": "Active is the number of actively running pods.",
|
|
||||||
"succeeded": "Succeeded is the number of pods which reached Phase Succeeded.",
|
|
||||||
"failed": "Failed is the number of pods which reached Phase Failed.",
|
|
||||||
}
|
|
||||||
|
|
||||||
func (JobStatus) SwaggerDoc() map[string]string {
|
|
||||||
return map_JobStatus
|
|
||||||
}
|
|
||||||
|
|
||||||
var map_NetworkPolicy = map[string]string{
|
var map_NetworkPolicy = map[string]string{
|
||||||
"metadata": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata",
|
"metadata": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata",
|
||||||
"spec": "Specification of the desired behavior for this NetworkPolicy.",
|
"spec": "Specification of the desired behavior for this NetworkPolicy.",
|
||||||
|
@ -24,7 +24,6 @@ import (
|
|||||||
api "k8s.io/kubernetes/pkg/api"
|
api "k8s.io/kubernetes/pkg/api"
|
||||||
api_v1 "k8s.io/kubernetes/pkg/api/v1"
|
api_v1 "k8s.io/kubernetes/pkg/api/v1"
|
||||||
autoscaling "k8s.io/kubernetes/pkg/apis/autoscaling"
|
autoscaling "k8s.io/kubernetes/pkg/apis/autoscaling"
|
||||||
batch "k8s.io/kubernetes/pkg/apis/batch"
|
|
||||||
extensions "k8s.io/kubernetes/pkg/apis/extensions"
|
extensions "k8s.io/kubernetes/pkg/apis/extensions"
|
||||||
v1 "k8s.io/kubernetes/pkg/apis/meta/v1"
|
v1 "k8s.io/kubernetes/pkg/apis/meta/v1"
|
||||||
conversion "k8s.io/kubernetes/pkg/conversion"
|
conversion "k8s.io/kubernetes/pkg/conversion"
|
||||||
@ -107,16 +106,6 @@ func RegisterConversions(scheme *runtime.Scheme) error {
|
|||||||
Convert_extensions_IngressStatus_To_v1beta1_IngressStatus,
|
Convert_extensions_IngressStatus_To_v1beta1_IngressStatus,
|
||||||
Convert_v1beta1_IngressTLS_To_extensions_IngressTLS,
|
Convert_v1beta1_IngressTLS_To_extensions_IngressTLS,
|
||||||
Convert_extensions_IngressTLS_To_v1beta1_IngressTLS,
|
Convert_extensions_IngressTLS_To_v1beta1_IngressTLS,
|
||||||
Convert_v1beta1_Job_To_batch_Job,
|
|
||||||
Convert_batch_Job_To_v1beta1_Job,
|
|
||||||
Convert_v1beta1_JobCondition_To_batch_JobCondition,
|
|
||||||
Convert_batch_JobCondition_To_v1beta1_JobCondition,
|
|
||||||
Convert_v1beta1_JobList_To_batch_JobList,
|
|
||||||
Convert_batch_JobList_To_v1beta1_JobList,
|
|
||||||
Convert_v1beta1_JobSpec_To_batch_JobSpec,
|
|
||||||
Convert_batch_JobSpec_To_v1beta1_JobSpec,
|
|
||||||
Convert_v1beta1_JobStatus_To_batch_JobStatus,
|
|
||||||
Convert_batch_JobStatus_To_v1beta1_JobStatus,
|
|
||||||
Convert_v1beta1_NetworkPolicy_To_extensions_NetworkPolicy,
|
Convert_v1beta1_NetworkPolicy_To_extensions_NetworkPolicy,
|
||||||
Convert_extensions_NetworkPolicy_To_v1beta1_NetworkPolicy,
|
Convert_extensions_NetworkPolicy_To_v1beta1_NetworkPolicy,
|
||||||
Convert_v1beta1_NetworkPolicyIngressRule_To_extensions_NetworkPolicyIngressRule,
|
Convert_v1beta1_NetworkPolicyIngressRule_To_extensions_NetworkPolicyIngressRule,
|
||||||
@ -1020,162 +1009,6 @@ func Convert_extensions_IngressTLS_To_v1beta1_IngressTLS(in *extensions.IngressT
|
|||||||
return autoConvert_extensions_IngressTLS_To_v1beta1_IngressTLS(in, out, s)
|
return autoConvert_extensions_IngressTLS_To_v1beta1_IngressTLS(in, out, s)
|
||||||
}
|
}
|
||||||
|
|
||||||
func autoConvert_v1beta1_Job_To_batch_Job(in *Job, out *batch.Job, s conversion.Scope) error {
|
|
||||||
// TODO: Inefficient conversion - can we improve it?
|
|
||||||
if err := s.Convert(&in.ObjectMeta, &out.ObjectMeta, 0); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if err := Convert_v1beta1_JobSpec_To_batch_JobSpec(&in.Spec, &out.Spec, s); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if err := Convert_v1beta1_JobStatus_To_batch_JobStatus(&in.Status, &out.Status, s); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func Convert_v1beta1_Job_To_batch_Job(in *Job, out *batch.Job, s conversion.Scope) error {
|
|
||||||
return autoConvert_v1beta1_Job_To_batch_Job(in, out, s)
|
|
||||||
}
|
|
||||||
|
|
||||||
func autoConvert_batch_Job_To_v1beta1_Job(in *batch.Job, out *Job, s conversion.Scope) error {
|
|
||||||
// TODO: Inefficient conversion - can we improve it?
|
|
||||||
if err := s.Convert(&in.ObjectMeta, &out.ObjectMeta, 0); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if err := Convert_batch_JobSpec_To_v1beta1_JobSpec(&in.Spec, &out.Spec, s); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if err := Convert_batch_JobStatus_To_v1beta1_JobStatus(&in.Status, &out.Status, s); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func Convert_batch_Job_To_v1beta1_Job(in *batch.Job, out *Job, s conversion.Scope) error {
|
|
||||||
return autoConvert_batch_Job_To_v1beta1_Job(in, out, s)
|
|
||||||
}
|
|
||||||
|
|
||||||
func autoConvert_v1beta1_JobCondition_To_batch_JobCondition(in *JobCondition, out *batch.JobCondition, s conversion.Scope) error {
|
|
||||||
out.Type = batch.JobConditionType(in.Type)
|
|
||||||
out.Status = api.ConditionStatus(in.Status)
|
|
||||||
out.LastProbeTime = in.LastProbeTime
|
|
||||||
out.LastTransitionTime = in.LastTransitionTime
|
|
||||||
out.Reason = in.Reason
|
|
||||||
out.Message = in.Message
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func Convert_v1beta1_JobCondition_To_batch_JobCondition(in *JobCondition, out *batch.JobCondition, s conversion.Scope) error {
|
|
||||||
return autoConvert_v1beta1_JobCondition_To_batch_JobCondition(in, out, s)
|
|
||||||
}
|
|
||||||
|
|
||||||
func autoConvert_batch_JobCondition_To_v1beta1_JobCondition(in *batch.JobCondition, out *JobCondition, s conversion.Scope) error {
|
|
||||||
out.Type = JobConditionType(in.Type)
|
|
||||||
out.Status = api_v1.ConditionStatus(in.Status)
|
|
||||||
out.LastProbeTime = in.LastProbeTime
|
|
||||||
out.LastTransitionTime = in.LastTransitionTime
|
|
||||||
out.Reason = in.Reason
|
|
||||||
out.Message = in.Message
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func Convert_batch_JobCondition_To_v1beta1_JobCondition(in *batch.JobCondition, out *JobCondition, s conversion.Scope) error {
|
|
||||||
return autoConvert_batch_JobCondition_To_v1beta1_JobCondition(in, out, s)
|
|
||||||
}
|
|
||||||
|
|
||||||
func autoConvert_v1beta1_JobList_To_batch_JobList(in *JobList, out *batch.JobList, s conversion.Scope) error {
|
|
||||||
out.ListMeta = in.ListMeta
|
|
||||||
if in.Items != nil {
|
|
||||||
in, out := &in.Items, &out.Items
|
|
||||||
*out = make([]batch.Job, len(*in))
|
|
||||||
for i := range *in {
|
|
||||||
if err := Convert_v1beta1_Job_To_batch_Job(&(*in)[i], &(*out)[i], s); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
out.Items = nil
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func Convert_v1beta1_JobList_To_batch_JobList(in *JobList, out *batch.JobList, s conversion.Scope) error {
|
|
||||||
return autoConvert_v1beta1_JobList_To_batch_JobList(in, out, s)
|
|
||||||
}
|
|
||||||
|
|
||||||
func autoConvert_batch_JobList_To_v1beta1_JobList(in *batch.JobList, out *JobList, s conversion.Scope) error {
|
|
||||||
out.ListMeta = in.ListMeta
|
|
||||||
if in.Items != nil {
|
|
||||||
in, out := &in.Items, &out.Items
|
|
||||||
*out = make([]Job, len(*in))
|
|
||||||
for i := range *in {
|
|
||||||
if err := Convert_batch_Job_To_v1beta1_Job(&(*in)[i], &(*out)[i], s); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
out.Items = nil
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func Convert_batch_JobList_To_v1beta1_JobList(in *batch.JobList, out *JobList, s conversion.Scope) error {
|
|
||||||
return autoConvert_batch_JobList_To_v1beta1_JobList(in, out, s)
|
|
||||||
}
|
|
||||||
|
|
||||||
func autoConvert_v1beta1_JobSpec_To_batch_JobSpec(in *JobSpec, out *batch.JobSpec, s conversion.Scope) error {
|
|
||||||
out.Parallelism = (*int32)(unsafe.Pointer(in.Parallelism))
|
|
||||||
out.Completions = (*int32)(unsafe.Pointer(in.Completions))
|
|
||||||
out.ActiveDeadlineSeconds = (*int64)(unsafe.Pointer(in.ActiveDeadlineSeconds))
|
|
||||||
out.Selector = (*v1.LabelSelector)(unsafe.Pointer(in.Selector))
|
|
||||||
// WARNING: in.AutoSelector requires manual conversion: does not exist in peer-type
|
|
||||||
if err := api_v1.Convert_v1_PodTemplateSpec_To_api_PodTemplateSpec(&in.Template, &out.Template, s); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func autoConvert_batch_JobSpec_To_v1beta1_JobSpec(in *batch.JobSpec, out *JobSpec, s conversion.Scope) error {
|
|
||||||
out.Parallelism = (*int32)(unsafe.Pointer(in.Parallelism))
|
|
||||||
out.Completions = (*int32)(unsafe.Pointer(in.Completions))
|
|
||||||
out.ActiveDeadlineSeconds = (*int64)(unsafe.Pointer(in.ActiveDeadlineSeconds))
|
|
||||||
out.Selector = (*v1.LabelSelector)(unsafe.Pointer(in.Selector))
|
|
||||||
// WARNING: in.ManualSelector requires manual conversion: does not exist in peer-type
|
|
||||||
if err := api_v1.Convert_api_PodTemplateSpec_To_v1_PodTemplateSpec(&in.Template, &out.Template, s); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func autoConvert_v1beta1_JobStatus_To_batch_JobStatus(in *JobStatus, out *batch.JobStatus, s conversion.Scope) error {
|
|
||||||
out.Conditions = *(*[]batch.JobCondition)(unsafe.Pointer(&in.Conditions))
|
|
||||||
out.StartTime = (*v1.Time)(unsafe.Pointer(in.StartTime))
|
|
||||||
out.CompletionTime = (*v1.Time)(unsafe.Pointer(in.CompletionTime))
|
|
||||||
out.Active = in.Active
|
|
||||||
out.Succeeded = in.Succeeded
|
|
||||||
out.Failed = in.Failed
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func Convert_v1beta1_JobStatus_To_batch_JobStatus(in *JobStatus, out *batch.JobStatus, s conversion.Scope) error {
|
|
||||||
return autoConvert_v1beta1_JobStatus_To_batch_JobStatus(in, out, s)
|
|
||||||
}
|
|
||||||
|
|
||||||
func autoConvert_batch_JobStatus_To_v1beta1_JobStatus(in *batch.JobStatus, out *JobStatus, s conversion.Scope) error {
|
|
||||||
out.Conditions = *(*[]JobCondition)(unsafe.Pointer(&in.Conditions))
|
|
||||||
out.StartTime = (*v1.Time)(unsafe.Pointer(in.StartTime))
|
|
||||||
out.CompletionTime = (*v1.Time)(unsafe.Pointer(in.CompletionTime))
|
|
||||||
out.Active = in.Active
|
|
||||||
out.Succeeded = in.Succeeded
|
|
||||||
out.Failed = in.Failed
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func Convert_batch_JobStatus_To_v1beta1_JobStatus(in *batch.JobStatus, out *JobStatus, s conversion.Scope) error {
|
|
||||||
return autoConvert_batch_JobStatus_To_v1beta1_JobStatus(in, out, s)
|
|
||||||
}
|
|
||||||
|
|
||||||
func autoConvert_v1beta1_NetworkPolicy_To_extensions_NetworkPolicy(in *NetworkPolicy, out *extensions.NetworkPolicy, s conversion.Scope) error {
|
func autoConvert_v1beta1_NetworkPolicy_To_extensions_NetworkPolicy(in *NetworkPolicy, out *extensions.NetworkPolicy, s conversion.Scope) error {
|
||||||
// TODO: Inefficient conversion - can we improve it?
|
// TODO: Inefficient conversion - can we improve it?
|
||||||
if err := s.Convert(&in.ObjectMeta, &out.ObjectMeta, 0); err != nil {
|
if err := s.Convert(&in.ObjectMeta, &out.ObjectMeta, 0); err != nil {
|
||||||
|
@ -71,11 +71,6 @@ func RegisterDeepCopies(scheme *runtime.Scheme) error {
|
|||||||
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_IngressSpec, InType: reflect.TypeOf(&IngressSpec{})},
|
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_IngressSpec, InType: reflect.TypeOf(&IngressSpec{})},
|
||||||
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_IngressStatus, InType: reflect.TypeOf(&IngressStatus{})},
|
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_IngressStatus, InType: reflect.TypeOf(&IngressStatus{})},
|
||||||
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_IngressTLS, InType: reflect.TypeOf(&IngressTLS{})},
|
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_IngressTLS, InType: reflect.TypeOf(&IngressTLS{})},
|
||||||
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_Job, InType: reflect.TypeOf(&Job{})},
|
|
||||||
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_JobCondition, InType: reflect.TypeOf(&JobCondition{})},
|
|
||||||
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_JobList, InType: reflect.TypeOf(&JobList{})},
|
|
||||||
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_JobSpec, InType: reflect.TypeOf(&JobSpec{})},
|
|
||||||
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_JobStatus, InType: reflect.TypeOf(&JobStatus{})},
|
|
||||||
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_NetworkPolicy, InType: reflect.TypeOf(&NetworkPolicy{})},
|
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_NetworkPolicy, InType: reflect.TypeOf(&NetworkPolicy{})},
|
||||||
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_NetworkPolicyIngressRule, InType: reflect.TypeOf(&NetworkPolicyIngressRule{})},
|
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_NetworkPolicyIngressRule, InType: reflect.TypeOf(&NetworkPolicyIngressRule{})},
|
||||||
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_NetworkPolicyList, InType: reflect.TypeOf(&NetworkPolicyList{})},
|
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_NetworkPolicyList, InType: reflect.TypeOf(&NetworkPolicyList{})},
|
||||||
@ -721,143 +716,6 @@ func DeepCopy_v1beta1_IngressTLS(in interface{}, out interface{}, c *conversion.
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func DeepCopy_v1beta1_Job(in interface{}, out interface{}, c *conversion.Cloner) error {
|
|
||||||
{
|
|
||||||
in := in.(*Job)
|
|
||||||
out := out.(*Job)
|
|
||||||
out.TypeMeta = in.TypeMeta
|
|
||||||
if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if err := DeepCopy_v1beta1_JobSpec(&in.Spec, &out.Spec, c); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if err := DeepCopy_v1beta1_JobStatus(&in.Status, &out.Status, c); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func DeepCopy_v1beta1_JobCondition(in interface{}, out interface{}, c *conversion.Cloner) error {
|
|
||||||
{
|
|
||||||
in := in.(*JobCondition)
|
|
||||||
out := out.(*JobCondition)
|
|
||||||
out.Type = in.Type
|
|
||||||
out.Status = in.Status
|
|
||||||
out.LastProbeTime = in.LastProbeTime.DeepCopy()
|
|
||||||
out.LastTransitionTime = in.LastTransitionTime.DeepCopy()
|
|
||||||
out.Reason = in.Reason
|
|
||||||
out.Message = in.Message
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func DeepCopy_v1beta1_JobList(in interface{}, out interface{}, c *conversion.Cloner) error {
|
|
||||||
{
|
|
||||||
in := in.(*JobList)
|
|
||||||
out := out.(*JobList)
|
|
||||||
out.TypeMeta = in.TypeMeta
|
|
||||||
out.ListMeta = in.ListMeta
|
|
||||||
if in.Items != nil {
|
|
||||||
in, out := &in.Items, &out.Items
|
|
||||||
*out = make([]Job, len(*in))
|
|
||||||
for i := range *in {
|
|
||||||
if err := DeepCopy_v1beta1_Job(&(*in)[i], &(*out)[i], c); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
out.Items = nil
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func DeepCopy_v1beta1_JobSpec(in interface{}, out interface{}, c *conversion.Cloner) error {
|
|
||||||
{
|
|
||||||
in := in.(*JobSpec)
|
|
||||||
out := out.(*JobSpec)
|
|
||||||
if in.Parallelism != nil {
|
|
||||||
in, out := &in.Parallelism, &out.Parallelism
|
|
||||||
*out = new(int32)
|
|
||||||
**out = **in
|
|
||||||
} else {
|
|
||||||
out.Parallelism = nil
|
|
||||||
}
|
|
||||||
if in.Completions != nil {
|
|
||||||
in, out := &in.Completions, &out.Completions
|
|
||||||
*out = new(int32)
|
|
||||||
**out = **in
|
|
||||||
} else {
|
|
||||||
out.Completions = nil
|
|
||||||
}
|
|
||||||
if in.ActiveDeadlineSeconds != nil {
|
|
||||||
in, out := &in.ActiveDeadlineSeconds, &out.ActiveDeadlineSeconds
|
|
||||||
*out = new(int64)
|
|
||||||
**out = **in
|
|
||||||
} else {
|
|
||||||
out.ActiveDeadlineSeconds = nil
|
|
||||||
}
|
|
||||||
if in.Selector != nil {
|
|
||||||
in, out := &in.Selector, &out.Selector
|
|
||||||
*out = new(meta_v1.LabelSelector)
|
|
||||||
if err := meta_v1.DeepCopy_v1_LabelSelector(*in, *out, c); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
out.Selector = nil
|
|
||||||
}
|
|
||||||
if in.AutoSelector != nil {
|
|
||||||
in, out := &in.AutoSelector, &out.AutoSelector
|
|
||||||
*out = new(bool)
|
|
||||||
**out = **in
|
|
||||||
} else {
|
|
||||||
out.AutoSelector = nil
|
|
||||||
}
|
|
||||||
if err := v1.DeepCopy_v1_PodTemplateSpec(&in.Template, &out.Template, c); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func DeepCopy_v1beta1_JobStatus(in interface{}, out interface{}, c *conversion.Cloner) error {
|
|
||||||
{
|
|
||||||
in := in.(*JobStatus)
|
|
||||||
out := out.(*JobStatus)
|
|
||||||
if in.Conditions != nil {
|
|
||||||
in, out := &in.Conditions, &out.Conditions
|
|
||||||
*out = make([]JobCondition, len(*in))
|
|
||||||
for i := range *in {
|
|
||||||
if err := DeepCopy_v1beta1_JobCondition(&(*in)[i], &(*out)[i], c); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
out.Conditions = nil
|
|
||||||
}
|
|
||||||
if in.StartTime != nil {
|
|
||||||
in, out := &in.StartTime, &out.StartTime
|
|
||||||
*out = new(meta_v1.Time)
|
|
||||||
**out = (*in).DeepCopy()
|
|
||||||
} else {
|
|
||||||
out.StartTime = nil
|
|
||||||
}
|
|
||||||
if in.CompletionTime != nil {
|
|
||||||
in, out := &in.CompletionTime, &out.CompletionTime
|
|
||||||
*out = new(meta_v1.Time)
|
|
||||||
**out = (*in).DeepCopy()
|
|
||||||
} else {
|
|
||||||
out.CompletionTime = nil
|
|
||||||
}
|
|
||||||
out.Active = in.Active
|
|
||||||
out.Succeeded = in.Succeeded
|
|
||||||
out.Failed = in.Failed
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func DeepCopy_v1beta1_NetworkPolicy(in interface{}, out interface{}, c *conversion.Cloner) error {
|
func DeepCopy_v1beta1_NetworkPolicy(in interface{}, out interface{}, c *conversion.Cloner) error {
|
||||||
{
|
{
|
||||||
in := in.(*NetworkPolicy)
|
in := in.(*NetworkPolicy)
|
||||||
|
@ -37,8 +37,6 @@ func RegisterDefaults(scheme *runtime.Scheme) error {
|
|||||||
scheme.AddTypeDefaultingFunc(&HorizontalPodAutoscalerList{}, func(obj interface{}) {
|
scheme.AddTypeDefaultingFunc(&HorizontalPodAutoscalerList{}, func(obj interface{}) {
|
||||||
SetObjectDefaults_HorizontalPodAutoscalerList(obj.(*HorizontalPodAutoscalerList))
|
SetObjectDefaults_HorizontalPodAutoscalerList(obj.(*HorizontalPodAutoscalerList))
|
||||||
})
|
})
|
||||||
scheme.AddTypeDefaultingFunc(&Job{}, func(obj interface{}) { SetObjectDefaults_Job(obj.(*Job)) })
|
|
||||||
scheme.AddTypeDefaultingFunc(&JobList{}, func(obj interface{}) { SetObjectDefaults_JobList(obj.(*JobList)) })
|
|
||||||
scheme.AddTypeDefaultingFunc(&NetworkPolicy{}, func(obj interface{}) { SetObjectDefaults_NetworkPolicy(obj.(*NetworkPolicy)) })
|
scheme.AddTypeDefaultingFunc(&NetworkPolicy{}, func(obj interface{}) { SetObjectDefaults_NetworkPolicy(obj.(*NetworkPolicy)) })
|
||||||
scheme.AddTypeDefaultingFunc(&NetworkPolicyList{}, func(obj interface{}) { SetObjectDefaults_NetworkPolicyList(obj.(*NetworkPolicyList)) })
|
scheme.AddTypeDefaultingFunc(&NetworkPolicyList{}, func(obj interface{}) { SetObjectDefaults_NetworkPolicyList(obj.(*NetworkPolicyList)) })
|
||||||
scheme.AddTypeDefaultingFunc(&ReplicaSet{}, func(obj interface{}) { SetObjectDefaults_ReplicaSet(obj.(*ReplicaSet)) })
|
scheme.AddTypeDefaultingFunc(&ReplicaSet{}, func(obj interface{}) { SetObjectDefaults_ReplicaSet(obj.(*ReplicaSet)) })
|
||||||
@ -305,130 +303,6 @@ func SetObjectDefaults_HorizontalPodAutoscalerList(in *HorizontalPodAutoscalerLi
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func SetObjectDefaults_Job(in *Job) {
|
|
||||||
SetDefaults_Job(in)
|
|
||||||
v1.SetDefaults_PodSpec(&in.Spec.Template.Spec)
|
|
||||||
for i := range in.Spec.Template.Spec.Volumes {
|
|
||||||
a := &in.Spec.Template.Spec.Volumes[i]
|
|
||||||
v1.SetDefaults_Volume(a)
|
|
||||||
if a.VolumeSource.Secret != nil {
|
|
||||||
v1.SetDefaults_SecretVolumeSource(a.VolumeSource.Secret)
|
|
||||||
}
|
|
||||||
if a.VolumeSource.ISCSI != nil {
|
|
||||||
v1.SetDefaults_ISCSIVolumeSource(a.VolumeSource.ISCSI)
|
|
||||||
}
|
|
||||||
if a.VolumeSource.RBD != nil {
|
|
||||||
v1.SetDefaults_RBDVolumeSource(a.VolumeSource.RBD)
|
|
||||||
}
|
|
||||||
if a.VolumeSource.DownwardAPI != nil {
|
|
||||||
v1.SetDefaults_DownwardAPIVolumeSource(a.VolumeSource.DownwardAPI)
|
|
||||||
for j := range a.VolumeSource.DownwardAPI.Items {
|
|
||||||
b := &a.VolumeSource.DownwardAPI.Items[j]
|
|
||||||
if b.FieldRef != nil {
|
|
||||||
v1.SetDefaults_ObjectFieldSelector(b.FieldRef)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if a.VolumeSource.ConfigMap != nil {
|
|
||||||
v1.SetDefaults_ConfigMapVolumeSource(a.VolumeSource.ConfigMap)
|
|
||||||
}
|
|
||||||
if a.VolumeSource.AzureDisk != nil {
|
|
||||||
v1.SetDefaults_AzureDiskVolumeSource(a.VolumeSource.AzureDisk)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
for i := range in.Spec.Template.Spec.InitContainers {
|
|
||||||
a := &in.Spec.Template.Spec.InitContainers[i]
|
|
||||||
v1.SetDefaults_Container(a)
|
|
||||||
for j := range a.Ports {
|
|
||||||
b := &a.Ports[j]
|
|
||||||
v1.SetDefaults_ContainerPort(b)
|
|
||||||
}
|
|
||||||
for j := range a.Env {
|
|
||||||
b := &a.Env[j]
|
|
||||||
if b.ValueFrom != nil {
|
|
||||||
if b.ValueFrom.FieldRef != nil {
|
|
||||||
v1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
v1.SetDefaults_ResourceList(&a.Resources.Limits)
|
|
||||||
v1.SetDefaults_ResourceList(&a.Resources.Requests)
|
|
||||||
if a.LivenessProbe != nil {
|
|
||||||
v1.SetDefaults_Probe(a.LivenessProbe)
|
|
||||||
if a.LivenessProbe.Handler.HTTPGet != nil {
|
|
||||||
v1.SetDefaults_HTTPGetAction(a.LivenessProbe.Handler.HTTPGet)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if a.ReadinessProbe != nil {
|
|
||||||
v1.SetDefaults_Probe(a.ReadinessProbe)
|
|
||||||
if a.ReadinessProbe.Handler.HTTPGet != nil {
|
|
||||||
v1.SetDefaults_HTTPGetAction(a.ReadinessProbe.Handler.HTTPGet)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if a.Lifecycle != nil {
|
|
||||||
if a.Lifecycle.PostStart != nil {
|
|
||||||
if a.Lifecycle.PostStart.HTTPGet != nil {
|
|
||||||
v1.SetDefaults_HTTPGetAction(a.Lifecycle.PostStart.HTTPGet)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if a.Lifecycle.PreStop != nil {
|
|
||||||
if a.Lifecycle.PreStop.HTTPGet != nil {
|
|
||||||
v1.SetDefaults_HTTPGetAction(a.Lifecycle.PreStop.HTTPGet)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
for i := range in.Spec.Template.Spec.Containers {
|
|
||||||
a := &in.Spec.Template.Spec.Containers[i]
|
|
||||||
v1.SetDefaults_Container(a)
|
|
||||||
for j := range a.Ports {
|
|
||||||
b := &a.Ports[j]
|
|
||||||
v1.SetDefaults_ContainerPort(b)
|
|
||||||
}
|
|
||||||
for j := range a.Env {
|
|
||||||
b := &a.Env[j]
|
|
||||||
if b.ValueFrom != nil {
|
|
||||||
if b.ValueFrom.FieldRef != nil {
|
|
||||||
v1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
v1.SetDefaults_ResourceList(&a.Resources.Limits)
|
|
||||||
v1.SetDefaults_ResourceList(&a.Resources.Requests)
|
|
||||||
if a.LivenessProbe != nil {
|
|
||||||
v1.SetDefaults_Probe(a.LivenessProbe)
|
|
||||||
if a.LivenessProbe.Handler.HTTPGet != nil {
|
|
||||||
v1.SetDefaults_HTTPGetAction(a.LivenessProbe.Handler.HTTPGet)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if a.ReadinessProbe != nil {
|
|
||||||
v1.SetDefaults_Probe(a.ReadinessProbe)
|
|
||||||
if a.ReadinessProbe.Handler.HTTPGet != nil {
|
|
||||||
v1.SetDefaults_HTTPGetAction(a.ReadinessProbe.Handler.HTTPGet)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if a.Lifecycle != nil {
|
|
||||||
if a.Lifecycle.PostStart != nil {
|
|
||||||
if a.Lifecycle.PostStart.HTTPGet != nil {
|
|
||||||
v1.SetDefaults_HTTPGetAction(a.Lifecycle.PostStart.HTTPGet)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if a.Lifecycle.PreStop != nil {
|
|
||||||
if a.Lifecycle.PreStop.HTTPGet != nil {
|
|
||||||
v1.SetDefaults_HTTPGetAction(a.Lifecycle.PreStop.HTTPGet)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func SetObjectDefaults_JobList(in *JobList) {
|
|
||||||
for i := range in.Items {
|
|
||||||
a := &in.Items[i]
|
|
||||||
SetObjectDefaults_Job(a)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func SetObjectDefaults_NetworkPolicy(in *NetworkPolicy) {
|
func SetObjectDefaults_NetworkPolicy(in *NetworkPolicy) {
|
||||||
SetDefaults_NetworkPolicy(in)
|
SetDefaults_NetworkPolicy(in)
|
||||||
}
|
}
|
||||||
|
@ -47,7 +47,7 @@ go_test(
|
|||||||
deps = [
|
deps = [
|
||||||
"//pkg/api:go_default_library",
|
"//pkg/api:go_default_library",
|
||||||
"//pkg/apis/authentication:go_default_library",
|
"//pkg/apis/authentication:go_default_library",
|
||||||
"//pkg/apis/extensions:go_default_library",
|
"//pkg/apis/batch:go_default_library",
|
||||||
"//pkg/apiserver/request:go_default_library",
|
"//pkg/apiserver/request:go_default_library",
|
||||||
"//pkg/auth/authorizer:go_default_library",
|
"//pkg/auth/authorizer:go_default_library",
|
||||||
"//pkg/auth/user:go_default_library",
|
"//pkg/auth/user:go_default_library",
|
||||||
|
@ -299,102 +299,102 @@ func NewForConfig(c *restclient.Config) (*Clientset, error) {
|
|||||||
if configShallowCopy.RateLimiter == nil && configShallowCopy.QPS > 0 {
|
if configShallowCopy.RateLimiter == nil && configShallowCopy.QPS > 0 {
|
||||||
configShallowCopy.RateLimiter = flowcontrol.NewTokenBucketRateLimiter(configShallowCopy.QPS, configShallowCopy.Burst)
|
configShallowCopy.RateLimiter = flowcontrol.NewTokenBucketRateLimiter(configShallowCopy.QPS, configShallowCopy.Burst)
|
||||||
}
|
}
|
||||||
var clientset Clientset
|
var cs Clientset
|
||||||
var err error
|
var err error
|
||||||
clientset.CoreV1Client, err = v1core.NewForConfig(&configShallowCopy)
|
cs.CoreV1Client, err = v1core.NewForConfig(&configShallowCopy)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
clientset.AppsV1beta1Client, err = v1beta1apps.NewForConfig(&configShallowCopy)
|
cs.AppsV1beta1Client, err = v1beta1apps.NewForConfig(&configShallowCopy)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
clientset.AuthenticationV1beta1Client, err = v1beta1authentication.NewForConfig(&configShallowCopy)
|
cs.AuthenticationV1beta1Client, err = v1beta1authentication.NewForConfig(&configShallowCopy)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
clientset.AuthorizationV1beta1Client, err = v1beta1authorization.NewForConfig(&configShallowCopy)
|
cs.AuthorizationV1beta1Client, err = v1beta1authorization.NewForConfig(&configShallowCopy)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
clientset.AutoscalingV1Client, err = v1autoscaling.NewForConfig(&configShallowCopy)
|
cs.AutoscalingV1Client, err = v1autoscaling.NewForConfig(&configShallowCopy)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
clientset.BatchV1Client, err = v1batch.NewForConfig(&configShallowCopy)
|
cs.BatchV1Client, err = v1batch.NewForConfig(&configShallowCopy)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
clientset.BatchV2alpha1Client, err = v2alpha1batch.NewForConfig(&configShallowCopy)
|
cs.BatchV2alpha1Client, err = v2alpha1batch.NewForConfig(&configShallowCopy)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
clientset.CertificatesV1alpha1Client, err = v1alpha1certificates.NewForConfig(&configShallowCopy)
|
cs.CertificatesV1alpha1Client, err = v1alpha1certificates.NewForConfig(&configShallowCopy)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
clientset.ExtensionsV1beta1Client, err = v1beta1extensions.NewForConfig(&configShallowCopy)
|
cs.ExtensionsV1beta1Client, err = v1beta1extensions.NewForConfig(&configShallowCopy)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
clientset.PolicyV1beta1Client, err = v1beta1policy.NewForConfig(&configShallowCopy)
|
cs.PolicyV1beta1Client, err = v1beta1policy.NewForConfig(&configShallowCopy)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
clientset.RbacV1alpha1Client, err = v1alpha1rbac.NewForConfig(&configShallowCopy)
|
cs.RbacV1alpha1Client, err = v1alpha1rbac.NewForConfig(&configShallowCopy)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
clientset.StorageV1beta1Client, err = v1beta1storage.NewForConfig(&configShallowCopy)
|
cs.StorageV1beta1Client, err = v1beta1storage.NewForConfig(&configShallowCopy)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
clientset.DiscoveryClient, err = discovery.NewDiscoveryClientForConfig(&configShallowCopy)
|
cs.DiscoveryClient, err = discovery.NewDiscoveryClientForConfig(&configShallowCopy)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
glog.Errorf("failed to create the DiscoveryClient: %v", err)
|
glog.Errorf("failed to create the DiscoveryClient: %v", err)
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
return &clientset, nil
|
return &cs, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewForConfigOrDie creates a new Clientset for the given config and
|
// NewForConfigOrDie creates a new Clientset for the given config and
|
||||||
// panics if there is an error in the config.
|
// panics if there is an error in the config.
|
||||||
func NewForConfigOrDie(c *restclient.Config) *Clientset {
|
func NewForConfigOrDie(c *restclient.Config) *Clientset {
|
||||||
var clientset Clientset
|
var cs Clientset
|
||||||
clientset.CoreV1Client = v1core.NewForConfigOrDie(c)
|
cs.CoreV1Client = v1core.NewForConfigOrDie(c)
|
||||||
clientset.AppsV1beta1Client = v1beta1apps.NewForConfigOrDie(c)
|
cs.AppsV1beta1Client = v1beta1apps.NewForConfigOrDie(c)
|
||||||
clientset.AuthenticationV1beta1Client = v1beta1authentication.NewForConfigOrDie(c)
|
cs.AuthenticationV1beta1Client = v1beta1authentication.NewForConfigOrDie(c)
|
||||||
clientset.AuthorizationV1beta1Client = v1beta1authorization.NewForConfigOrDie(c)
|
cs.AuthorizationV1beta1Client = v1beta1authorization.NewForConfigOrDie(c)
|
||||||
clientset.AutoscalingV1Client = v1autoscaling.NewForConfigOrDie(c)
|
cs.AutoscalingV1Client = v1autoscaling.NewForConfigOrDie(c)
|
||||||
clientset.BatchV1Client = v1batch.NewForConfigOrDie(c)
|
cs.BatchV1Client = v1batch.NewForConfigOrDie(c)
|
||||||
clientset.BatchV2alpha1Client = v2alpha1batch.NewForConfigOrDie(c)
|
cs.BatchV2alpha1Client = v2alpha1batch.NewForConfigOrDie(c)
|
||||||
clientset.CertificatesV1alpha1Client = v1alpha1certificates.NewForConfigOrDie(c)
|
cs.CertificatesV1alpha1Client = v1alpha1certificates.NewForConfigOrDie(c)
|
||||||
clientset.ExtensionsV1beta1Client = v1beta1extensions.NewForConfigOrDie(c)
|
cs.ExtensionsV1beta1Client = v1beta1extensions.NewForConfigOrDie(c)
|
||||||
clientset.PolicyV1beta1Client = v1beta1policy.NewForConfigOrDie(c)
|
cs.PolicyV1beta1Client = v1beta1policy.NewForConfigOrDie(c)
|
||||||
clientset.RbacV1alpha1Client = v1alpha1rbac.NewForConfigOrDie(c)
|
cs.RbacV1alpha1Client = v1alpha1rbac.NewForConfigOrDie(c)
|
||||||
clientset.StorageV1beta1Client = v1beta1storage.NewForConfigOrDie(c)
|
cs.StorageV1beta1Client = v1beta1storage.NewForConfigOrDie(c)
|
||||||
|
|
||||||
clientset.DiscoveryClient = discovery.NewDiscoveryClientForConfigOrDie(c)
|
cs.DiscoveryClient = discovery.NewDiscoveryClientForConfigOrDie(c)
|
||||||
return &clientset
|
return &cs
|
||||||
}
|
}
|
||||||
|
|
||||||
// New creates a new Clientset for the given RESTClient.
|
// New creates a new Clientset for the given RESTClient.
|
||||||
func New(c restclient.Interface) *Clientset {
|
func New(c restclient.Interface) *Clientset {
|
||||||
var clientset Clientset
|
var cs Clientset
|
||||||
clientset.CoreV1Client = v1core.New(c)
|
cs.CoreV1Client = v1core.New(c)
|
||||||
clientset.AppsV1beta1Client = v1beta1apps.New(c)
|
cs.AppsV1beta1Client = v1beta1apps.New(c)
|
||||||
clientset.AuthenticationV1beta1Client = v1beta1authentication.New(c)
|
cs.AuthenticationV1beta1Client = v1beta1authentication.New(c)
|
||||||
clientset.AuthorizationV1beta1Client = v1beta1authorization.New(c)
|
cs.AuthorizationV1beta1Client = v1beta1authorization.New(c)
|
||||||
clientset.AutoscalingV1Client = v1autoscaling.New(c)
|
cs.AutoscalingV1Client = v1autoscaling.New(c)
|
||||||
clientset.BatchV1Client = v1batch.New(c)
|
cs.BatchV1Client = v1batch.New(c)
|
||||||
clientset.BatchV2alpha1Client = v2alpha1batch.New(c)
|
cs.BatchV2alpha1Client = v2alpha1batch.New(c)
|
||||||
clientset.CertificatesV1alpha1Client = v1alpha1certificates.New(c)
|
cs.CertificatesV1alpha1Client = v1alpha1certificates.New(c)
|
||||||
clientset.ExtensionsV1beta1Client = v1beta1extensions.New(c)
|
cs.ExtensionsV1beta1Client = v1beta1extensions.New(c)
|
||||||
clientset.PolicyV1beta1Client = v1beta1policy.New(c)
|
cs.PolicyV1beta1Client = v1beta1policy.New(c)
|
||||||
clientset.RbacV1alpha1Client = v1alpha1rbac.New(c)
|
cs.RbacV1alpha1Client = v1alpha1rbac.New(c)
|
||||||
clientset.StorageV1beta1Client = v1beta1storage.New(c)
|
cs.StorageV1beta1Client = v1beta1storage.New(c)
|
||||||
|
|
||||||
clientset.DiscoveryClient = discovery.NewDiscoveryClient(c)
|
cs.DiscoveryClient = discovery.NewDiscoveryClient(c)
|
||||||
return &clientset
|
return &cs
|
||||||
}
|
}
|
||||||
|
@ -17,7 +17,6 @@ go_library(
|
|||||||
"extensions_client.go",
|
"extensions_client.go",
|
||||||
"generated_expansion.go",
|
"generated_expansion.go",
|
||||||
"ingress.go",
|
"ingress.go",
|
||||||
"job.go",
|
|
||||||
"podsecuritypolicy.go",
|
"podsecuritypolicy.go",
|
||||||
"replicaset.go",
|
"replicaset.go",
|
||||||
"scale.go",
|
"scale.go",
|
||||||
|
@ -30,7 +30,6 @@ type ExtensionsV1beta1Interface interface {
|
|||||||
DaemonSetsGetter
|
DaemonSetsGetter
|
||||||
DeploymentsGetter
|
DeploymentsGetter
|
||||||
IngressesGetter
|
IngressesGetter
|
||||||
JobsGetter
|
|
||||||
PodSecurityPoliciesGetter
|
PodSecurityPoliciesGetter
|
||||||
ReplicaSetsGetter
|
ReplicaSetsGetter
|
||||||
ScalesGetter
|
ScalesGetter
|
||||||
@ -54,10 +53,6 @@ func (c *ExtensionsV1beta1Client) Ingresses(namespace string) IngressInterface {
|
|||||||
return newIngresses(c, namespace)
|
return newIngresses(c, namespace)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *ExtensionsV1beta1Client) Jobs(namespace string) JobInterface {
|
|
||||||
return newJobs(c, namespace)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (c *ExtensionsV1beta1Client) PodSecurityPolicies() PodSecurityPolicyInterface {
|
func (c *ExtensionsV1beta1Client) PodSecurityPolicies() PodSecurityPolicyInterface {
|
||||||
return newPodSecurityPolicies(c)
|
return newPodSecurityPolicies(c)
|
||||||
}
|
}
|
||||||
|
@ -16,7 +16,6 @@ go_library(
|
|||||||
"fake_deployment_expansion.go",
|
"fake_deployment_expansion.go",
|
||||||
"fake_extensions_client.go",
|
"fake_extensions_client.go",
|
||||||
"fake_ingress.go",
|
"fake_ingress.go",
|
||||||
"fake_job.go",
|
|
||||||
"fake_podsecuritypolicy.go",
|
"fake_podsecuritypolicy.go",
|
||||||
"fake_replicaset.go",
|
"fake_replicaset.go",
|
||||||
"fake_scale.go",
|
"fake_scale.go",
|
||||||
|
@ -38,10 +38,6 @@ func (c *FakeExtensionsV1beta1) Ingresses(namespace string) v1beta1.IngressInter
|
|||||||
return &FakeIngresses{c, namespace}
|
return &FakeIngresses{c, namespace}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *FakeExtensionsV1beta1) Jobs(namespace string) v1beta1.JobInterface {
|
|
||||||
return &FakeJobs{c, namespace}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (c *FakeExtensionsV1beta1) PodSecurityPolicies() v1beta1.PodSecurityPolicyInterface {
|
func (c *FakeExtensionsV1beta1) PodSecurityPolicies() v1beta1.PodSecurityPolicyInterface {
|
||||||
return &FakePodSecurityPolicies{c}
|
return &FakePodSecurityPolicies{c}
|
||||||
}
|
}
|
||||||
|
@ -20,8 +20,6 @@ type DaemonSetExpansion interface{}
|
|||||||
|
|
||||||
type IngressExpansion interface{}
|
type IngressExpansion interface{}
|
||||||
|
|
||||||
type JobExpansion interface{}
|
|
||||||
|
|
||||||
type PodSecurityPolicyExpansion interface{}
|
type PodSecurityPolicyExpansion interface{}
|
||||||
|
|
||||||
type ReplicaSetExpansion interface{}
|
type ReplicaSetExpansion interface{}
|
||||||
|
@ -176,96 +176,96 @@ func NewForConfig(c *restclient.Config) (*Clientset, error) {
|
|||||||
if configShallowCopy.RateLimiter == nil && configShallowCopy.QPS > 0 {
|
if configShallowCopy.RateLimiter == nil && configShallowCopy.QPS > 0 {
|
||||||
configShallowCopy.RateLimiter = flowcontrol.NewTokenBucketRateLimiter(configShallowCopy.QPS, configShallowCopy.Burst)
|
configShallowCopy.RateLimiter = flowcontrol.NewTokenBucketRateLimiter(configShallowCopy.QPS, configShallowCopy.Burst)
|
||||||
}
|
}
|
||||||
var clientset Clientset
|
var cs Clientset
|
||||||
var err error
|
var err error
|
||||||
clientset.CoreClient, err = internalversioncore.NewForConfig(&configShallowCopy)
|
cs.CoreClient, err = internalversioncore.NewForConfig(&configShallowCopy)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
clientset.AppsClient, err = internalversionapps.NewForConfig(&configShallowCopy)
|
cs.AppsClient, err = internalversionapps.NewForConfig(&configShallowCopy)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
clientset.AuthenticationClient, err = internalversionauthentication.NewForConfig(&configShallowCopy)
|
cs.AuthenticationClient, err = internalversionauthentication.NewForConfig(&configShallowCopy)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
clientset.AuthorizationClient, err = internalversionauthorization.NewForConfig(&configShallowCopy)
|
cs.AuthorizationClient, err = internalversionauthorization.NewForConfig(&configShallowCopy)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
clientset.AutoscalingClient, err = internalversionautoscaling.NewForConfig(&configShallowCopy)
|
cs.AutoscalingClient, err = internalversionautoscaling.NewForConfig(&configShallowCopy)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
clientset.BatchClient, err = internalversionbatch.NewForConfig(&configShallowCopy)
|
cs.BatchClient, err = internalversionbatch.NewForConfig(&configShallowCopy)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
clientset.CertificatesClient, err = internalversioncertificates.NewForConfig(&configShallowCopy)
|
cs.CertificatesClient, err = internalversioncertificates.NewForConfig(&configShallowCopy)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
clientset.ExtensionsClient, err = internalversionextensions.NewForConfig(&configShallowCopy)
|
cs.ExtensionsClient, err = internalversionextensions.NewForConfig(&configShallowCopy)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
clientset.PolicyClient, err = internalversionpolicy.NewForConfig(&configShallowCopy)
|
cs.PolicyClient, err = internalversionpolicy.NewForConfig(&configShallowCopy)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
clientset.RbacClient, err = internalversionrbac.NewForConfig(&configShallowCopy)
|
cs.RbacClient, err = internalversionrbac.NewForConfig(&configShallowCopy)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
clientset.StorageClient, err = internalversionstorage.NewForConfig(&configShallowCopy)
|
cs.StorageClient, err = internalversionstorage.NewForConfig(&configShallowCopy)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
clientset.DiscoveryClient, err = discovery.NewDiscoveryClientForConfig(&configShallowCopy)
|
cs.DiscoveryClient, err = discovery.NewDiscoveryClientForConfig(&configShallowCopy)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
glog.Errorf("failed to create the DiscoveryClient: %v", err)
|
glog.Errorf("failed to create the DiscoveryClient: %v", err)
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
return &clientset, nil
|
return &cs, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewForConfigOrDie creates a new Clientset for the given config and
|
// NewForConfigOrDie creates a new Clientset for the given config and
|
||||||
// panics if there is an error in the config.
|
// panics if there is an error in the config.
|
||||||
func NewForConfigOrDie(c *restclient.Config) *Clientset {
|
func NewForConfigOrDie(c *restclient.Config) *Clientset {
|
||||||
var clientset Clientset
|
var cs Clientset
|
||||||
clientset.CoreClient = internalversioncore.NewForConfigOrDie(c)
|
cs.CoreClient = internalversioncore.NewForConfigOrDie(c)
|
||||||
clientset.AppsClient = internalversionapps.NewForConfigOrDie(c)
|
cs.AppsClient = internalversionapps.NewForConfigOrDie(c)
|
||||||
clientset.AuthenticationClient = internalversionauthentication.NewForConfigOrDie(c)
|
cs.AuthenticationClient = internalversionauthentication.NewForConfigOrDie(c)
|
||||||
clientset.AuthorizationClient = internalversionauthorization.NewForConfigOrDie(c)
|
cs.AuthorizationClient = internalversionauthorization.NewForConfigOrDie(c)
|
||||||
clientset.AutoscalingClient = internalversionautoscaling.NewForConfigOrDie(c)
|
cs.AutoscalingClient = internalversionautoscaling.NewForConfigOrDie(c)
|
||||||
clientset.BatchClient = internalversionbatch.NewForConfigOrDie(c)
|
cs.BatchClient = internalversionbatch.NewForConfigOrDie(c)
|
||||||
clientset.CertificatesClient = internalversioncertificates.NewForConfigOrDie(c)
|
cs.CertificatesClient = internalversioncertificates.NewForConfigOrDie(c)
|
||||||
clientset.ExtensionsClient = internalversionextensions.NewForConfigOrDie(c)
|
cs.ExtensionsClient = internalversionextensions.NewForConfigOrDie(c)
|
||||||
clientset.PolicyClient = internalversionpolicy.NewForConfigOrDie(c)
|
cs.PolicyClient = internalversionpolicy.NewForConfigOrDie(c)
|
||||||
clientset.RbacClient = internalversionrbac.NewForConfigOrDie(c)
|
cs.RbacClient = internalversionrbac.NewForConfigOrDie(c)
|
||||||
clientset.StorageClient = internalversionstorage.NewForConfigOrDie(c)
|
cs.StorageClient = internalversionstorage.NewForConfigOrDie(c)
|
||||||
|
|
||||||
clientset.DiscoveryClient = discovery.NewDiscoveryClientForConfigOrDie(c)
|
cs.DiscoveryClient = discovery.NewDiscoveryClientForConfigOrDie(c)
|
||||||
return &clientset
|
return &cs
|
||||||
}
|
}
|
||||||
|
|
||||||
// New creates a new Clientset for the given RESTClient.
|
// New creates a new Clientset for the given RESTClient.
|
||||||
func New(c restclient.Interface) *Clientset {
|
func New(c restclient.Interface) *Clientset {
|
||||||
var clientset Clientset
|
var cs Clientset
|
||||||
clientset.CoreClient = internalversioncore.New(c)
|
cs.CoreClient = internalversioncore.New(c)
|
||||||
clientset.AppsClient = internalversionapps.New(c)
|
cs.AppsClient = internalversionapps.New(c)
|
||||||
clientset.AuthenticationClient = internalversionauthentication.New(c)
|
cs.AuthenticationClient = internalversionauthentication.New(c)
|
||||||
clientset.AuthorizationClient = internalversionauthorization.New(c)
|
cs.AuthorizationClient = internalversionauthorization.New(c)
|
||||||
clientset.AutoscalingClient = internalversionautoscaling.New(c)
|
cs.AutoscalingClient = internalversionautoscaling.New(c)
|
||||||
clientset.BatchClient = internalversionbatch.New(c)
|
cs.BatchClient = internalversionbatch.New(c)
|
||||||
clientset.CertificatesClient = internalversioncertificates.New(c)
|
cs.CertificatesClient = internalversioncertificates.New(c)
|
||||||
clientset.ExtensionsClient = internalversionextensions.New(c)
|
cs.ExtensionsClient = internalversionextensions.New(c)
|
||||||
clientset.PolicyClient = internalversionpolicy.New(c)
|
cs.PolicyClient = internalversionpolicy.New(c)
|
||||||
clientset.RbacClient = internalversionrbac.New(c)
|
cs.RbacClient = internalversionrbac.New(c)
|
||||||
clientset.StorageClient = internalversionstorage.New(c)
|
cs.StorageClient = internalversionstorage.New(c)
|
||||||
|
|
||||||
clientset.DiscoveryClient = discovery.NewDiscoveryClient(c)
|
cs.DiscoveryClient = discovery.NewDiscoveryClient(c)
|
||||||
return &clientset
|
return &cs
|
||||||
}
|
}
|
||||||
|
@ -14,7 +14,6 @@ go_library(
|
|||||||
"deployment.go",
|
"deployment.go",
|
||||||
"ingress.go",
|
"ingress.go",
|
||||||
"interface.go",
|
"interface.go",
|
||||||
"job.go",
|
|
||||||
"podsecuritypolicy.go",
|
"podsecuritypolicy.go",
|
||||||
"replicaset.go",
|
"replicaset.go",
|
||||||
"thirdpartyresource.go",
|
"thirdpartyresource.go",
|
||||||
|
@ -30,8 +30,6 @@ type Interface interface {
|
|||||||
Deployments() DeploymentInformer
|
Deployments() DeploymentInformer
|
||||||
// Ingresses returns a IngressInformer.
|
// Ingresses returns a IngressInformer.
|
||||||
Ingresses() IngressInformer
|
Ingresses() IngressInformer
|
||||||
// Jobs returns a JobInformer.
|
|
||||||
Jobs() JobInformer
|
|
||||||
// PodSecurityPolicies returns a PodSecurityPolicyInformer.
|
// PodSecurityPolicies returns a PodSecurityPolicyInformer.
|
||||||
PodSecurityPolicies() PodSecurityPolicyInformer
|
PodSecurityPolicies() PodSecurityPolicyInformer
|
||||||
// ReplicaSets returns a ReplicaSetInformer.
|
// ReplicaSets returns a ReplicaSetInformer.
|
||||||
@ -64,11 +62,6 @@ func (v *version) Ingresses() IngressInformer {
|
|||||||
return &ingressInformer{factory: v.SharedInformerFactory}
|
return &ingressInformer{factory: v.SharedInformerFactory}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Jobs returns a JobInformer.
|
|
||||||
func (v *version) Jobs() JobInformer {
|
|
||||||
return &jobInformer{factory: v.SharedInformerFactory}
|
|
||||||
}
|
|
||||||
|
|
||||||
// PodSecurityPolicies returns a PodSecurityPolicyInformer.
|
// PodSecurityPolicies returns a PodSecurityPolicyInformer.
|
||||||
func (v *version) PodSecurityPolicies() PodSecurityPolicyInformer {
|
func (v *version) PodSecurityPolicies() PodSecurityPolicyInformer {
|
||||||
return &podSecurityPolicyInformer{factory: v.SharedInformerFactory}
|
return &podSecurityPolicyInformer{factory: v.SharedInformerFactory}
|
||||||
|
@ -201,7 +201,6 @@ func (f *sharedInformerFactory) ForResource(resource schema.GroupVersionResource
|
|||||||
case extensions_v1beta1.SchemeGroupVersion.WithResource("ingresses"):
|
case extensions_v1beta1.SchemeGroupVersion.WithResource("ingresses"):
|
||||||
return &genericInformer{resource: resource.GroupResource(), informer: f.Extensions().V1beta1().Ingresses().Informer()}, nil
|
return &genericInformer{resource: resource.GroupResource(), informer: f.Extensions().V1beta1().Ingresses().Informer()}, nil
|
||||||
case extensions_v1beta1.SchemeGroupVersion.WithResource("podsecuritypolicies"):
|
case extensions_v1beta1.SchemeGroupVersion.WithResource("podsecuritypolicies"):
|
||||||
|
|
||||||
return &genericInformer{resource: resource.GroupResource(), informer: f.Extensions().V1beta1().PodSecurityPolicies().Informer()}, nil
|
return &genericInformer{resource: resource.GroupResource(), informer: f.Extensions().V1beta1().PodSecurityPolicies().Informer()}, nil
|
||||||
case extensions_v1beta1.SchemeGroupVersion.WithResource("replicasets"):
|
case extensions_v1beta1.SchemeGroupVersion.WithResource("replicasets"):
|
||||||
return &genericInformer{resource: resource.GroupResource(), informer: f.Extensions().V1beta1().ReplicaSets().Informer()}, nil
|
return &genericInformer{resource: resource.GroupResource(), informer: f.Extensions().V1beta1().ReplicaSets().Informer()}, nil
|
||||||
|
@ -14,7 +14,6 @@ go_library(
|
|||||||
"deployment.go",
|
"deployment.go",
|
||||||
"expansion_generated.go",
|
"expansion_generated.go",
|
||||||
"ingress.go",
|
"ingress.go",
|
||||||
"job.go",
|
|
||||||
"podsecuritypolicy.go",
|
"podsecuritypolicy.go",
|
||||||
"replicaset.go",
|
"replicaset.go",
|
||||||
"scale.go",
|
"scale.go",
|
||||||
|
@ -42,14 +42,6 @@ type IngressListerExpansion interface{}
|
|||||||
// IngressNamespaeLister.
|
// IngressNamespaeLister.
|
||||||
type IngressNamespaceListerExpansion interface{}
|
type IngressNamespaceListerExpansion interface{}
|
||||||
|
|
||||||
// JobListerExpansion allows custom methods to be added to
|
|
||||||
// JobLister.
|
|
||||||
type JobListerExpansion interface{}
|
|
||||||
|
|
||||||
// JobNamespaceListerExpansion allows custom methods to be added to
|
|
||||||
// JobNamespaeLister.
|
|
||||||
type JobNamespaceListerExpansion interface{}
|
|
||||||
|
|
||||||
// PodSecurityPolicyListerExpansion allows custom methods to be added to
|
// PodSecurityPolicyListerExpansion allows custom methods to be added to
|
||||||
// PodSecurityPolicyLister.
|
// PodSecurityPolicyLister.
|
||||||
type PodSecurityPolicyListerExpansion interface{}
|
type PodSecurityPolicyListerExpansion interface{}
|
||||||
|
@ -10854,227 +10854,6 @@ var OpenAPIDefinitions *common.OpenAPIDefinitions = &common.OpenAPIDefinitions{
|
|||||||
},
|
},
|
||||||
Dependencies: []string{},
|
Dependencies: []string{},
|
||||||
},
|
},
|
||||||
"v1beta1.Job": {
|
|
||||||
Schema: spec.Schema{
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Description: "Job represents the configuration of a single job. DEPRECATED: extensions/v1beta1.Job is deprecated, use batch/v1.Job instead.",
|
|
||||||
Properties: map[string]spec.Schema{
|
|
||||||
"metadata": {
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Description: "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata",
|
|
||||||
Ref: spec.MustCreateRef("#/definitions/v1.ObjectMeta"),
|
|
||||||
},
|
|
||||||
},
|
|
||||||
"spec": {
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Description: "Spec is a structure defining the expected behavior of a job. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status",
|
|
||||||
Ref: spec.MustCreateRef("#/definitions/v1beta1.JobSpec"),
|
|
||||||
},
|
|
||||||
},
|
|
||||||
"status": {
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Description: "Status is a structure describing current status of a job. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status",
|
|
||||||
Ref: spec.MustCreateRef("#/definitions/v1beta1.JobStatus"),
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
Dependencies: []string{
|
|
||||||
"v1.ObjectMeta", "v1beta1.JobSpec", "v1beta1.JobStatus"},
|
|
||||||
},
|
|
||||||
"v1beta1.JobCondition": {
|
|
||||||
Schema: spec.Schema{
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Description: "JobCondition describes current state of a job.",
|
|
||||||
Properties: map[string]spec.Schema{
|
|
||||||
"type": {
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Description: "Type of job condition, Complete or Failed.",
|
|
||||||
Type: []string{"string"},
|
|
||||||
Format: "",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
"status": {
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Description: "Status of the condition, one of True, False, Unknown.",
|
|
||||||
Type: []string{"string"},
|
|
||||||
Format: "",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
"lastProbeTime": {
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Description: "Last time the condition was checked.",
|
|
||||||
Ref: spec.MustCreateRef("#/definitions/v1.Time"),
|
|
||||||
},
|
|
||||||
},
|
|
||||||
"lastTransitionTime": {
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Description: "Last time the condition transit from one status to another.",
|
|
||||||
Ref: spec.MustCreateRef("#/definitions/v1.Time"),
|
|
||||||
},
|
|
||||||
},
|
|
||||||
"reason": {
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Description: "(brief) reason for the condition's last transition.",
|
|
||||||
Type: []string{"string"},
|
|
||||||
Format: "",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
"message": {
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Description: "Human readable message indicating details about last transition.",
|
|
||||||
Type: []string{"string"},
|
|
||||||
Format: "",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
Required: []string{"type", "status"},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
Dependencies: []string{
|
|
||||||
"v1.Time"},
|
|
||||||
},
|
|
||||||
"v1beta1.JobList": {
|
|
||||||
Schema: spec.Schema{
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Description: "JobList is a collection of jobs. DEPRECATED: extensions/v1beta1.JobList is deprecated, use batch/v1.JobList instead.",
|
|
||||||
Properties: map[string]spec.Schema{
|
|
||||||
"metadata": {
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Description: "Standard list metadata More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata",
|
|
||||||
Ref: spec.MustCreateRef("#/definitions/v1.ListMeta"),
|
|
||||||
},
|
|
||||||
},
|
|
||||||
"items": {
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Description: "Items is the list of Job.",
|
|
||||||
Type: []string{"array"},
|
|
||||||
Items: &spec.SchemaOrArray{
|
|
||||||
Schema: &spec.Schema{
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Ref: spec.MustCreateRef("#/definitions/v1beta1.Job"),
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
Required: []string{"items"},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
Dependencies: []string{
|
|
||||||
"v1.ListMeta", "v1beta1.Job"},
|
|
||||||
},
|
|
||||||
"v1beta1.JobSpec": {
|
|
||||||
Schema: spec.Schema{
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Description: "JobSpec describes how the job execution will look like.",
|
|
||||||
Properties: map[string]spec.Schema{
|
|
||||||
"parallelism": {
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Description: "Parallelism specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: http://kubernetes.io/docs/user-guide/jobs",
|
|
||||||
Type: []string{"integer"},
|
|
||||||
Format: "int32",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
"completions": {
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Description: "Completions specifies the desired number of successfully finished pods the job should be run with. Setting to nil means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: http://kubernetes.io/docs/user-guide/jobs",
|
|
||||||
Type: []string{"integer"},
|
|
||||||
Format: "int32",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
"activeDeadlineSeconds": {
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Description: "Optional duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer",
|
|
||||||
Type: []string{"integer"},
|
|
||||||
Format: "int64",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
"selector": {
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Description: "Selector is a label query over pods that should match the pod count. Normally, the system sets this field for you. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors",
|
|
||||||
Ref: spec.MustCreateRef("#/definitions/v1.LabelSelector"),
|
|
||||||
},
|
|
||||||
},
|
|
||||||
"autoSelector": {
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Description: "AutoSelector controls generation of pod labels and pod selectors. It was not present in the original extensions/v1beta1 Job definition, but exists to allow conversion from batch/v1 Jobs, where it corresponds to, but has the opposite meaning as, ManualSelector. More info: http://releases.k8s.io/HEAD/docs/design/selector-generation.md",
|
|
||||||
Type: []string{"boolean"},
|
|
||||||
Format: "",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
"template": {
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Description: "Template is the object that describes the pod that will be created when executing a job. More info: http://kubernetes.io/docs/user-guide/jobs",
|
|
||||||
Ref: spec.MustCreateRef("#/definitions/v1.PodTemplateSpec"),
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
Required: []string{"template"},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
Dependencies: []string{
|
|
||||||
"v1.LabelSelector", "v1.PodTemplateSpec"},
|
|
||||||
},
|
|
||||||
"v1beta1.JobStatus": {
|
|
||||||
Schema: spec.Schema{
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Description: "JobStatus represents the current state of a Job.",
|
|
||||||
Properties: map[string]spec.Schema{
|
|
||||||
"conditions": {
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Description: "Conditions represent the latest available observations of an object's current state. More info: http://kubernetes.io/docs/user-guide/jobs",
|
|
||||||
Type: []string{"array"},
|
|
||||||
Items: &spec.SchemaOrArray{
|
|
||||||
Schema: &spec.Schema{
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Ref: spec.MustCreateRef("#/definitions/v1beta1.JobCondition"),
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
"startTime": {
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Description: "StartTime represents time when the job was acknowledged by the Job Manager. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC.",
|
|
||||||
Ref: spec.MustCreateRef("#/definitions/v1.Time"),
|
|
||||||
},
|
|
||||||
},
|
|
||||||
"completionTime": {
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Description: "CompletionTime represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC.",
|
|
||||||
Ref: spec.MustCreateRef("#/definitions/v1.Time"),
|
|
||||||
},
|
|
||||||
},
|
|
||||||
"active": {
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Description: "Active is the number of actively running pods.",
|
|
||||||
Type: []string{"integer"},
|
|
||||||
Format: "int32",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
"succeeded": {
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Description: "Succeeded is the number of pods which reached Phase Succeeded.",
|
|
||||||
Type: []string{"integer"},
|
|
||||||
Format: "int32",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
"failed": {
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Description: "Failed is the number of pods which reached Phase Failed.",
|
|
||||||
Type: []string{"integer"},
|
|
||||||
Format: "int32",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
Dependencies: []string{
|
|
||||||
"v1.Time", "v1beta1.JobCondition"},
|
|
||||||
},
|
|
||||||
"v1beta1.LocalSubjectAccessReview": {
|
"v1beta1.LocalSubjectAccessReview": {
|
||||||
Schema: spec.Schema{
|
Schema: spec.Schema{
|
||||||
SchemaProps: spec.SchemaProps{
|
SchemaProps: spec.SchemaProps{
|
||||||
|
@ -64,8 +64,6 @@ go_library(
|
|||||||
"//pkg/apis/apps:go_default_library",
|
"//pkg/apis/apps:go_default_library",
|
||||||
"//pkg/apis/autoscaling:go_default_library",
|
"//pkg/apis/autoscaling:go_default_library",
|
||||||
"//pkg/apis/batch:go_default_library",
|
"//pkg/apis/batch:go_default_library",
|
||||||
"//pkg/apis/batch/v1:go_default_library",
|
|
||||||
"//pkg/apis/batch/v2alpha1:go_default_library",
|
|
||||||
"//pkg/apis/certificates:go_default_library",
|
"//pkg/apis/certificates:go_default_library",
|
||||||
"//pkg/apis/extensions:go_default_library",
|
"//pkg/apis/extensions:go_default_library",
|
||||||
"//pkg/apis/extensions/v1beta1:go_default_library",
|
"//pkg/apis/extensions/v1beta1:go_default_library",
|
||||||
|
@ -32,7 +32,6 @@ go_test(
|
|||||||
deps = [
|
deps = [
|
||||||
"//pkg/api:go_default_library",
|
"//pkg/api:go_default_library",
|
||||||
"//pkg/apis/batch:go_default_library",
|
"//pkg/apis/batch:go_default_library",
|
||||||
"//pkg/apis/extensions:go_default_library",
|
|
||||||
"//pkg/apis/meta/v1:go_default_library",
|
"//pkg/apis/meta/v1:go_default_library",
|
||||||
"//pkg/fields:go_default_library",
|
"//pkg/fields:go_default_library",
|
||||||
"//pkg/labels:go_default_library",
|
"//pkg/labels:go_default_library",
|
||||||
|
@ -14,7 +14,6 @@ go_library(
|
|||||||
"addon_update.go",
|
"addon_update.go",
|
||||||
"apparmor.go",
|
"apparmor.go",
|
||||||
"autoscaling_utils.go",
|
"autoscaling_utils.go",
|
||||||
"batch_v1_jobs.go",
|
|
||||||
"cadvisor.go",
|
"cadvisor.go",
|
||||||
"cluster_logging_es.go",
|
"cluster_logging_es.go",
|
||||||
"cluster_logging_gcl.go",
|
"cluster_logging_gcl.go",
|
||||||
|
Loading…
Reference in New Issue
Block a user