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

Commit

Permalink
Adding compatibility for API supporting HPA (#206)
Browse files Browse the repository at this point in the history
* Adding compatibility for API supporting HPA

* Fix comments

* Fix code gen
  • Loading branch information
johnugeorge authored Jan 20, 2023
1 parent 3eb4cb3 commit 1c4031b
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 6 deletions.
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.

0 comments on commit 1c4031b

Please sign in to comment.