Skip to content

Commit

Permalink
fix stability
Browse files Browse the repository at this point in the history
updated by comment

Update main.go

enable github actions (pingcap#1690)

deploy: close connection after set privilege (pingcap#1692)

fix tls client cert bug (pingcap#1693)

Co-authored-by: Song Gao <disxiaofei@163.com>

change check podList

update blockwrite imagePullPolicy

update DefaultPollTimeout

fix error msg

Add secret get/list for webhook rbac (pingcap#1704)

add more SANs to tidb server certificate (pingcap#1702)

* add more SANs to tidb server certificate

* address comment

* address comment

* codegen

* fix CI

tidb-backup: add restoreUsingExistingVolume option (pingcap#1708)

Add consecutive count check for Auto-scaling (pingcap#1703)

* Add consecutive count check for Auto-scaling

tidb-backup: restore respects resources, imagePullPolicy, nodeSelector (pingcap#1705)

tidb-initializer:close connection after set privilege (pingcap#1710)

fix autoscaler api (pingcap#1718)

use kubetest2 to run our e2e and support GKE provider (pingcap#1716)

fix tidb-lightning errors (pingcap#1723)

fixes for pingcap@9a3b1e2

Add auto-scaling calculation based by CPU load (pingcap#1722)

* add cpu metrics func

Remove consecutive check (pingcap#1732)

* remove consecutive check temporarily

Support user-defined tidb server/client certificate (pingcap#1714)

* support user custom certificate

* refine API

* fix typo

* fix some bugs

* create service before certificate

* tiny fix

* address comments

* address comment

* address comment

Co-authored-by: Song Gao <disxiaofei@163.com>

Finish auto-scaler controller (pingcap#1731)

* finish auto-scaler controller

* revise compare tc

add basic yaml deployment example (pingcap#1573)

* add basic yaml deployment example

Signed-off-by: Aylei <rayingecho@gmail.com>

* Address review comments

Signed-off-by: Aylei <rayingecho@gmail.com>

* fix typo

Signed-off-by: Aylei <rayingecho@gmail.com>

Co-authored-by: Yecheng Fu <cofyc.jackson@gmail.com>
Co-authored-by: Song Gao <disxiaofei@163.com>

Update deploy_tidb_operator_staging.groovy (pingcap#1740)

Co-authored-by: pingcap-github-bot <sre-bot@pingcap.com>

add stale github action to close stale issues/prs (pingcap#1743)

addd logs in stability test

add debug log

Update _start_pd.sh.tpl

Update main.go

add logs

Fix TidbMonitor template error (pingcap#1745)

* Fix TidbMonitor template error

support eks provider in e2e (pingcap#1728)

* support eks provider in e2e

* upgrade to use kubetest v0.0.3

* prefix image tag with CLUSTER, then multiple clusters can be started in
same project/account

* - upgrade kubetest2-eks to v0.0.4
- use unique node group name

* $RANDOM should be enough

* support KUBE_WORKERS

* fix mngName

* fix e2e bug

* specify runner suite name

* increase open files for containers automatically

* use kubetest2 v0.0.6

* --up-retries

* decrease concurrency because in each node we will start a lots of pod

Co-authored-by: Song Gao <disxiaofei@163.com>

Support AdvancedStatefulSet in admission webhook (pingcap#1640)

* Support AdvancedStatefulSet in admission webhook

Make TidbMonitor intergrated in AutoScaler (pingcap#1747)

add deploy yamls for dm with new ha architecture (pingcap#1738)

* add deploy yamls for dm with new ha architecture

* fix format

* address comments

* add configmap for dm-master

Allow to configure Affinity or Tolerations for Backups and Restores (pingcap#1737)

* Allow to configure Affinity or Tolerations for Backups and Restores

* Add affinity and tolerations options to Helm charts for backup and restore

* Update CRD's, affinity and tolerations for backup and restore

Co-authored-by: Song Gao <disxiaofei@163.com>

update actions/checkout to v2 (pingcap#1758)

Co-authored-by: Song Gao <disxiaofei@163.com>

Revise controller log and fix deployment template error (pingcap#1735)

* revise log and fix deployment template error

use /hack/e2e.sh to run a single node kind cluster for develop (pingcap#1749)

upgrade local volume provisioner to 2.3.4 (pingcap#1778)

https://github.com/kubernetes-sigs/sig-storage-local-static-provisioner/releases/tag/v2.3.4

make the drainer name configurable (pingcap#1604)

* make the drainer name configurable

This is used for the statefulset/pod names.

The release name is already unique, so I would actually suggest just using that
without the cluster name. However, that is a backwards incompatible
change that I hesitate to make.

* add a warning about updating the drainer name

Co-authored-by: Yecheng Fu <cofyc.jackson@gmail.com>
Co-authored-by: Song Gao <disxiaofei@163.com>

Added marketplace product code filter for bastion to avoid selecting AMI from wrong vendor (pingcap#1775)

tls: fix cluster TLS while using CR to create cluster (pingcap#1773)

binlog: add tls in pump and drainer (pingcap#1739)

use TidbCluster CRD to simplify the test and increase wait timeout (pingcap#1786)

release v1.1.0-beta.2 (pingcap#1768)

* release v1.1.0-beta.1

* update

* Update CHANGELOG-1.1.md

Co-Authored-By: weekface <weekface@gmail.com>

* Apply suggestions from code review

Co-Authored-By: Keke Yi <40977455+yikeke@users.noreply.github.com>

* enable tidbBackupManagerImage and use tagged version

Co-authored-by: weekface <weekface@gmail.com>
Co-authored-by: Keke Yi <40977455+yikeke@users.noreply.github.com>
Co-authored-by: Song Gao <disxiaofei@163.com>

terraform fmt (pingcap#1792)

Update tidb-backup-manager image name (pingcap#1791)

binglog: fix tls error when create pump with TLS when use CRD (pingcap#1799)

fix master ci (pingcap#1802)

add prefix for remote storage (pingcap#1790)

fix tikv cluster tls bug (pingcap#1808)

Manage hot region label for the tikv created by auto-scaler (pingcap#1801)

* Manage hot region label for the tikv created by auto-scaler

Co-authored-by: DanielZhangQD <36026334+DanielZhangQD@users.noreply.github.com>

Replace glog with klog (pingcap#1805) (pingcap#1813)

enable defaulting (pingcap#1816)

show cli flags in logs (pingcap#1807)

use k8s standard tls secret format (pingcap#1824)

* use standard tls secret format

* fix tls config in prometheus scrape config

Refactor Admission Webhook templates and values (pingcap#1832)

* Refactor Admission Webhook templates and values

Co-Authored-By: DanielZhangQD <36026334+DanielZhangQD@users.noreply.github.com>

Make evict leader scheduler compatitable  (pingcap#1831)

* fix evict leader

Co-authored-by: pingcap-github-bot <sre-bot@pingcap.com>

upgrade kubetest2 to v0.0.7 (pingcap#1839)

fix defaulting (pingcap#1845)

Default TidbMonitor targetRef Namespace (pingcap#1834)

current delete slot annotations check in Advanced Statefulset upgrader is not right (pingcap#1851)

add hack/local-up-operator.sh to run tidb-operator locally and test examples (pingcap#1854)

Support no secret for s3/ceph (pingcap#1817)

* Support no secret for s3/ceph

This is required if you use EKS ServiceAccount -> IAM role authentication via OIDC.

* Use the environment directly for AWS credentials for rclone

* Fixes to backup scripts

* Update backup image to `pingcap/tidb-cloud-backup:20200229`

Co-authored-by: DanielZhangQD <36026334+DanielZhangQD@users.noreply.github.com>
Co-authored-by: Tennix <tennix@users.noreply.github.com>

Backup/Restore: support configuring TiKV GC life time (pingcap#1835)

fix tidb defaulting (pingcap#1860)

Backup: support TLS for br component (pingcap#1836)

* backup: add TLS to backup br

support starting tidb-server with `-advertise-address` parameter (pingcap#1859)

* start tidb-server with

* add EnableAdvertiseAddress switch

* fix indent

* address comments

Fix hot region label setting for tikv auto-scaling (pingcap#1833)

* mutate

* fix log

* add admission configuration

* remove useless log

* format by comment

* use tikv cli

* remove useless code

* remove cmlister

* fix lint

* fix tpl

Change the lightning restore image (pingcap#1869)

Fix wrong method to get tikv configmap in mutation webhook (pingcap#1871)

tls: Enable TLS For MySQL Clients (pingcap#1867)

* Enable TLS For MySQL Clients

* address comments

Add timestamp annotation in tidbcluster statefulset (pingcap#1875)

* Add timestamp annotation in tidbcluster statefulset

fix drainer chart: unexpected define in command (pingcap#1873)

fix kubetest2 version check (pingcap#1881)

remove unnecessary setup (pingcap#1880)

Fix defaulting webhook error (pingcap#1876)

* fix defaulting

* remove config validation

* fix e2e test

* fix e2e test

feature:make Service port name configurable for tidb and pd service (pingcap#1823)

* feature:make Service port name configurable for tidb and pd service

* reset default port name

* reset default port name

* reset default port name

* recover pd service clusterIP

* comment pd and tidb service portName

* set pd and tidb port name value in yaml

* set pd and tidb port name value in yaml

Fix tikv configuration key in toml and add an ut case (pingcap#1887)

Fix nil error for update statefulset util (pingcap#1896)

guide on manual tests in development (pingcap#1882)

Co-authored-by: pingcap-github-bot <sre-bot@pingcap.com>

run e2e tests in gke (pingcap#1889)

fix operator failover config invalid (pingcap#1877)

use cert-manager to create and renew tidb-server certificates (self-signed example) (pingcap#1844)

* selfsigned tls cert created by cert-manager

* add tests

improve note and revise idc config (pingcap#1904)

Co-authored-by: pingcap-github-bot <sre-bot@pingcap.com>

Support IAM role for backup CRD (pingcap#1861)

tls: TLS between TiDB components (pingcap#1870)

add aws ami version link (pingcap#1903)

add tikv-importer chart (pingcap#1910)

* add tikv-importer chart

* resolved some suggestions

Co-authored-by: DanielZhangQD <36026334+DanielZhangQD@users.noreply.github.com>

fix prometheus scrape config issue while TLS is enabled (pingcap#1919)

* fix prometheus scrape config while tls is enabled

* fix chart problem

* fix chart problem

update eks e2e script and jenkins file (pingcap#1915)

backup: support kms decryption secret (pingcap#1908)

Support sync bucket in lightning (pingcap#1629)

* Support sync bucket in lightning

Signed-off-by: Aylei <rayingecho@gmail.com>

* fix nodeSelector is not respected in tidb-lightning chart

Signed-off-by: Aylei <rayingecho@gmail.com>

* Fix nodeSelector indention

Signed-off-by: Aylei <rayingecho@gmail.com>

Add API document and its generating util (pingcap#1929)

defaulting tikv container privileged field (pingcap#1933)

Backup: make tikv support add serviceaccount and switch rclone env_auth to true (pingcap#1930)

re comment pd service yaml value (pingcap#1850)

* re comment pd service yaml value

* fix

check tidb clusters which own builtin StatefulSets only in upgrading (pingcap#1934)

* Revert "current delete slot annotations check in Advanced Statefulset upgrader is not right (pingcap#1851)"

This reverts commit 596d10d.

* only check relevant tidb clusters

fix drainer installation error (pingcap#1961)

fix bug in e2e-examples script (pingcap#1957)

Adding tolerations and affinity to the discovery chart template (pingcap#1959)

update permission for tidb-controller-manager and add example for tidb-monitor (pingcap#1954)

* update permission for tidb-controller-manager and add example for tidb-monitor

* address comments

Fix some webhook error (pingcap#1963)

* fix webhook error

backup: fix kms bug (pingcap#1955)

backup: mask visual tables when dumper  (pingcap#1970)

add a serial test for stable scheduling (pingcap#1972)

make tidb-initializer support TLS (pingcap#1931)

some cleanups in e2e (pingcap#1974)

TLS support for Pump and Drainer (pingcap#1979)

Fix TidbMonitor several error (pingcap#1962)

* Fix TidbMonitor several error

lightning: support lightning use IAM (pingcap#1975)

configure default parameters via envs in Jenkins job (pingcap#1989)

fix clean bug (pingcap#1991)

Add doc and examples for auto-scaler and intializer (pingcap#1772)

* add doc and examples

* fix by lint

* revise the example

* revise init

* revise examples

* Update tidb-cluster.yaml

* revise by comment

* revise examples

* fix by lint

* address the comment

* Update examples/initialize/README.md

Co-Authored-By: DanielZhangQD <36026334+DanielZhangQD@users.noreply.github.com>

* Update examples/auto-scale/README.md

Co-Authored-By: DanielZhangQD <36026334+DanielZhangQD@users.noreply.github.com>

Co-authored-by: DanielZhangQD <36026334+DanielZhangQD@users.noreply.github.com>

backup: support br compatible with new TLS interface (pingcap#1988)

* backup: support br compatiable with new TLS interface

Mount google-cloud-sdk into e2e image (pingcap#1997)

add stability e2e group and a basic case (pingcap#1986)

Co-authored-by: Song Gao <disxiaofei@163.com>

Allocate tidb.initializer.resources to initcontainer in tidb initializer job (pingcap#1938)

Co-authored-by: DanielZhangQD <36026334+DanielZhangQD@users.noreply.github.com>
Co-authored-by: pingcap-github-bot <sre-bot@pingcap.com>

pin alicloud version to fix ci errors (pingcap#2006)

improve orphan pods clean logic (pingcap#2007)

- check pod has been scheduled or not
- use ResourceVersion precondition

fix args passing (pingcap#2010)

Update TiDB Config to v3.1.0 (pingcap#1906)

* update tidb config

Update PD Config to v3.1.0 (pingcap#1928)

* update pd config

create tidb cluster with cr on aws (pingcap#2004)

Backup: open mysql client TLS in backup (pingcap#2003)

create tidb cluster on ack with cr (pingcap#2012)

* create tidb cluster on ack with cr

* update variable name

* update variable name

* update default replicas

Add tikv store limit pattern (pingcap#1965)

* add tikv limit pattern

fix default value of separateSlowLog (pingcap#2023)

UCP: additionalPrinterColumns tidbautoscaler (pingcap#1943)

Limit Autofailure condition (pingcap#2015)

don't run on k8s-node if branch is a commit (pingcap#2032)

fix crd util (pingcap#2031)

remove dependencies on k8s-node (pingcap#2036)

* remove dependencies on k8s-node

* fix

examples for advanced statefulset (pingcap#2039)

Deploy TiDB Cluster with CR via TiDB Operator v1.1 on GKE (pingcap#2027)

install tidb-operator in test namespace in non-parallel test specs (pingcap#2029)

* install tidb-operator in test namespace in non-parallel test specs

* check tidb pods only

Able to configure custom env for components (pingcap#2052)

* Able to configure custom env for components

* codegen

Co-authored-by: DanielZhangQD <36026334+DanielZhangQD@users.noreply.github.com>

fix error

fix error

Update failover.go

fix failover pd

format

add spec.paused field to pause the syncing of tidb cluster (pingcap#2013)

Default Tidb Log File Configuration (pingcap#2045)

* default tidb file log config

Fix TidbMonitor Service Label (pingcap#2051)

* Fix TidbMonitor Service Label

Fix location label (pingcap#1941)

* Fix location label

Signed-off-by: Aylei <rayingecho@gmail.com>

* Fix api doc

Signed-off-by: Aylei <rayingecho@gmail.com>

* Separate struct used for crd and pd client

Signed-off-by: Aylei <rayingecho@gmail.com>

* Fix boilerplate

Signed-off-by: Aylei <rayingecho@gmail.com>

Co-authored-by: Song Gao <disxiaofei@163.com>
Co-authored-by: Yecheng Fu <fuyecheng@pingcap.com>
Co-authored-by: DanielZhangQD <36026334+DanielZhangQD@users.noreply.github.com>

backup: fix issue pingcap#2028 (pingcap#2062)

cert-allowed-cn support (pingcap#2061)

* cert-allowed-cn support

* cert-allowed-cn for drainer

* tiny fix

* fix ci

Co-authored-by: DanielZhangQD <36026334+DanielZhangQD@users.noreply.github.com>
Co-authored-by: pingcap-github-bot <sre-bot@pingcap.com>

remove enableAdvertiseAddress field, --advertise-address should be (pingcap#2076)

always configured

backup: fix issue 1657 (pingcap#2071)

use tidb-lightning in restore instead of loader (pingcap#2068)

* use tidb-lightning

* Update restore.go

* Update cmd/backup-manager/app/import/restore.go

Co-Authored-By: DanielZhangQD <36026334+DanielZhangQD@users.noreply.github.com>

* Update images/tidb-backup-manager/Dockerfile

Co-Authored-By: DanielZhangQD <36026334+DanielZhangQD@users.noreply.github.com>

Co-authored-by: DanielZhangQD <36026334+DanielZhangQD@users.noreply.github.com>
Co-authored-by: pingcap-github-bot <sre-bot@pingcap.com>

should not change relative order of envs (pingcap#2086)

release v1.1.0-rc.1 (pingcap#2072)

* release v1.1.0-rc.1

* address comments

* address comments

* address comments

BR e2e test in AWS (pingcap#2038)

readme, static: update doc links and image in readme (pingcap#2094)

* readme, static: update doc links and image in readme

* add description to documentation

Co-authored-by: DanielZhangQD <36026334+DanielZhangQD@users.noreply.github.com>

docs: remove unnecessary duplicated docs (pingcap#2098)

UCP pingcap#1753: add timeout config for query metrics from Prometheus (pingcap#2093)

Signed-off-by: Qiannan Lyu <lvqiannan@gmail.com>

Co-authored-by: DanielZhangQD <36026334+DanielZhangQD@users.noreply.github.com>

fix pd failover reocver

Update failover.go

fix begin insert Pod

Update failover.go

remove unnecessary change

remove code

add cluster2

fix check

update failover

fix stopNode

add cluster3

fix alertmanager (pingcap#2108)

check tidb cluster in owner references (pingcap#2112)

Update Doc util (pingcap#2115)

upgrade cert-manager to v0.14.1 in example tests (pingcap#2118)

Add unit test for Auto-scaling Util (pingcap#2111)

add a recovery test on node deletion for eks/gke (pingcap#2119)

Set PD Dashboard Config when TLS Client enabled (pingcap#2085)

support v<major>.<minor> format in KUBE_VERSION and add v1.18 support (pingcap#2126)

* support v<major>.<minor> format in KUBE_VERSION and add v1.18 support

* move hack::ensure_xxx after envs are printed

Co-authored-by: DanielZhangQD <36026334+DanielZhangQD@users.noreply.github.com>

kill tidb-operator pods randomly in e2e (pingcap#2125)

* kill tidb-operator pods randomly in e2e

* don't use channel in configuration struct

* add successful log

crd for tiflash (pingcap#2122)

* crd for tiflash

* generated files

* update defaulting for tiflash config

* address comments

* fix ci

* update crd

* update storage type definition

Make webhook tls configuration easy to use (pingcap#2135)

* Make webhook tls configuration easy to use

change tidb readness probe to TCPSocket 4000 port (pingcap#2139)

tls for tikv metircs api (pingcap#2137)

Remove unnecessary informer caches (pingcap#1504)

Add auto-scaling e2e test (pingcap#2123)

* add auto-scaling e2e

* fix interval error

* fix e2e process

* remove useless code

* Update tests/e2e/tidbcluster/serial.go

Co-Authored-By: Yecheng Fu <cofyc.jackson@gmail.com>

* address the comment

* Update tests/e2e/tidbcluster/serial.go

Co-Authored-By: DanielZhangQD <36026334+DanielZhangQD@users.noreply.github.com>

* address by comment

* add log

Co-authored-by: Yecheng Fu <cofyc.jackson@gmail.com>
Co-authored-by: DanielZhangQD <36026334+DanielZhangQD@users.noreply.github.com>

Add e2e test for upgrading from 1.0.x (pingcap#2145)

Add e2e test for upgrading from 1.0.x

fix terraform destroy failure on aws (pingcap#2148)

scripts to run e2e against OpenShift 4 (pingcap#2141)

fix e2e error

fix tag

recover

remove unnecessary change

add log for node stop

fix error

fix lint

security: tikv encryption kms config (pingcap#2151)

Skip TLS when connecting to TiDB Server (pingcap#2143)

deploy controller for tiflash (pingcap#2157)

add AGE column (pingcap#2168)

Add unit test for restore controller (pingcap#2166)

* add unit tests for restore controller

* tiny fix

* address comments

* fix CI

fix a typo (pingcap#2167)

Add more events for tidbcluster and autoscaler (pingcap#2150)

* add event for tidbcluster and auto-scaler

* fix unit test

* Update pkg/manager/member/upgrader.go

Co-Authored-By: DanielZhangQD <36026334+DanielZhangQD@users.noreply.github.com>

* revise scaling logic

* revise logic

* fix failover event

* remove upgrading event

* remove scaling event

* remove unnecessary event

* remove useless code

* revert changes

Co-authored-by: DanielZhangQD <36026334+DanielZhangQD@users.noreply.github.com>

Remove unused certificate control and related code. (pingcap#2176)

fix debug docker (pingcap#2187)

use fixed job names (pingcap#2188)

Add spec.pd.maxFailoverCount to limit max failover replicas for PD (pingcap#2184)

* Add spec.pd.maxFailoverCount to limit max failover replicas for PD

* update api generated files

remove error

add more log

fix openshift job (pingcap#2192)

Support Auto-scaling status (pingcap#2182)

* add tac status

* update

* fix status

* update rc

* revert replicas

* update notes

* add last ts

* address the comment

* use metav1.Time

Wait for the VM to be ready in CI (pingcap#2194)

* fix a typo

* wait for the vm to be ready

release v1.1.0-rc.2 (pingcap#2197)

* release v1.1.0-rc.2

* Update CHANGELOG-1.1.md

Co-Authored-By: Ran <huangran@pingcap.com>

* Apply suggestions from code review

Co-Authored-By: Ran <huangran@pingcap.com>

* update

Co-authored-by: Ran <huangran@pingcap.com>

update-version (pingcap#2204)

tmp skip

revert skip

fix br log issue and include both 3.1 and 4.0 br in the tidb-backup-manager image (pingcap#2213)

easier to build and push to other docker image repo (pingcap#2207)

install python for gcloud (pingcap#2206)

fix tidb-debug docker build (pingcap#2215)

delete pd data
  • Loading branch information
Song Gao committed Apr 17, 2020
1 parent 8dbb9b5 commit 1614a76
Show file tree
Hide file tree
Showing 374 changed files with 40,069 additions and 5,327 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: ci

on:
pull_request:
branches:
- master
- release-*

jobs:

pull:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
job:
- verify
- build
- test
- e2e-examples
steps:
- name: Set up Go 1.13
uses: actions/setup-go@v1
with:
go-version: 1.13
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
path: go/src/github.com/${{ github.repository }}

- name: ${{ matrix.job }}
run: |
# workaround for https://github.com/actions/setup-go/issues/14
export GOPATH=${GITHUB_WORKSPACE}/go
export PATH=$PATH:$GOPATH/bin
if [[ "$job" == "verify" ]]; then
make check-setup check
elif [[ "$job" == "build" ]]; then
make docker e2e-docker cli debug-build-docker
elif [[ "$job" == "test" ]]; then
make test GOFLAGS=-race
else
make $job
fi
working-directory: ${{ github.workspace }}/go/src/github.com/${{ github.repository }}
env:
job: ${{ matrix.job }}
20 changes: 20 additions & 0 deletions .github/workflows/stale.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: "Close stale issues/prs"
on:
schedule:
- cron: "0 0 * * *"

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v1.1.0
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 15 days'
stale-pr-message: 'This pr is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 15 days'
days-before-stale: 60
days-before-close: 15
stale-issue-label: 'lifecycle/stale'
stale-pr-label: 'lifecycle/stale'
exempt-issue-label: 'lifecycle/frozen'
exempt-pr-label: 'lifecycle/frozen'
6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,7 @@ kubeconfig

# local output directory
/output/
# local artifacts directory
/artifacts/
# kubetest2 default artifacts directory
/_artifacts/

.DS_Store
115 changes: 113 additions & 2 deletions CHANGELOG-1.1.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,121 @@
# TiDB Operator v1.1.0-rc.2 Release Notes

This is the second release candidate of `v1.1.0`, which focuses on the usability, extensibility and security of TiDB Operator. While we encourage usage in non-critical environments, it is **NOT** recommended to use this version in critical environments.

## Notable Changes

- Add `status` field for `TidbAutoScaler` CR ([#2182](https://github.com/pingcap/tidb-operator/pull/2182), [@Yisaer](https://github.com/Yisaer))
- Add `spec.pd.maxFailoverCount` field to limit max failover replicas for PD ([#2184](https://github.com/pingcap/tidb-operator/pull/2184), [@cofyc](https://github.com/cofyc))
- Emit more events for `TidbCluster` and `TidbClusterAutoScaler` to help users know TiDB running status ([#2150](https://github.com/pingcap/tidb-operator/pull/2150), [@Yisaer](https://github.com/Yisaer))
- Add the `AGE` column to show creation timestamp for all CRDs ([#2168](https://github.com/pingcap/tidb-operator/pull/2168), [@cofyc](https://github.com/cofyc))
- Add a switch to skip PD Dashboard TLS configuration ([#2143](https://github.com/pingcap/tidb-operator/pull/2143), [@weekface](https://github.com/weekface))
- Change TiDB pod `readiness` probe from `HTTPGet` to `TCPSocket` 4000 port ([#2139](https://github.com/pingcap/tidb-operator/pull/2139), [@weekface](https://github.com/weekface))
- Support deploying TiFlash with TidbCluster CR ([#2157](https://github.com/pingcap/tidb-operator/pull/2157), [@DanielZhangQD](https://github.com/DanielZhangQD))
- Add TLS support for TiKV metrics API ([#2137](https://github.com/pingcap/tidb-operator/pull/2137), [@weekface](https://github.com/weekface))
- Set PD DashboardConfig when TLS between the MySQL client and TiDB server is enabled ([#2085](https://github.com/pingcap/tidb-operator/pull/2085), [@weekface](https://github.com/weekface))
- Remove unnecessary informer caches to reduce the memory footprint of tidb-controller-manager ([#1504](https://github.com/pingcap/tidb-operator/pull/1504), [@aylei](https://github.com/aylei))
- Fix the failure that Helm cannot load the kubeconfig file when deleting the tidb-operator release during `terraform destroy` ([#2148](https://github.com/pingcap/tidb-operator/pull/2148), [@DanielZhangQD](https://github.com/DanielZhangQD))
- Support configuring the Webhook TLS setting by loading a secret ([#2135](https://github.com/pingcap/tidb-operator/pull/2135), [@Yisaer](https://github.com/Yisaer))
- Support TiFlash in TidbCluster CR ([#2122](https://github.com/pingcap/tidb-operator/pull/2122), [@DanielZhangQD](https://github.com/DanielZhangQD))
- Fix the error that alertmanager couldn't be set in `TidbMonitor` ([#2108](https://github.com/pingcap/tidb-operator/pull/2108), [@Yisaer](https://github.com/Yisaer))


# TiDB Operator v1.1.0-rc.1 Release Notes

This is a release candidate of `v1.1.0`, which focuses on the usability, extensibility and security of TiDB Operator. While we encourage usage in non-critical environments, it is **NOT** recommended to use this version in critical environments.

## Action Required

- `--advertise-address` will be configured for `tidb-server`, which would trigger rolling-upgrade for the `tidb-server` component. You can set `spec.paused` to `true` before upgrading tidb-operator to avoid the rolling upgrade, and set it back to `false` when you are ready to upgrade your tidb server ([#2076](https://github.com/pingcap/tidb-operator/pull/2076), [@cofyc](https://github.com/cofyc))
- Add the `tlsClient.tlsSecret` field in the backup and restore spec, which supports specifying a secret name that includes the cert ([#2003](https://github.com/pingcap/tidb-operator/pull/2003), [@shuijing198799](https://github.com/shuijing198799))


## Other Notable Changes

- Use `tidb-lightning` in `Restore` instead of `loader` ([#2068](https://github.com/pingcap/tidb-operator/pull/2068), [@Yisaer](https://github.com/Yisaer))
- Add `cert-allowed-cn` support to TiDB components ([#2061](https://github.com/pingcap/tidb-operator/pull/2061), [@weekface](https://github.com/weekface))
- Fix the PD `location-labels` configuration ([#1941](https://github.com/pingcap/tidb-operator/pull/1941), [@aylei](https://github.com/aylei))
- Able to pause and unpause tidb cluster deployment via `spec.paused` ([#2013](https://github.com/pingcap/tidb-operator/pull/2013), [@cofyc](https://github.com/cofyc))
- Default the `max-backups` for TiDB server configuration to `3` if the TiDB cluster is deployed by CR ([#2045](https://github.com/pingcap/tidb-operator/pull/2045), [@Yisaer](https://github.com/Yisaer))
- Able to configure custom environments for components ([#2052](https://github.com/pingcap/tidb-operator/pull/2052), [@cofyc](https://github.com/cofyc))
- Fix the error that `kubectl get tc` cannot show correct images ([#2031](https://github.com/pingcap/tidb-operator/pull/2031), [@Yisaer](https://github.com/Yisaer))
- 1. Default the `spec.tikv.maxFailoverCount` and `spec.tidb.maxFailoverCount` to `3` when they are not defined
2. Disable auto-failover when `maxFailoverCount` is set to `0` ([#2015](https://github.com/pingcap/tidb-operator/pull/2015), [@Yisaer](https://github.com/Yisaer))
- Support deploying TiDB clusters with TidbCluster and TidbMonitor CRs via Terraform on ACK ([#2012](https://github.com/pingcap/tidb-operator/pull/2012), [@DanielZhangQD](https://github.com/DanielZhangQD))
- Update PDConfig for TidbCluster to PD v3.1.0 ([#1928](https://github.com/pingcap/tidb-operator/pull/1928), [@Yisaer](https://github.com/Yisaer))
- Support deploying TiDB clusters with TidbCluster and TidbMonitor CRs via Terraform on AWS ([#2004](https://github.com/pingcap/tidb-operator/pull/2004), [@DanielZhangQD](https://github.com/DanielZhangQD))
- Update TidbConfig for TidbCluster to TiDB v3.1.0 ([#1906](https://github.com/pingcap/tidb-operator/pull/1906), [@Yisaer](https://github.com/Yisaer))
- Allow users to define resources for initContainers in TiDB initializer job ([#1938](https://github.com/pingcap/tidb-operator/pull/1938), [@tfulcrand](https://github.com/tfulcrand))
- Add TLS support for Pump and Drainer ([#1979](https://github.com/pingcap/tidb-operator/pull/1979), [@weekface](https://github.com/weekface))
- Add documents and examples for auto-scaler and initializer ([#1772](https://github.com/pingcap/tidb-operator/pull/1772), [@Yisaer](https://github.com/Yisaer))
- 1. Add check to guarantee the NodePort won't be changed if the serviceType of TidbMonitor is NodePort
2. Add EnvVar sort to avoid the monitor rendering different results from the same TidbMonitor spec
3. Fix the problem that the TidbMonitor LoadBalancer IP is not used ([#1962](https://github.com/pingcap/tidb-operator/pull/1962), [@Yisaer](https://github.com/Yisaer))
- Make tidb-initializer support TLS ([#1931](https://github.com/pingcap/tidb-operator/pull/1931), [@weekface](https://github.com/weekface))
- 1. Fix the problem that Advanced StatefulSet cannot work with webhook
2. Change the Reaction for the Down State TiKV pod during deleting request in webhook from admit to reject ([#1963](https://github.com/pingcap/tidb-operator/pull/1963), [@Yisaer](https://github.com/Yisaer))
- Fix the drainer installation error when `drainerName` is set ([#1961](https://github.com/pingcap/tidb-operator/pull/1961), [@DanielZhangQD](https://github.com/DanielZhangQD))
- Fix some TiKV configuration keys in toml ([#1887](https://github.com/pingcap/tidb-operator/pull/1887), [@aylei](https://github.com/aylei))
- Support using a remote directory as data source for tidb-lightning ([#1629](https://github.com/pingcap/tidb-operator/pull/1629), [@aylei](https://github.com/aylei))
- Add the API document and a script that generates documentation ([#1945](https://github.com/pingcap/tidb-operator/pull/1945), [@Yisaer](https://github.com/Yisaer))
- Add the tikv-importer chart ([#1910](https://github.com/pingcap/tidb-operator/pull/1910), [@shonge](https://github.com/shonge))
- Fix the Prometheus scrape config issue while TLS is enabled ([#1919](https://github.com/pingcap/tidb-operator/pull/1919), [@weekface](https://github.com/weekface))
- Enable TLS between TiDB components ([#1870](https://github.com/pingcap/tidb-operator/pull/1870), [@weekface](https://github.com/weekface))
- Fix the timeout error when `.Values.admission.validation.pods` is `true` during the TiKV upgrade ([#1875](https://github.com/pingcap/tidb-operator/pull/1875), [@Yisaer](https://github.com/Yisaer))
- Enable TLS for MySQL clients ([#1878](https://github.com/pingcap/tidb-operator/pull/1878), [@weekface](https://github.com/weekface))
- Fix the bug which would cause broken TiDB image property ([#1860](https://github.com/pingcap/tidb-operator/pull/1860), [@Yisaer](https://github.com/Yisaer))
- TidbMonitor would use its namespace for the targetRef if it is not defined ([#1834](https://github.com/pingcap/tidb-operator/pull/1834), [@Yisaer](https://github.com/Yisaer))
- Support starting tidb-server with `--advertise-address` parameter ([#1859](https://github.com/pingcap/tidb-operator/pull/1859), [@LinuxGit](https://github.com/LinuxGit))
- Backup/Restore: support configuring TiKV GC life time ([#1835](https://github.com/pingcap/tidb-operator/pull/1835), [@LinuxGit](https://github.com/LinuxGit))
- Support no secret for S3/Ceph when the OIDC authentication is used ([#1817](https://github.com/pingcap/tidb-operator/pull/1817), [@tirsen](https://github.com/tirsen))
- 1. Change the setting from the previous `admission.hookEnabled.pods` to the `admission.validation.pods`
2. Change the setting from the previous `admission.hookEnabled.statefulSets` to the `admission.validation.statefulSets`
3. Change the setting from the previous `admission.hookEnabled.validating` to the `admission.validation.pingcapResources`
4. Change the setting from the previous `admission.hookEnabled.defaulting` to the `admission.mutation.pingcapResources`
5. Change the setting from the previous `admission.failurePolicy.defaulting` to the `admission.failurePolicy.mutation`
6. Change the setting from the previous `admission.failurePolicy.*` to the `admission.failurePolicy.validation` ([#1832](https://github.com/pingcap/tidb-operator/pull/1832), [@Yisaer](https://github.com/Yisaer))
- Enable TidbCluster defaulting mutation by default which is recommended when admission webhook is used ([#1816](https://github.com/pingcap/tidb-operator/pull/1816), [@Yisaer](https://github.com/Yisaer))
- Fix a bug that TiKV fails to start while creating the cluster using CR with cluster TLS enabled ([#1808](https://github.com/pingcap/tidb-operator/pull/1808), [@weekface](https://github.com/weekface))
- Support using prefix in remote storage during backup/restore ([#1790](https://github.com/pingcap/tidb-operator/pull/1790), [@DanielZhangQD](https://github.com/DanielZhangQD))


# TiDB Operator v1.1.0-beta.2 Release Notes

This is a pre-release of `v1.1.0`, which focuses on the usability, extensibility and security of TiDB Operator. While we encourage usage in non-critical environments, it is **NOT** recommended to use this version in critical environments.

## Changes since v1.1.0-beta.1

## Action Required

- `--default-storage-class-name` and `--default-backup-storage-class-name `are abandoned, and the storage class defaults to Kubernetes default storage class right now. If you have set default storage class different than Kubernetes default storage class, please set them explicitly in your TiDB cluster helm or YAML files. ([#1581](https://github.com/pingcap/tidb-operator/pull/1581), [@cofyc](https://github.com/cofyc))


## Other Notable Changes

- Allow users to configure affinity and tolerations for `Backup` and `Restore`. ([#1737](https://github.com/pingcap/tidb-operator/pull/1737), [@Smana](https://github.com/Smana))
- Allow AdvancedStatefulSet and Admission Webhook to work together. ([#1640](https://github.com/pingcap/tidb-operator/pull/1640), [@Yisaer](https://github.com/Yisaer))
- Add a basic deployment example of managing TiDB cluster with custom resources only. ([#1573](https://github.com/pingcap/tidb-operator/pull/1573), [@aylei](https://github.com/aylei))
- Support TidbCluster Auto-scaling feature based on CPU average utilization load. ([#1731](https://github.com/pingcap/tidb-operator/pull/1731), [@Yisaer](https://github.com/Yisaer))
- Support user-defined TiDB server/client certificate ([#1714](https://github.com/pingcap/tidb-operator/pull/1714), [@weekface](https://github.com/weekface))
- Add an option for tidb-backup chart to allow reusing existing PVC or not for restore ([#1708](https://github.com/pingcap/tidb-operator/pull/1708), [@mightyguava](https://github.com/mightyguava))
- Add `resources`, `imagePullPolicy` and `nodeSelector` field for tidb-backup chart ([#1705](https://github.com/pingcap/tidb-operator/pull/1705), [@mightyguava](https://github.com/mightyguava))
- Add more SANs (Subject Alternative Name) to TiDB server certificate ([#1702](https://github.com/pingcap/tidb-operator/pull/1702), [@weekface](https://github.com/weekface))
- Support automatically migrating existing Kubernetes StatefulSets to Advanced StatefulSets when AdvancedStatfulSet feature is enabled ([#1580](https://github.com/pingcap/tidb-operator/pull/1580), [@cofyc](https://github.com/cofyc))
- Fix the bug in admission webhook which causes PD pod deleting error and allow the deleting pod to request for PD and TiKV when PVC is not found. ([#1568](https://github.com/pingcap/tidb-operator/pull/1568), [@Yisaer](https://github.com/Yisaer))
- Limit the restart rate for PD and TiKV - only one instance would be restarted each time ([#1532](https://github.com/pingcap/tidb-operator/pull/1532), [@Yisaer](https://github.com/Yisaer))
- Add default ClusterRef namespace for TidbMonitor as the same as it is deployed and fix the bug that TidbMonitor's Pod can't be created when Spec.PrometheusSpec.logLevel is missing. ([#1500](https://github.com/pingcap/tidb-operator/pull/1500), [@Yisaer](https://github.com/Yisaer))
- Refine logs for `TidbMonitor` and `TidbInitializer` controller ([#1493](https://github.com/pingcap/tidb-operator/pull/1493), [@aylei](https://github.com/aylei))
- Avoid unnecessary updates to `Service` and `Deployment` of discovery ([#1499](https://github.com/pingcap/tidb-operator/pull/1499), [@aylei](https://github.com/aylei))
- Remove some update events that are not very useful ([#1486](https://github.com/pingcap/tidb-operator/pull/1486), [@weekface](https://github.com/weekface))


# TiDB Operator v1.1.0-beta.1 Release Notes

This is a pre-release of `v1.1.0`, which focuses on the usability, extensibility and security of TiDB Operator. While we encourage usage in non-critical environments, it is **NOT** recommended to use this version in critical environments.

## Changes since v1.0.0

### Action required
### Action Required

- ACTION REQUIRED: Add the `timezone` support for [all charts](https://github.com/pingcap/tidb-operator/tree/master/charts) ([#1122](https://github.com/pingcap/tidb-operator/pull/1122), [@weekface](https://github.com/weekface)).

Expand All @@ -17,7 +128,7 @@ This is a pre-release of `v1.1.0`, which focuses on the usability, extensibility

All images' time zone maintained by `tidb-operator` is `UTC`. If you use your own images, you need to make sure that the time zone inside your images is `UTC`.

### Other notable changes
### Other Notable Changes

- Support backup to S3 with [Backup & Restore (BR)](https://github.com/pingcap/br) ([#1280](https://github.com/pingcap/tidb-operator/pull/1280), [@DanielZhangQD](https://github.com/DanielZhangQD))
- Add basic defaulting and validating for `TidbCluster` ([#1429](https://github.com/pingcap/tidb-operator/pull/1429), [@aylei](https://github.com/aylei))
Expand Down
Loading

0 comments on commit 1614a76

Please sign in to comment.