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

Commit

Permalink
feat: Add LabelSelector (#177)
Browse files Browse the repository at this point in the history
* feat: Add LabelSelector

Signed-off-by: Ce Gao <ce.gao@outlook.com>

* fix: Update mod

Signed-off-by: Ce Gao <ce.gao@outlook.com>

* chore: Update go version

Signed-off-by: Ce Gao <ce.gao@outlook.com>
  • Loading branch information
gaocegege authored Nov 24, 2021
1 parent 34276e9 commit 26a6cec
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: 1.16
go-version: 1.17

- uses: actions/cache@v2
with:
Expand Down
9 changes: 9 additions & 0 deletions pkg/apis/common/v1/openapi_generated.go

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

5 changes: 5 additions & 0 deletions pkg/apis/common/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ 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 *metav1.LabelSelector `json:"labelSelector,omitempty"`
}

// +k8s:openapi-gen=true
Expand Down
9 changes: 8 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.

1 change: 1 addition & 0 deletions pkg/apis/common/v1/zz_generated.defaults.go

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

1 change: 1 addition & 0 deletions test_job/apis/test_job/v1/openapi_generated.go

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

1 change: 1 addition & 0 deletions test_job/apis/test_job/v1/zz_generated.deepcopy.go

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

1 change: 1 addition & 0 deletions test_job/apis/test_job/v1/zz_generated.defaults.go

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

0 comments on commit 26a6cec

Please sign in to comment.