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

Disable resync period #2634

Merged
merged 3 commits into from
Jun 13, 2018
Merged

Disable resync period #2634

merged 3 commits into from
Jun 13, 2018

Conversation

aledbf
Copy link
Member

@aledbf aledbf commented Jun 13, 2018

What this PR does / why we need it:

Disables the resync period. The intended use of this setting is related to watch issues with etcd. This is not an issue anymore. Additionally, forcing a resync introduces some edge cases, like #2195.

Note: this was also recommended in the contributor summit in last Kubecon

Which issue this PR fixes : fixes #2195

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jun 13, 2018
@antoineco
Copy link
Contributor

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jun 13, 2018
@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jun 13, 2018
@aledbf aledbf force-pushed the sync-0 branch 3 times, most recently from af9a261 to 47e2cee Compare June 13, 2018 16:53
.travis.yml Outdated
&& go get golang.org/x/lint/golint
- go get github.com/vbatts/git-validation
- |
mkdir -p $GOPATH/src/golang.org/x/tools
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe just go get -d golang.org/x/lint/golint to avoid this mkdir + git clone?

Copy link
Member Author

Choose a reason for hiding this comment

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

done

.travis.yml Outdated
git clone https://go.googlesource.com/tools $GOPATH/src/golang.org/x/tools
cd $GOPATH/src/golang.org/x/tools
git checkout release-branch.go1.10
go get golang.org/x/lint/golint
Copy link
Contributor

Choose a reason for hiding this comment

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

go install sounds more appropriate.

Copy link
Member Author

Choose a reason for hiding this comment

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

done

.travis.yml Outdated
cd $GOPATH/src/golang.org/x/tools
git checkout release-branch.go1.10
go get golang.org/x/lint/golint
cd $TRAVIS_BUILD_DIR
Copy link
Contributor

Choose a reason for hiding this comment

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

cd - probably more intuitive.

Copy link
Member Author

Choose a reason for hiding this comment

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

done

@antoineco
Copy link
Contributor

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jun 13, 2018
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: aledbf, antoineco

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

@codecov-io
Copy link

codecov-io commented Jun 13, 2018

Codecov Report

Merging #2634 into master will increase coverage by 0.02%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2634      +/-   ##
==========================================
+ Coverage   40.69%   40.72%   +0.02%     
==========================================
  Files          75       75              
  Lines        5123     5120       -3     
==========================================
  Hits         2085     2085              
+ Misses       2756     2753       -3     
  Partials      282      282
Impacted Files Coverage Δ
cmd/nginx/main.go 23.66% <ø> (+0.52%) ⬆️
cmd/nginx/flags.go 83.33% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 64936fa...c680112. Read the comment docs.

@redbaron
Copy link

redbaron commented Dec 9, 2018

Resync period is there for a good reason to catchup with missed watch events, which can occasionally happen. In source controllers (code in controller-manager) do just fine with resync period != 0.

Having read all related issues, there was no evidence that problems were caused.

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.

Partial/missing/empty config items after control plane unavailability
6 participants