docs(api): 📝 Fix HPA docs with addition of "External" type

This commit is contained in:
Weston McNamee 2020-08-14 10:37:12 -07:00
parent 3b5aedcef4
commit f62a3bc5bd
No known key found for this signature in database
GPG Key ID: 1C08DB44DEC7CAFC
2 changed files with 2 additions and 2 deletions

View File

@ -88,7 +88,7 @@ const (
// (only `type` and one other matching field should be set at once). // (only `type` and one other matching field should be set at once).
type MetricSpec struct { type MetricSpec struct {
// type is the type of metric source. It should be one of "Object", // type is the type of metric source. It should be one of "Object",
// "Pods" or "Resource", each mapping to a matching field in the object. // "Pods", "Resource" or "External", each mapping to a matching field in the object.
Type MetricSourceType `json:"type" protobuf:"bytes,1,name=type"` Type MetricSourceType `json:"type" protobuf:"bytes,1,name=type"`
// object refers to a metric describing a single kubernetes object // object refers to a metric describing a single kubernetes object

View File

@ -97,7 +97,7 @@ type CrossVersionObjectReference struct {
// (only `type` and one other matching field should be set at once). // (only `type` and one other matching field should be set at once).
type MetricSpec struct { type MetricSpec struct {
// type is the type of metric source. It should be one of "Object", // type is the type of metric source. It should be one of "Object",
// "Pods" or "Resource", each mapping to a matching field in the object. // "Pods", "Resource" or "External", each mapping to a matching field in the object.
Type MetricSourceType `json:"type" protobuf:"bytes,1,name=type"` Type MetricSourceType `json:"type" protobuf:"bytes,1,name=type"`
// object refers to a metric describing a single kubernetes object // object refers to a metric describing a single kubernetes object