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

check whether tsp is outdated in custom metric provider #341

Merged
merged 1 commit into from
Jun 1, 2022

Conversation

whitebear009
Copy link
Contributor

What type of PR is this?

bugfix

What this PR does / why we need it:

The GetMetricBySelector method judges the condition of the tsp but does not judge whether the timestamp of the metric of the tsp is within the validity period, which may result in the largestMetricValue not being assigned.
So here it is judged whether there is a metric within the validity period in the tsp

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

@github-actions
Copy link
Contributor

github-actions bot commented Jun 1, 2022

🎉 Successfully Build Images.

Overview: https://finops.coding.net/public-artifacts/gocrane/crane/packages

Image Pull Command
crane-agent:pr-341-8058191 docker pull finops-docker.pkg.coding.net/gocrane/crane/crane-agent:pr-341-8058191
dashboard:pr-341-8058191 docker pull finops-docker.pkg.coding.net/gocrane/crane/dashboard:pr-341-8058191
metric-adapter:pr-341-8058191 docker pull finops-docker.pkg.coding.net/gocrane/crane/metric-adapter:pr-341-8058191
craned:pr-341-8058191 docker pull finops-docker.pkg.coding.net/gocrane/crane/craned:pr-341-8058191

@qmhu
Copy link
Member

qmhu commented Jun 1, 2022

/LGTM

@qmhu qmhu merged commit c594dde into gocrane:main Jun 1, 2022
@whitebear009 whitebear009 deleted the check-outdated-ts branch June 10, 2022 11:01
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.

2 participants