Skip to content

Commit

Permalink
Handle optional workloads by group (#452)
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <[email protected]>
  • Loading branch information
tamalsaha authored Aug 1, 2024
1 parent bacf71a commit 995886d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions apis/ui/v1alpha1/feature_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ type WorkloadInfo struct {
metav1.GroupVersionKind `json:",inline"`
// Selector specifies label selector that should be used to select this workload
Selector map[string]string `json:"selector"`
Optional string `json:"optional,omitempty"`
}

type ChartInfo struct {
Expand Down
6 changes: 6 additions & 0 deletions apis/ui/v1alpha1/openapi_generated.go

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

2 changes: 2 additions & 0 deletions crds/ui.k8s.appscode.com_features.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,8 @@ spec:
type: string
kind:
type: string
optional:
type: string
selector:
additionalProperties:
type: string
Expand Down

0 comments on commit 995886d

Please sign in to comment.