mirror of https://github.com/knative/docs.git
Rebase of 3147 (#3188)
* Update serving.md Saving some work.... * Update serving.md Fixes #3143 * Update serving.md fixed linting issues * turn omer's changes into a patch * re-run api gen Co-authored-by: Omer B <obensaadon@vmware.com>
This commit is contained in:
parent
fc90574a17
commit
3399681e4b
File diff suppressed because it is too large
Load Diff
|
@ -23,8 +23,10 @@ Resource Types:
|
|||
<p>
|
||||
<p>PodAutoscaler is a Knative abstraction that encapsulates the interface by which Knative
|
||||
components instantiate autoscalers. This definition is an abstraction that may be backed
|
||||
by multiple definitions. For more information, see the Knative Pluggability presentation:
|
||||
<a href="https://docs.google.com/presentation/d/10KWynvAJYuOEWy69VBa6bHJVCqIsz1TNdEKosNvcpPY/edit">https://docs.google.com/presentation/d/10KWynvAJYuOEWy69VBa6bHJVCqIsz1TNdEKosNvcpPY/edit</a></p>
|
||||
by multiple definitions.
|
||||
|
||||
For more information on Knative Autoscalers and Pluggability,
|
||||
<a href="https://docs.google.com/presentation/d/10KWynvAJYuOEWy69VBa6bHJVCqIsz1TNdEKosNvcpPY/edit">see the Knative Pluggability presentation.</a></p>
|
||||
</p>
|
||||
<table>
|
||||
<thead>
|
||||
|
@ -252,8 +254,7 @@ MetricStatus
|
|||
<h3 id="autoscaling.internal.knative.dev/v1alpha1.MetricSpec">MetricSpec
|
||||
</h3>
|
||||
<p>
|
||||
(<em>Appears on:</em>
|
||||
<a href="#autoscaling.internal.knative.dev/v1alpha1.Metric">Metric</a>)
|
||||
(<em>Appears on:</em><a href="#autoscaling.internal.knative.dev/v1alpha1.Metric">Metric</a>)
|
||||
</p>
|
||||
<p>
|
||||
<p>MetricSpec contains all values a metric collector needs to operate.</p>
|
||||
|
@ -304,8 +305,7 @@ string
|
|||
<h3 id="autoscaling.internal.knative.dev/v1alpha1.MetricStatus">MetricStatus
|
||||
</h3>
|
||||
<p>
|
||||
(<em>Appears on:</em>
|
||||
<a href="#autoscaling.internal.knative.dev/v1alpha1.Metric">Metric</a>)
|
||||
(<em>Appears on:</em><a href="#autoscaling.internal.knative.dev/v1alpha1.Metric">Metric</a>)
|
||||
</p>
|
||||
<p>
|
||||
<p>MetricStatus reflects the status of metric collection for this specific entity.</p>
|
||||
|
@ -336,8 +336,7 @@ knative.dev/pkg/apis/duck/v1.Status
|
|||
<h3 id="autoscaling.internal.knative.dev/v1alpha1.PodAutoscalerSpec">PodAutoscalerSpec
|
||||
</h3>
|
||||
<p>
|
||||
(<em>Appears on:</em>
|
||||
<a href="#autoscaling.internal.knative.dev/v1alpha1.PodAutoscaler">PodAutoscaler</a>)
|
||||
(<em>Appears on:</em><a href="#autoscaling.internal.knative.dev/v1alpha1.PodAutoscaler">PodAutoscaler</a>)
|
||||
</p>
|
||||
<p>
|
||||
<p>PodAutoscalerSpec holds the desired state of the PodAutoscaler (from the client).</p>
|
||||
|
@ -409,8 +408,7 @@ knative.dev/networking/pkg/apis/networking.ProtocolType
|
|||
<h3 id="autoscaling.internal.knative.dev/v1alpha1.PodAutoscalerStatus">PodAutoscalerStatus
|
||||
</h3>
|
||||
<p>
|
||||
(<em>Appears on:</em>
|
||||
<a href="#autoscaling.internal.knative.dev/v1alpha1.PodAutoscaler">PodAutoscaler</a>)
|
||||
(<em>Appears on:</em><a href="#autoscaling.internal.knative.dev/v1alpha1.PodAutoscaler">PodAutoscaler</a>)
|
||||
</p>
|
||||
<p>
|
||||
<p>PodAutoscalerStatus communicates the observed state of the PodAutoscaler (from the controller).</p>
|
||||
|
@ -582,8 +580,7 @@ PodScalableStatus
|
|||
<h3 id="autoscaling.internal.knative.dev/v1alpha1.PodScalableSpec">PodScalableSpec
|
||||
</h3>
|
||||
<p>
|
||||
(<em>Appears on:</em>
|
||||
<a href="#autoscaling.internal.knative.dev/v1alpha1.PodScalable">PodScalable</a>)
|
||||
(<em>Appears on:</em><a href="#autoscaling.internal.knative.dev/v1alpha1.PodScalable">PodScalable</a>)
|
||||
</p>
|
||||
<p>
|
||||
<p>PodScalableSpec is the specification for the desired state of a
|
||||
|
@ -636,8 +633,7 @@ Kubernetes core/v1.PodTemplateSpec
|
|||
<h3 id="autoscaling.internal.knative.dev/v1alpha1.PodScalableStatus">PodScalableStatus
|
||||
</h3>
|
||||
<p>
|
||||
(<em>Appears on:</em>
|
||||
<a href="#autoscaling.internal.knative.dev/v1alpha1.PodScalable">PodScalable</a>)
|
||||
(<em>Appears on:</em><a href="#autoscaling.internal.knative.dev/v1alpha1.PodScalable">PodScalable</a>)
|
||||
</p>
|
||||
<p>
|
||||
<p>PodScalableStatus is the observed state of a PodScalable (or at
|
||||
|
@ -666,8 +662,7 @@ int32
|
|||
<h3 id="autoscaling.internal.knative.dev/v1alpha1.ReachabilityType">ReachabilityType
|
||||
(<code>string</code> alias)</p></h3>
|
||||
<p>
|
||||
(<em>Appears on:</em>
|
||||
<a href="#autoscaling.internal.knative.dev/v1alpha1.PodAutoscalerSpec">PodAutoscalerSpec</a>)
|
||||
(<em>Appears on:</em><a href="#autoscaling.internal.knative.dev/v1alpha1.PodAutoscalerSpec">PodAutoscalerSpec</a>)
|
||||
</p>
|
||||
<p>
|
||||
<p>ReachabilityType is the enumeration type for the different states of reachability
|
||||
|
@ -707,14 +702,18 @@ Resource Types:
|
|||
</li><li>
|
||||
<a href="#serving.knative.dev/v1.Service">Service</a>
|
||||
</li></ul>
|
||||
<p>For an overview of the different Resource Types in Knative Serving and how they interact with one another, see <a href="https://github.com/knative/serving/blob/master/docs/spec/overview.md#configuration">this explanation of Resource Types</a></p>
|
||||
|
||||
<h3 id="serving.knative.dev/v1.Configuration">Configuration
|
||||
</h3>
|
||||
|
||||
<p>
|
||||
<p>Configuration represents the “floating HEAD” of a linear history of Revisions.
|
||||
Users create new Revisions by updating the Configuration’s spec.
|
||||
The “latest created” revision’s name is available under status, as is the
|
||||
“latest ready” revision’s name.
|
||||
See also: <a href="https://github.com/knative/serving/blob/master/docs/spec/overview.md#configuration">https://github.com/knative/serving/blob/master/docs/spec/overview.md#configuration</a></p>
|
||||
|
||||
For more information on how Configuration interacts with other Resource Types, see the "Configuration" sub-heading <a href="https://github.com/knative/serving/blob/master/docs/spec/overview.md#configuration">in the Resource Types Overview.</a></p>
|
||||
</p>
|
||||
<table>
|
||||
<thead>
|
||||
|
@ -808,7 +807,8 @@ ConfigurationStatus
|
|||
<p>Revision is an immutable snapshot of code and configuration. A revision
|
||||
references a container image. Revisions are created by updates to a
|
||||
Configuration.</p>
|
||||
<p>See also: <a href="https://github.com/knative/serving/blob/master/docs/spec/overview.md#revision">https://github.com/knative/serving/blob/master/docs/spec/overview.md#revision</a></p>
|
||||
|
||||
<p>For more information on how Revision interacts with other Resource Types, see the "Revision" sub-heading <a href="https://github.com/knative/serving/blob/master/docs/spec/overview.md#revision">in the Resource Types Overview.</a></p>
|
||||
</p>
|
||||
<table>
|
||||
<thead>
|
||||
|
@ -934,7 +934,8 @@ Some of the Revisions a Route distributes traffic over may be specified by
|
|||
referencing the Configuration responsible for creating them; in these cases
|
||||
the Route is additionally responsible for monitoring the Configuration for
|
||||
“latest ready revision” changes, and smoothly rolling out latest revisions.
|
||||
See also: <a href="https://github.com/knative/serving/blob/master/docs/spec/overview.md#route">https://github.com/knative/serving/blob/master/docs/spec/overview.md#route</a></p>
|
||||
|
||||
For more information on how Route interacts with other Resource Types, see the "Route" sub-heading <a href="https://github.com/knative/serving/blob/master/docs/spec/overview.md#route">in the Resource Types Overview.</a></p>
|
||||
</p>
|
||||
<table>
|
||||
<thead>
|
||||
|
@ -1037,7 +1038,8 @@ underlying Routes and Configurations (much as a kubernetes Deployment
|
|||
orchestrates ReplicaSets), and its usage is optional but recommended.</p>
|
||||
<p>The Service’s controller will track the statuses of its owned Configuration
|
||||
and Route, reflecting their statuses and conditions as its own.</p>
|
||||
<p>See also: <a href="https://github.com/knative/serving/blob/master/docs/spec/overview.md#service">https://github.com/knative/serving/blob/master/docs/spec/overview.md#service</a></p>
|
||||
|
||||
<p>For more information on how Service interacts with other Resource Types, see the "Service" sub-heading <a href="https://github.com/knative/serving/blob/master/docs/spec/overview.md#service">in the Resource Types Overview.</a></p>
|
||||
</p>
|
||||
<table>
|
||||
<thead>
|
||||
|
@ -1149,9 +1151,7 @@ ServiceStatus
|
|||
<h3 id="serving.knative.dev/v1.ConfigurationSpec">ConfigurationSpec
|
||||
</h3>
|
||||
<p>
|
||||
(<em>Appears on:</em>
|
||||
<a href="#serving.knative.dev/v1.Configuration">Configuration</a>,
|
||||
<a href="#serving.knative.dev/v1.ServiceSpec">ServiceSpec</a>)
|
||||
(<em>Appears on:</em><a href="#serving.knative.dev/v1.Configuration">Configuration</a>, <a href="#serving.knative.dev/v1.ServiceSpec">ServiceSpec</a>)
|
||||
</p>
|
||||
<p>
|
||||
<p>ConfigurationSpec holds the desired state of the Configuration (from the client).</p>
|
||||
|
@ -1183,8 +1183,7 @@ RevisionTemplateSpec
|
|||
<h3 id="serving.knative.dev/v1.ConfigurationStatus">ConfigurationStatus
|
||||
</h3>
|
||||
<p>
|
||||
(<em>Appears on:</em>
|
||||
<a href="#serving.knative.dev/v1.Configuration">Configuration</a>)
|
||||
(<em>Appears on:</em><a href="#serving.knative.dev/v1.Configuration">Configuration</a>)
|
||||
</p>
|
||||
<p>
|
||||
<p>ConfigurationStatus communicates the observed state of the Configuration (from the controller).</p>
|
||||
|
@ -1230,9 +1229,7 @@ ConfigurationStatusFields
|
|||
<h3 id="serving.knative.dev/v1.ConfigurationStatusFields">ConfigurationStatusFields
|
||||
</h3>
|
||||
<p>
|
||||
(<em>Appears on:</em>
|
||||
<a href="#serving.knative.dev/v1.ConfigurationStatus">ConfigurationStatus</a>,
|
||||
<a href="#serving.knative.dev/v1.ServiceStatus">ServiceStatus</a>)
|
||||
(<em>Appears on:</em><a href="#serving.knative.dev/v1.ConfigurationStatus">ConfigurationStatus</a>, <a href="#serving.knative.dev/v1.ServiceStatus">ServiceStatus</a>)
|
||||
</p>
|
||||
<p>
|
||||
<p>ConfigurationStatusFields holds the fields of Configuration’s status that
|
||||
|
@ -1278,8 +1275,7 @@ Configuration. It might not be ready yet, for that use LatestReadyRevisionName.<
|
|||
<h3 id="serving.knative.dev/v1.ContainerStatus">ContainerStatus
|
||||
</h3>
|
||||
<p>
|
||||
(<em>Appears on:</em>
|
||||
<a href="#serving.knative.dev/v1.RevisionStatus">RevisionStatus</a>)
|
||||
(<em>Appears on:</em><a href="#serving.knative.dev/v1.RevisionStatus">RevisionStatus</a>)
|
||||
</p>
|
||||
<p>
|
||||
<p>ContainerStatus holds the information of container name and image digest value</p>
|
||||
|
@ -1317,9 +1313,7 @@ string
|
|||
<h3 id="serving.knative.dev/v1.RevisionSpec">RevisionSpec
|
||||
</h3>
|
||||
<p>
|
||||
(<em>Appears on:</em>
|
||||
<a href="#serving.knative.dev/v1.Revision">Revision</a>,
|
||||
<a href="#serving.knative.dev/v1.RevisionTemplateSpec">RevisionTemplateSpec</a>)
|
||||
(<em>Appears on:</em><a href="#serving.knative.dev/v1.Revision">Revision</a>, <a href="#serving.knative.dev/v1.RevisionTemplateSpec">RevisionTemplateSpec</a>)
|
||||
</p>
|
||||
<p>
|
||||
<p>RevisionSpec holds the desired state of the Revision (from the client).</p>
|
||||
|
@ -1381,8 +1375,7 @@ be provided.</p>
|
|||
<h3 id="serving.knative.dev/v1.RevisionStatus">RevisionStatus
|
||||
</h3>
|
||||
<p>
|
||||
(<em>Appears on:</em>
|
||||
<a href="#serving.knative.dev/v1.Revision">Revision</a>)
|
||||
(<em>Appears on:</em><a href="#serving.knative.dev/v1.Revision">Revision</a>)
|
||||
</p>
|
||||
<p>
|
||||
<p>RevisionStatus communicates the observed state of the Revision (from the controller).</p>
|
||||
|
@ -1452,7 +1445,7 @@ If multiple containers specified then DeprecatedImageDigest holds the digest
|
|||
for serving container.
|
||||
DEPRECATED: Use ContainerStatuses instead.
|
||||
TODO(savitaashture) Remove deprecatedImageDigest.
|
||||
ref <a href="https://kubernetes.io/docs/reference/using-api/deprecation-policy">https://kubernetes.io/docs/reference/using-api/deprecation-policy</a> for deprecation.</p>
|
||||
(see <a href="https://kubernetes.io/docs/reference/using-api/deprecation-policy">Kubernetes Deprecation Policy</a>) for deprecation.</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -1471,7 +1464,7 @@ to their respective digests and their container name.
|
|||
The digests are resolved during the creation of Revision.
|
||||
ContainerStatuses holds the container name and image digests
|
||||
for both serving and non serving containers.
|
||||
ref: <a href="http://bit.ly/image-digests">http://bit.ly/image-digests</a></p>
|
||||
See the <a href="http://bit.ly/image-digests">Proposal for multiple containers in a revision</a> for some context on this field.</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
@ -1479,12 +1472,11 @@ ref: <a href="http://bit.ly/image-digests">http://bit.ly/image-digests</a></p>
|
|||
<h3 id="serving.knative.dev/v1.RevisionTemplateSpec">RevisionTemplateSpec
|
||||
</h3>
|
||||
<p>
|
||||
(<em>Appears on:</em>
|
||||
<a href="#serving.knative.dev/v1.ConfigurationSpec">ConfigurationSpec</a>)
|
||||
(<em>Appears on:</em><a href="#serving.knative.dev/v1.ConfigurationSpec">ConfigurationSpec</a>)
|
||||
</p>
|
||||
<p>
|
||||
<p>RevisionTemplateSpec describes the data a revision should have when created from a template.
|
||||
Based on: <a href="https://github.com/kubernetes/api/blob/e771f807/core/v1/types.go#L3179-L3190">https://github.com/kubernetes/api/blob/e771f807/core/v1/types.go#L3179-L3190</a></p>
|
||||
Based on <a href="https://github.com/kubernetes/api/blob/e771f807/core/v1/types.go#L3179-L3190">the PodTemplateSpec in Kubernetes</a></p>
|
||||
</p>
|
||||
<table>
|
||||
<thead>
|
||||
|
@ -1575,9 +1567,7 @@ be provided.</p>
|
|||
<h3 id="serving.knative.dev/v1.RouteSpec">RouteSpec
|
||||
</h3>
|
||||
<p>
|
||||
(<em>Appears on:</em>
|
||||
<a href="#serving.knative.dev/v1.Route">Route</a>,
|
||||
<a href="#serving.knative.dev/v1.ServiceSpec">ServiceSpec</a>)
|
||||
(<em>Appears on:</em><a href="#serving.knative.dev/v1.Route">Route</a>, <a href="#serving.knative.dev/v1.ServiceSpec">ServiceSpec</a>)
|
||||
</p>
|
||||
<p>
|
||||
<p>RouteSpec holds the desired state of the Route (from the client).</p>
|
||||
|
@ -1610,8 +1600,7 @@ revisions and configurations.</p>
|
|||
<h3 id="serving.knative.dev/v1.RouteStatus">RouteStatus
|
||||
</h3>
|
||||
<p>
|
||||
(<em>Appears on:</em>
|
||||
<a href="#serving.knative.dev/v1.Route">Route</a>)
|
||||
(<em>Appears on:</em><a href="#serving.knative.dev/v1.Route">Route</a>)
|
||||
</p>
|
||||
<p>
|
||||
<p>RouteStatus communicates the observed state of the Route (from the controller).</p>
|
||||
|
@ -1657,9 +1646,7 @@ RouteStatusFields
|
|||
<h3 id="serving.knative.dev/v1.RouteStatusFields">RouteStatusFields
|
||||
</h3>
|
||||
<p>
|
||||
(<em>Appears on:</em>
|
||||
<a href="#serving.knative.dev/v1.RouteStatus">RouteStatus</a>,
|
||||
<a href="#serving.knative.dev/v1.ServiceStatus">ServiceStatus</a>)
|
||||
(<em>Appears on:</em><a href="#serving.knative.dev/v1.RouteStatus">RouteStatus</a>, <a href="#serving.knative.dev/v1.ServiceStatus">ServiceStatus</a>)
|
||||
</p>
|
||||
<p>
|
||||
<p>RouteStatusFields holds the fields of Route’s status that
|
||||
|
@ -1750,8 +1737,7 @@ and is scaled down, but may be rapidly pinned to a route to be made active again
|
|||
<h3 id="serving.knative.dev/v1.ServiceSpec">ServiceSpec
|
||||
</h3>
|
||||
<p>
|
||||
(<em>Appears on:</em>
|
||||
<a href="#serving.knative.dev/v1.Service">Service</a>)
|
||||
(<em>Appears on:</em><a href="#serving.knative.dev/v1.Service">Service</a>)
|
||||
</p>
|
||||
<p>
|
||||
<p>ServiceSpec represents the configuration for the Service object.
|
||||
|
@ -1810,8 +1796,7 @@ defaults).</p>
|
|||
<h3 id="serving.knative.dev/v1.ServiceStatus">ServiceStatus
|
||||
</h3>
|
||||
<p>
|
||||
(<em>Appears on:</em>
|
||||
<a href="#serving.knative.dev/v1.Service">Service</a>)
|
||||
(<em>Appears on:</em><a href="#serving.knative.dev/v1.Service">Service</a>)
|
||||
</p>
|
||||
<p>
|
||||
<p>ServiceStatus represents the Status stanza of the Service resource.</p>
|
||||
|
@ -1876,9 +1861,7 @@ specific to RouteStatus.</p>
|
|||
<h3 id="serving.knative.dev/v1.TrafficTarget">TrafficTarget
|
||||
</h3>
|
||||
<p>
|
||||
(<em>Appears on:</em>
|
||||
<a href="#serving.knative.dev/v1.RouteSpec">RouteSpec</a>,
|
||||
<a href="#serving.knative.dev/v1.RouteStatusFields">RouteStatusFields</a>)
|
||||
(<em>Appears on:</em><a href="#serving.knative.dev/v1.RouteSpec">RouteSpec</a>, <a href="#serving.knative.dev/v1.RouteStatusFields">RouteStatusFields</a>)
|
||||
</p>
|
||||
<p>
|
||||
<p>TrafficTarget holds a single entry of the routing table for a Route.</p>
|
||||
|
@ -2038,9 +2021,7 @@ Kubernetes meta/v1.ObjectMeta
|
|||
<td>
|
||||
<em>(Optional)</em>
|
||||
<p>Standard object’s metadata.
|
||||
More info: <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#metadata">https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#metadata</a></p>
|
||||
Refer to the Kubernetes API documentation for the fields of the
|
||||
<code>metadata</code> field.
|
||||
Refer to the <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#metadata">Kubernetes API documentation</a> for the fields of the <code>metadata</code> field.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -2055,7 +2036,7 @@ DomainMappingSpec
|
|||
<td>
|
||||
<em>(Optional)</em>
|
||||
<p>Spec is the desired state of the DomainMapping.
|
||||
More info: <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status">https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status</a></p>
|
||||
Refer to the <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status">Kubernetes API documentation</a> for more info on the <code>DomainMappingSpec</code> field.
|
||||
<br/>
|
||||
<br/>
|
||||
<table>
|
||||
|
@ -2067,8 +2048,13 @@ knative.dev/pkg/apis/duck/v1.KReference
|
|||
</em>
|
||||
</td>
|
||||
<td>
|
||||
<p>Ref points to an Addressable.
|
||||
Currently, Ref must be a KSvc.</p>
|
||||
<p>Ref specifies the target of the Domain Mapping.</p>
|
||||
<p>The object identified by the Ref must be an Addressable with a URL of the
|
||||
form <code>{name}.{namespace}.{domain}</code> where <code>{domain}</code> is the cluster domain,
|
||||
and <code>{name}</code> and <code>{namespace}</code> are the name and namespace of a Kubernetes
|
||||
Service.</p>
|
||||
<p>This contract is satisfied by Knative types such as Knative Services and
|
||||
Knative Routes, and by Kubernetes Services.</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
@ -2086,7 +2072,7 @@ DomainMappingStatus
|
|||
<td>
|
||||
<em>(Optional)</em>
|
||||
<p>Status is the current state of the DomainMapping.
|
||||
More info: <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status">https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status</a></p>
|
||||
Refer to the <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status">Kubernetes API documentation</a> for more info on the <code>DomainMappingStatus</code> field.</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
@ -2129,8 +2115,7 @@ string
|
|||
<h3 id="serving.knative.dev/v1alpha1.DomainMappingSpec">DomainMappingSpec
|
||||
</h3>
|
||||
<p>
|
||||
(<em>Appears on:</em>
|
||||
<a href="#serving.knative.dev/v1alpha1.DomainMapping">DomainMapping</a>)
|
||||
(<em>Appears on:</em><a href="#serving.knative.dev/v1alpha1.DomainMapping">DomainMapping</a>)
|
||||
</p>
|
||||
<p>
|
||||
<p>DomainMappingSpec describes the DomainMapping the user wishes to exist.</p>
|
||||
|
@ -2151,8 +2136,13 @@ knative.dev/pkg/apis/duck/v1.KReference
|
|||
</em>
|
||||
</td>
|
||||
<td>
|
||||
<p>Ref points to an Addressable.
|
||||
Currently, Ref must be a KSvc.</p>
|
||||
<p>Ref specifies the target of the Domain Mapping.</p>
|
||||
<p>The object identified by the Ref must be an Addressable with a URL of the
|
||||
form <code>{name}.{namespace}.{domain}</code> where <code>{domain}</code> is the cluster domain,
|
||||
and <code>{name}</code> and <code>{namespace}</code> are the name and namespace of a Kubernetes
|
||||
Service.</p>
|
||||
<p>This contract is satisfied by Knative types such as Knative Services and
|
||||
Knative Routes, and by Kubernetes Services.</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
@ -2160,8 +2150,7 @@ Currently, Ref must be a KSvc.</p>
|
|||
<h3 id="serving.knative.dev/v1alpha1.DomainMappingStatus">DomainMappingStatus
|
||||
</h3>
|
||||
<p>
|
||||
(<em>Appears on:</em>
|
||||
<a href="#serving.knative.dev/v1alpha1.DomainMapping">DomainMapping</a>)
|
||||
(<em>Appears on:</em><a href="#serving.knative.dev/v1alpha1.DomainMapping">DomainMapping</a>)
|
||||
</p>
|
||||
<p>
|
||||
<p>DomainMappingStatus describes the current state of the DomainMapping.</p>
|
||||
|
@ -2216,5 +2205,5 @@ knative.dev/pkg/apis/duck/v1.Addressable
|
|||
<hr/>
|
||||
<p><em>
|
||||
Generated with <code>gen-crd-api-reference-docs</code>
|
||||
on git commit <code>560a4f678</code>.
|
||||
on git commit <code>6dba44a70</code>.
|
||||
</em></p>
|
||||
|
|
|
@ -149,6 +149,8 @@ main() {
|
|||
gen_refdocs "${refdocs_bin}" "${clone_root}" "${template_dir}" \
|
||||
"${out_dir}/${KNATIVE_SERVING_OUT_FILE}" "${knative_serving_root}" "./pkg/apis"
|
||||
|
||||
cp "${out_dir}/${KNATIVE_SERVING_OUT_FILE}" "$SCRIPTDIR/../docs/reference/api/${KNATIVE_SERVING_OUT_FILE}"
|
||||
|
||||
local knative_eventing_root
|
||||
knative_eventing_root="${clone_root}/src/${KNATIVE_EVENTING_IMPORT_PATH}"
|
||||
clone_at_commit "https://${KNATIVE_EVENTING_REPO}.git" "${KNATIVE_EVENTING_COMMIT}" \
|
||||
|
@ -156,6 +158,8 @@ main() {
|
|||
gen_refdocs "${refdocs_bin}" "${clone_root}" "${template_dir}" \
|
||||
"${out_dir}/${KNATIVE_EVENTING_OUT_FILE}" "${knative_eventing_root}" "./pkg/apis"
|
||||
|
||||
cp "${out_dir}/${KNATIVE_EVENTING_OUT_FILE}" "$SCRIPTDIR/../docs/reference/api/${KNATIVE_EVENTING_OUT_FILE}"
|
||||
|
||||
# local knative_eventing_contrib_root
|
||||
# knative_eventing_contrib_root="${clone_root}/src/${KNATIVE_EVENTING_CONTRIB_IMPORT_PATH}"
|
||||
# clone_at_commit "https://${KNATIVE_EVENTING_CONTRIB_REPO}.git" "${KNATIVE_EVENTING_CONTRIB_COMMIT}" \
|
||||
|
@ -163,14 +167,8 @@ main() {
|
|||
# gen_refdocs "${refdocs_bin}" "${clone_root}" "${template_dir}" \
|
||||
# "${out_dir}/${KNATIVE_EVENTING_CONTRIB_OUT_FILE}" "${knative_eventing_contrib_root}" "."
|
||||
|
||||
log "SUCCESS: Generated docs written to ${out_dir}/."
|
||||
log "Opening the ${out_dir}/ directory. You can now copy these API files"
|
||||
log "from ${out_dir}/, into the 'docs/reference/' directory of knative/docs."
|
||||
if command -v xdg-open >/dev/null; then
|
||||
xdg-open "${out_dir}/"
|
||||
elif command -v open >/dev/null; then
|
||||
open "${out_dir}/"
|
||||
fi
|
||||
echo "Applying patches..."
|
||||
git apply $SCRIPTDIR/patches/*.patch
|
||||
}
|
||||
|
||||
main "$@"
|
||||
|
|
|
@ -0,0 +1,123 @@
|
|||
diff --git a/docs/reference/api/serving.md b/docs/reference/api/serving.md
|
||||
index 91f96fb9..3534d450 100644
|
||||
--- a/docs/reference/api/serving.md
|
||||
+++ b/docs/reference/api/serving.md
|
||||
@@ -23,8 +23,10 @@ Resource Types:
|
||||
<p>
|
||||
<p>PodAutoscaler is a Knative abstraction that encapsulates the interface by which Knative
|
||||
components instantiate autoscalers. This definition is an abstraction that may be backed
|
||||
-by multiple definitions. For more information, see the Knative Pluggability presentation:
|
||||
-<a href="https://docs.google.com/presentation/d/10KWynvAJYuOEWy69VBa6bHJVCqIsz1TNdEKosNvcpPY/edit">https://docs.google.com/presentation/d/10KWynvAJYuOEWy69VBa6bHJVCqIsz1TNdEKosNvcpPY/edit</a></p>
|
||||
+by multiple definitions.
|
||||
+
|
||||
+For more information on Knative Autoscalers and Pluggability,
|
||||
+<a href="https://docs.google.com/presentation/d/10KWynvAJYuOEWy69VBa6bHJVCqIsz1TNdEKosNvcpPY/edit">see the Knative Pluggability presentation.</a></p>
|
||||
</p>
|
||||
<table>
|
||||
<thead>
|
||||
@@ -707,14 +709,18 @@ Resource Types:
|
||||
</li><li>
|
||||
<a href="#serving.knative.dev/v1.Service">Service</a>
|
||||
</li></ul>
|
||||
+<p>For an overview of the different Resource Types in Knative Serving and how they interact with one another, see <a href="https://github.com/knative/serving/blob/master/docs/spec/overview.md#configuration">this explanation of Resource Types</a></p>
|
||||
+
|
||||
<h3 id="serving.knative.dev/v1.Configuration">Configuration
|
||||
</h3>
|
||||
+
|
||||
<p>
|
||||
<p>Configuration represents the “floating HEAD” of a linear history of Revisions.
|
||||
Users create new Revisions by updating the Configuration’s spec.
|
||||
The “latest created” revision’s name is available under status, as is the
|
||||
“latest ready” revision’s name.
|
||||
-See also: <a href="https://github.com/knative/serving/blob/master/docs/spec/overview.md#configuration">https://github.com/knative/serving/blob/master/docs/spec/overview.md#configuration</a></p>
|
||||
+
|
||||
+For more information on how Configuration interacts with other Resource Types, see the "Configuration" sub-heading <a href="https://github.com/knative/serving/blob/master/docs/spec/overview.md#configuration">in the Resource Types Overview.</a></p>
|
||||
</p>
|
||||
<table>
|
||||
<thead>
|
||||
@@ -808,7 +814,8 @@ ConfigurationStatus
|
||||
<p>Revision is an immutable snapshot of code and configuration. A revision
|
||||
references a container image. Revisions are created by updates to a
|
||||
Configuration.</p>
|
||||
-<p>See also: <a href="https://github.com/knative/serving/blob/master/docs/spec/overview.md#revision">https://github.com/knative/serving/blob/master/docs/spec/overview.md#revision</a></p>
|
||||
+
|
||||
+<p>For more information on how Revision interacts with other Resource Types, see the "Revision" sub-heading <a href="https://github.com/knative/serving/blob/master/docs/spec/overview.md#revision">in the Resource Types Overview.</a></p>
|
||||
</p>
|
||||
<table>
|
||||
<thead>
|
||||
@@ -934,7 +941,8 @@ Some of the Revisions a Route distributes traffic over may be specified by
|
||||
referencing the Configuration responsible for creating them; in these cases
|
||||
the Route is additionally responsible for monitoring the Configuration for
|
||||
“latest ready revision” changes, and smoothly rolling out latest revisions.
|
||||
-See also: <a href="https://github.com/knative/serving/blob/master/docs/spec/overview.md#route">https://github.com/knative/serving/blob/master/docs/spec/overview.md#route</a></p>
|
||||
+
|
||||
+For more information on how Route interacts with other Resource Types, see the "Route" sub-heading <a href="https://github.com/knative/serving/blob/master/docs/spec/overview.md#route">in the Resource Types Overview.</a></p>
|
||||
</p>
|
||||
<table>
|
||||
<thead>
|
||||
@@ -1037,7 +1045,8 @@ underlying Routes and Configurations (much as a kubernetes Deployment
|
||||
orchestrates ReplicaSets), and its usage is optional but recommended.</p>
|
||||
<p>The Service’s controller will track the statuses of its owned Configuration
|
||||
and Route, reflecting their statuses and conditions as its own.</p>
|
||||
-<p>See also: <a href="https://github.com/knative/serving/blob/master/docs/spec/overview.md#service">https://github.com/knative/serving/blob/master/docs/spec/overview.md#service</a></p>
|
||||
+
|
||||
+<p>For more information on how Service interacts with other Resource Types, see the "Service" sub-heading <a href="https://github.com/knative/serving/blob/master/docs/spec/overview.md#service">in the Resource Types Overview.</a></p>
|
||||
</p>
|
||||
<table>
|
||||
<thead>
|
||||
@@ -1452,7 +1461,7 @@ If multiple containers specified then DeprecatedImageDigest holds the digest
|
||||
for serving container.
|
||||
DEPRECATED: Use ContainerStatuses instead.
|
||||
TODO(savitaashture) Remove deprecatedImageDigest.
|
||||
-ref <a href="https://kubernetes.io/docs/reference/using-api/deprecation-policy">https://kubernetes.io/docs/reference/using-api/deprecation-policy</a> for deprecation.</p>
|
||||
+(see <a href="https://kubernetes.io/docs/reference/using-api/deprecation-policy">Kubernetes Deprecation Policy</a>) for deprecation.</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -1471,7 +1480,7 @@ to their respective digests and their container name.
|
||||
The digests are resolved during the creation of Revision.
|
||||
ContainerStatuses holds the container name and image digests
|
||||
for both serving and non serving containers.
|
||||
-ref: <a href="http://bit.ly/image-digests">http://bit.ly/image-digests</a></p>
|
||||
+See the <a href="http://bit.ly/image-digests">Proposal for multiple containers in a revision</a> for some context on this field.</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@@ -1484,7 +1493,7 @@ ref: <a href="http://bit.ly/image-digests">http://bit.ly/image-digests</a></p>
|
||||
</p>
|
||||
<p>
|
||||
<p>RevisionTemplateSpec describes the data a revision should have when created from a template.
|
||||
-Based on: <a href="https://github.com/kubernetes/api/blob/e771f807/core/v1/types.go#L3179-L3190">https://github.com/kubernetes/api/blob/e771f807/core/v1/types.go#L3179-L3190</a></p>
|
||||
+Based on <a href="https://github.com/kubernetes/api/blob/e771f807/core/v1/types.go#L3179-L3190">the PodTemplateSpec in Kubernetes</a></p>
|
||||
</p>
|
||||
<table>
|
||||
<thead>
|
||||
@@ -2038,9 +2047,7 @@ Kubernetes meta/v1.ObjectMeta
|
||||
<td>
|
||||
<em>(Optional)</em>
|
||||
<p>Standard object’s metadata.
|
||||
-More info: <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#metadata">https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#metadata</a></p>
|
||||
-Refer to the Kubernetes API documentation for the fields of the
|
||||
-<code>metadata</code> field.
|
||||
+Refer to the <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#metadata">Kubernetes API documentation</a> for the fields of the <code>metadata</code> field.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -2055,7 +2062,7 @@ DomainMappingSpec
|
||||
<td>
|
||||
<em>(Optional)</em>
|
||||
<p>Spec is the desired state of the DomainMapping.
|
||||
-More info: <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status">https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status</a></p>
|
||||
+Refer to the <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status">Kubernetes API documentation</a> for more info on the <code>DomainMappingSpec</code> field.
|
||||
<br/>
|
||||
<br/>
|
||||
<table>
|
||||
@@ -2086,7 +2093,7 @@ DomainMappingStatus
|
||||
<td>
|
||||
<em>(Optional)</em>
|
||||
<p>Status is the current state of the DomainMapping.
|
||||
-More info: <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status">https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status</a></p>
|
||||
+Refer to the <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status">Kubernetes API documentation</a> for more info on the <code>DomainMappingStatus</code> field.</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
Loading…
Reference in New Issue