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

Fix hardcoded background job periodic poll interval #134

Merged
merged 4 commits into from
Nov 15, 2024

Conversation

kushnaidu
Copy link
Contributor

@kushnaidu kushnaidu commented Nov 11, 2024

This change makes the background job periodic polling interval configurable and matches with the repo sync interval.

This change makes the default repo sync and periodic sync intervals 10 minutes by default.

This change also hides the request-timeout parameter from the porchctl command. This is done because currently in Kubernetes source code, client context is cancelled at exactly 34 seconds - https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apiserver/pkg/endpoints/handlers/rest.go#L53.

@liamfallon
Copy link
Member

/test presubmit-nephio-go-test

1 similar comment
@liamfallon
Copy link
Member

/test presubmit-nephio-go-test

Copy link
Member

@liamfallon liamfallon left a comment

Choose a reason for hiding this comment

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

/approve

@nephio-prow nephio-prow bot added the approved label Nov 14, 2024
Makefile Show resolved Hide resolved
deployments/porch/3-porch-server.yaml Show resolved Hide resolved
pkg/registry/porch/background.go Outdated Show resolved Hide resolved
pkg/cmd/server/start.go Outdated Show resolved Hide resolved
@efiacor
Copy link
Collaborator

efiacor commented Nov 14, 2024

/approve
/lgtm

Copy link
Contributor

nephio-prow bot commented Nov 14, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: efiacor, kushnaidu, liamfallon

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

@efiacor efiacor closed this Nov 14, 2024
@efiacor efiacor reopened this Nov 14, 2024
@efiacor
Copy link
Collaborator

efiacor commented Nov 14, 2024

/retest

1 similar comment
@efiacor
Copy link
Collaborator

efiacor commented Nov 14, 2024

/retest

@radoslawc radoslawc merged commit d7bd755 into nephio-project:main Nov 15, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants