-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
spd api support custom indicator #61
spd api support custom indicator #61
Conversation
20b408b
to
a8f79ed
Compare
pkg/apis/workload/v1alpha1/types.go
Outdated
// if multiple CustomIndicator are defined, it means that we should | ||
// try to satisfy all of those indicator targets | ||
// +optional | ||
// +patchMergeKey=name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does patchMergeKey take effected for CRDs?
a8f79ed
to
b8e45e1
Compare
@@ -119,12 +144,12 @@ type ServiceBusinessIndicatorSpec struct { | |||
Indicators []Indicator `json:"indicators,omitempty"` | |||
} | |||
|
|||
type TargetIndicatorName string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changing type name, will it cause modifications in codes using this type?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, i will change the code in other mr
pkg/apis/workload/v1alpha1/types.go
Outdated
// +optional | ||
// +listMapKey=name | ||
// +listType=map | ||
CustomIndicator []ServiceCustomIndicatorSpec `json:"customIndicator,omitempty"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is the difference between CustomIndicator
and BusinessIndicator
actually?
ac95d80
to
0eda6ec
Compare
0eda6ec
to
4c501b1
Compare
What type of PR is this?
Enhancements
What this PR does / why we need it:
extend spd api to support custom indicator beyond business and system scopes
Which issue(s) this PR fixes:
Special notes for your reviewer: