Skip to content
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

Merged

Conversation

luomingmeng
Copy link
Collaborator

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:

@luomingmeng luomingmeng force-pushed the dev/spd-support-custom-indicator branch from 20b408b to a8f79ed Compare January 19, 2024 13:26
// if multiple CustomIndicator are defined, it means that we should
// try to satisfy all of those indicator targets
// +optional
// +patchMergeKey=name
Copy link
Member

@cheney-lin cheney-lin Jan 20, 2024

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?

@luomingmeng luomingmeng force-pushed the dev/spd-support-custom-indicator branch from a8f79ed to b8e45e1 Compare January 22, 2024 14:54
@@ -119,12 +144,12 @@ type ServiceBusinessIndicatorSpec struct {
Indicators []Indicator `json:"indicators,omitempty"`
}

type TargetIndicatorName string
Copy link
Collaborator

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?

Copy link
Collaborator Author

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

// +optional
// +listMapKey=name
// +listType=map
CustomIndicator []ServiceCustomIndicatorSpec `json:"customIndicator,omitempty"`
Copy link
Collaborator

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?

@luomingmeng luomingmeng force-pushed the dev/spd-support-custom-indicator branch 2 times, most recently from ac95d80 to 0eda6ec Compare February 21, 2024 03:55
@luomingmeng luomingmeng force-pushed the dev/spd-support-custom-indicator branch from 0eda6ec to 4c501b1 Compare February 21, 2024 04:01
@waynepeking348 waynepeking348 merged commit b859085 into kubewharf:main Feb 22, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants