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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 Don't requeue provider if its spec is invalid #115

Merged
merged 1 commit into from
May 31, 2023

Conversation

Fedosin
Copy link
Contributor

@Fedosin Fedosin commented May 24, 2023

What this PR does / why we need it:

Currently if provider fails spec validation during preflight checks, we requeue it again with a 30 seconds interval. It doesn't make sense, because the spec still will be invalid and validation will fail again and again.

This PR identifies all places where we don't need to requeue providers and updates them accordingly.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label May 24, 2023
@k8s-ci-robot k8s-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label May 24, 2023
@Fedosin Fedosin changed the title 馃悰 Don't requeue provider if its config is invalid 馃悰 Don't requeue provider if its spec is invalid May 24, 2023
Currently if provider fails spec validation during preflight checks,
we requeue it again with 30 seconds timeout. It doesn't make sense,
because the spec still will be invalid and validation will fail again
and again.

This PR identifies all the places where we don't need to requeue providers,
and updates them accordingly.
@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels May 29, 2023
@Fedosin
Copy link
Contributor Author

Fedosin commented May 29, 2023

/retest

@furkatgofurov7
Copy link
Member

Presubmit job failures are not related to this PR but the issue with k8s test-infra itself (same in many other PRs' in different repos currently) and tracked in kubernetes/test-infra#29622

@Fedosin
Copy link
Contributor Author

Fedosin commented May 29, 2023

@furkatgofurov7 thanks! good to know

@Fedosin
Copy link
Contributor Author

Fedosin commented May 30, 2023

/retest

1 similar comment
@Fedosin
Copy link
Contributor Author

Fedosin commented May 30, 2023

/retest

Copy link
Member

@furkatgofurov7 furkatgofurov7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This definitely makes sense to me!

LGTM

Copy link
Member

@furkatgofurov7 furkatgofurov7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 31, 2023
@furkatgofurov7
Copy link
Member

/cc @alexander-demicev

Copy link
Contributor

@alexander-demicev alexander-demicev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense to me too, we discussed it with @Fedosin earlier this week.
/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: alexander-demicev

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 31, 2023
@k8s-ci-robot k8s-ci-robot merged commit 5f58c3b into kubernetes-sigs:main May 31, 2023
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants