Skip to content

Commit

Permalink
Add httpHeaders to httpGet liveness probe
Browse files Browse the repository at this point in the history
Also update existing documentation and try to steer users away from 'host'.
Add validation.
  • Loading branch information
Rudi Chiarito committed Feb 5, 2016
1 parent faa0fc3 commit a2d1bb7
Show file tree
Hide file tree
Showing 27 changed files with 28,488 additions and 27,261 deletions.
27 changes: 26 additions & 1 deletion api/swagger-spec/v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -15902,11 +15902,36 @@
},
"host": {
"type": "string",
"description": "Host name to connect to, defaults to the pod IP."
"description": "Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead."
},
"scheme": {
"type": "string",
"description": "Scheme to use for connecting to the host. Defaults to HTTP."
},
"httpHeaders": {
"type": "array",
"items": {
"$ref": "v1.HTTPHeader"
},
"description": "Custom headers to set in the request. HTTP allows repeated headers."
}
}
},
"v1.HTTPHeader": {
"id": "v1.HTTPHeader",
"description": "HTTPHeader describes a custom header to be used in HTTP probes",
"required": [
"name",
"value"
],
"properties": {
"name": {
"type": "string",
"description": "The header field name"
},
"value": {
"type": "string",
"description": "The header field value"
}
}
},
Expand Down
27 changes: 26 additions & 1 deletion api/swagger-spec/v1beta1.json
Original file line number Diff line number Diff line change
Expand Up @@ -4781,11 +4781,36 @@
},
"host": {
"type": "string",
"description": "Host name to connect to, defaults to the pod IP."
"description": "Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead."
},
"scheme": {
"type": "string",
"description": "Scheme to use for connecting to the host. Defaults to HTTP."
},
"httpHeaders": {
"type": "array",
"items": {
"$ref": "v1.HTTPHeader"
},
"description": "Custom headers to set in the request. HTTP allows repeated headers."
}
}
},
"v1.HTTPHeader": {
"id": "v1.HTTPHeader",
"description": "HTTPHeader describes a custom header to be used in HTTP probes",
"required": [
"name",
"value"
],
"properties": {
"name": {
"type": "string",
"description": "The header field name"
},
"value": {
"type": "string",
"description": "The header field value"
}
}
},
Expand Down
52 changes: 50 additions & 2 deletions docs/api-reference/extensions/v1beta1/definitions.html
Original file line number Diff line number Diff line change
Expand Up @@ -893,6 +893,47 @@ <h3 id="_v1_cephfsvolumesource">v1.CephFSVolumeSource</h3>
</tbody>
</table>

</div>
<div class="sect2">
<h3 id="_v1_httpheader">v1.HTTPHeader</h3>
<div class="paragraph">
<p>HTTPHeader describes a custom header to be used in HTTP probes</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">name</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">The header field name</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">value</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">The header field value</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>
</tbody>
</table>

</div>
<div class="sect2">
<h3 id="_v1beta1_horizontalpodautoscalerstatus">v1beta1.HorizontalPodAutoscalerStatus</h3>
Expand Down Expand Up @@ -1562,7 +1603,7 @@ <h3 id="_v1_httpgetaction">v1.HTTPGetAction</h3>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">host</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">Host name to connect to, defaults to the pod IP.</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead.</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>
Expand All @@ -1574,6 +1615,13 @@ <h3 id="_v1_httpgetaction">v1.HTTPGetAction</h3>
<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">httpHeaders</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">Custom headers to set in the request. HTTP allows repeated headers.</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_httpheader">v1.HTTPHeader</a> array</p></td>
<td class="tableblock halign-left valign-top"></td>
</tr>
</tbody>
</table>

Expand Down Expand Up @@ -4838,7 +4886,7 @@ <h3 id="_any">any</h3>
</div>
<div id="footer">
<div id="footer-text">
Last updated 2016-02-05 15:52:54 UTC
Last updated 2016-02-05 16:19:07 UTC
</div>
</div>
</body>
Expand Down
Loading

0 comments on commit a2d1bb7

Please sign in to comment.