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

set TZ environment for webhook and advanced statefulset #3034

Merged
merged 3 commits into from
Jul 30, 2020

Conversation

cofyc
Copy link
Contributor

@cofyc cofyc commented Jul 29, 2020

What problem does this PR solve?

fixes #2944

What is changed and how does it work?

Check List

Tests

  • Unit test
  • E2E test
  • Stability test
  • Manual test (add detailed scripts or steps below)
  • No code

Code changes

  • Has Go code change
  • Has CI related scripts change
  • Has Terraform scripts change

Side effects

  • Breaking backward compatibility

Related changes

  • Need to cherry-pick to the release branch
  • Need to update the documentation

Does this PR introduce a user-facing change?:

Configure TZ environment for admission webhook and advanced statefulset controller deployed in tidb-operator chart

…operator chart should honor .Values.timezone

backup-manager job should use the same timezone of tidb-controller-manager
@cofyc cofyc requested review from DanielZhangQD, weekface and lichunzhu and removed request for DanielZhangQD July 29, 2020 12:38
@@ -151,7 +151,7 @@ apiserver:
# kubectl apply -f manifests/advanced-statefulset-crd.v1.yaml # k8s version >= 1.16.0
advancedStatefulset:
create: false
image: pingcap/advanced-statefulset:v0.3.3
image: pingcap/advanced-statefulset:v0.4.0
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This new image contains tzdata, so that we can use TZ environment to configure the local time zone.

@codecov-commenter
Copy link

codecov-commenter commented Jul 29, 2020

Codecov Report

Merging #3034 into master will increase coverage by 0.23%.
The diff coverage is 66.66%.

@@            Coverage Diff             @@
##           master    #3034      +/-   ##
==========================================
+ Coverage   41.92%   42.15%   +0.23%     
==========================================
  Files         156      156              
  Lines       16777    16709      -68     
==========================================
+ Hits         7033     7043      +10     
+ Misses       9172     9094      -78     
  Partials      572      572              
Flag Coverage Δ
#unittest 42.15% <66.66%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

Copy link
Contributor

@DanielZhangQD DanielZhangQD left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@weekface weekface left a comment

Choose a reason for hiding this comment

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

LGTM

@cofyc cofyc merged commit 8a86f9a into pingcap:master Jul 30, 2020
ti-srebot pushed a commit to ti-srebot/tidb-operator that referenced this pull request Jul 30, 2020
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
@ti-srebot
Copy link
Contributor

cherry pick to release-1.1 in PR #3041

ti-srebot added a commit that referenced this pull request Jul 30, 2020
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>

Co-authored-by: Yecheng Fu <fuyecheng@pingcap.com>
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.

The time zone of pods for automatic backup and manual backup cannot be set
6 participants