Skip to content

Commit f62a3bc

Browse files
committed
docs(api): 📝 Fix HPA docs with addition of "External" type
1 parent 3b5aedc commit f62a3bc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

staging/src/k8s.io/api/autoscaling/v2beta1/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ const (
8888
// (only `type` and one other matching field should be set at once).
8989
type MetricSpec struct {
9090
// type is the type of metric source. It should be one of "Object",
91-
// "Pods" or "Resource", each mapping to a matching field in the object.
91+
// "Pods", "Resource" or "External", each mapping to a matching field in the object.
9292
Type MetricSourceType `json:"type" protobuf:"bytes,1,name=type"`
9393

9494
// object refers to a metric describing a single kubernetes object

staging/src/k8s.io/api/autoscaling/v2beta2/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ type CrossVersionObjectReference struct {
9797
// (only `type` and one other matching field should be set at once).
9898
type MetricSpec struct {
9999
// type is the type of metric source. It should be one of "Object",
100-
// "Pods" or "Resource", each mapping to a matching field in the object.
100+
// "Pods", "Resource" or "External", each mapping to a matching field in the object.
101101
Type MetricSourceType `json:"type" protobuf:"bytes,1,name=type"`
102102

103103
// object refers to a metric describing a single kubernetes object

0 commit comments

Comments
 (0)