Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Adding compatibility for API supporting HPA #206

Merged
merged 3 commits into from
Jan 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion pkg/apis/common/v1/openapi_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 7 additions & 4 deletions pkg/apis/common/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,13 @@ type ReplicaStatus struct {
// The number of pods which reached phase Failed.
Failed int32 `json:"failed,omitempty"`

// A label selector is a label query over a set of resources. The result of matchLabels and
// matchExpressions are ANDed. An empty label selector matches all objects. A null
// label selector matches no objects.
LabelSelector string `json:"labelSelector,omitempty"`
// Deprecated: Use Selector instead
LabelSelector *metav1.LabelSelector `json:"labelSelector,omitempty"`

// A Selector is a label query over a set of resources. The result of matchLabels and
// matchExpressions are ANDed. An empty Selector matches all objects. A null
// Selector matches no objects.
Selector string `json:"selector,omitempty"`
}

// +k8s:openapi-gen=true
Expand Down
8 changes: 7 additions & 1 deletion pkg/apis/common/v1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.