github.com/1aal/kubeblocks@v0.0.0-20231107070852-e1c03e598921/docs/release_notes/v0.2.0/v0.2.0.md (about) 1 --- 2 sidebar_label: v0.2.0 3 --- 4 5 # KubeBlocks 0.2.0 (2022-12-30) 6 7 We're happy to announce the release of KubeBlocks 0.2.0! 🚀 🎉 🎈 8 9 We would like to extend our thanks to all the new and existing contributors who helped make this release happen. 10 11 **Highlights** 12 13 * Support EXPERIMENTAL clickhouse, etcd and mongodb 14 * Automatic pod container environment variables: 15 * KB_POD_NAME - Pod Name 16 * KB_NAMESPACE - Namespace 17 * KB_SA_NAME - Service Account Name 18 * KB_NODENAME - Node Name 19 * KB_HOSTIP - Host IP address 20 * KB_PODIP - Pod IP address 21 * KB_PODIPS - Pod IP addresses 22 * KB_CLUSTER_NAME - KubeBlocks Cluster API object name 23 * KB_COMP_NAME - Running pod's KubeBlocks Cluster API object's `.spec.components.name` 24 * KB_CLUSTER_COMP_NAME - Running pod's KubeBlocks Cluster API object's `<.metadata.name>-<.spec.components.name>`, same name is used for Deployment or StatefulSet workload name, and Service object name 25 * ClusterDefinition API support following automatic variable names: 26 * under `.spec.connectionCredential`: 27 * random 8 characters `$(RANDOM_PASSWD)` placeholder, 28 * self reference map object `$(CONN_CREDENTIAL)[.<map key>])` 29 * example usage: 30 31 ```yaml 32 spec: 33 connectionCredential: 34 username: "admin-password" 35 password: "$(RANDOM_PASSWD)" 36 "$(CONN_CREDENTIAL).username": "$(CONN_CREDENTIAL).password" 37 38 # output: 39 spec: 40 connectionCredential: 41 username: "admin-password" 42 password: "<some random 8 characters password>" 43 "admin-password": "<value of above password>" 44 ``` 45 46 * Connection credential secret name place holder `$(CONN_CREDENTIAL_SECRET_NAME)` 47 * CLI support `list-logs-type` and `logs` command to access cluster logs 48 * CLI support to list ops 49 50 If you're new to KubeBlocks, visit the [getting started](https://kubeblocks.io) page and 51 familiarize yourself with KubeBlocks. 52 53 ## Acknowledgements 54 55 Thanks to everyone who made this release possible! 56 57 @ahjing99, @dengshaojiang, @free6om, @heng4fun, @iziang, @JashBook, @ldming, @michelle-0808, @nashtsai, @TalktoCrystal, @wangyelei, @xuriwuyun, @yangmeilly, @yimeisun, @ZhaoDiankui 58 59 ## What's Changed 60 61 ### New Features 62 - support probe ([#234](https://github.com/apecloud/kubeblocks/pull/234), @xuriwuyun) 63 - support BestEffortLocal traffic policy ([#440](https://github.com/apecloud/kubeblocks/pull/440), @iziang) 64 - support cluster list-logs-type and logs cmd to access cluster logs ([#445](https://github.com/apecloud/kubeblocks/pull/445), @yangmeilly) 65 - using listen/watch instead of timing reconcile in ClusterController and OpsRequestController ([#459](https://github.com/apecloud/kubeblocks/pull/459), @wangyelei) 66 - probe improvement ([#465](https://github.com/apecloud/kubeblocks/pull/465), @xuriwuyun) 67 - have service and endpoint controller with concurrent reconciling ([#479](https://github.com/apecloud/kubeblocks/pull/479), @iziang) 68 - add label selector filter for service ([#508](https://github.com/apecloud/kubeblocks/pull/508), @iziang) 69 - upgrade kubeblocks wesql version to 8.0.30 ([#531](https://github.com/apecloud/kubeblocks/pull/531), @ZhaoDiankui) 70 - set cluster default termination policy to delete ([#535](https://github.com/apecloud/kubeblocks/pull/535), @ldming) 71 - support ops command with list/delete ([#549](https://github.com/apecloud/kubeblocks/pull/549), @wangyelei) 72 - upgrade grafana version ([#562](https://github.com/apecloud/kubeblocks/pull/562), @JashBook) 73 - rename dbctl dbaas subcommand to kubeblocks ([#601](https://github.com/apecloud/kubeblocks/pull/601), @ldming) 74 - make test in minikube ([#640](https://github.com/apecloud/kubeblocks/pull/640), @JashBook) 75 - dbctl cluster list enhancement ([#675](https://github.com/apecloud/kubeblocks/pull/675), @ldming) 76 - running&status probe support ([#695](https://github.com/apecloud/kubeblocks/pull/695), @xuriwuyun) 77 - clickhouse provider ([#708](https://github.com/apecloud/kubeblocks/pull/708), @nashtsai) 78 - rename dbctl to kbcli ([#729](https://github.com/apecloud/kubeblocks/pull/729), @ldming) 79 - cli support table printer and refactor layout, rename phase to status ([#732](https://github.com/apecloud/kubeblocks/pull/732), @ldming) 80 - create cluster require to specify cluster definition and version, auto-completion resource name ([#741](https://github.com/apecloud/kubeblocks/pull/741), @ldming) 81 - etcd & mongodb provider ([#764](https://github.com/apecloud/kubeblocks/pull/764), @free6om) 82 83 ### Bug Fixes 84 - dev container start failed when without minikube ([#471](https://github.com/apecloud/kubeblocks/pull/471), @heng4fun) 85 - remove helm login ([#487](https://github.com/apecloud/kubeblocks/pull/487), @ldming) 86 - only push tag trigger release ([#490](https://github.com/apecloud/kubeblocks/pull/490), @ldming) 87 - only start node manager on leader ([#503](https://github.com/apecloud/kubeblocks/pull/503), @iziang) 88 - delete pods when previous pods ready ([#540](https://github.com/apecloud/kubeblocks/pull/540), @free6om) 89 - describe error when cluster is updating ([#548](https://github.com/apecloud/kubeblocks/pull/548), @ldming) 90 - kubeblocks default version of wesql is 8.0.30 ([#553](https://github.com/apecloud/kubeblocks/pull/553), @ZhaoDiankui) 91 - update helm repo if exists to avoid install failure ([#565](https://github.com/apecloud/kubeblocks/pull/565), @ldming) 92 - cluster phase is incorrect when vertical scaling cluster and can not delete opsRequest when phase is Running ([#574](https://github.com/apecloud/kubeblocks/pull/574), @wangyelei) 93 - ops request deletion failed in succeed status and create cluster required terminationPolicy ([#581](https://github.com/apecloud/kubeblocks/pull/581), @wangyelei) 94 - when set AllowVolumeExpansion to true in EBS storageClass, the created cluster still does not support volume expansion ([#587](https://github.com/apecloud/kubeblocks/pull/587), @wangyelei) 95 - create cluster require to specify the termination policy ([#596](https://github.com/apecloud/kubeblocks/pull/596), @ldming) 96 - support CheckErr to handle unexpected error ([#613](https://github.com/apecloud/kubeblocks/pull/613), @ldming) 97 - patch annotation instead of delete event ([#644](https://github.com/apecloud/kubeblocks/pull/644), @free6om) 98 - the ops cannot be deleted and webhook message is incorrect ([#677](https://github.com/apecloud/kubeblocks/pull/677), @wangyelei) 99 - fix describe format and support to display default storage class ([#698](https://github.com/apecloud/kubeblocks/pull/698), @ldming) 100 - event_controller unit test failed ([#701](https://github.com/apecloud/kubeblocks/pull/701), @free6om) 101 - panic when handling role changed event ([#711](https://github.com/apecloud/kubeblocks/pull/711), @free6om) 102 - when the cluster executed patch resources requests > limits, cluster is unavailable ([#731](https://github.com/apecloud/kubeblocks/pull/731), @wangyelei) 103 - for cluster status updating ([#761](https://github.com/apecloud/kubeblocks/pull/761), @xuriwuyun) 104 - update cluster controller tests for role changed event processing ([#779](https://github.com/apecloud/kubeblocks/pull/779), @xuriwuyun) 105 - update probe rolecheck timeout ([#796](https://github.com/apecloud/kubeblocks/pull/796), @xuriwuyun) 106 - update role abserve ([#830](https://github.com/apecloud/kubeblocks/pull/830), @xuriwuyun) 107 - role probe timeout problem #842 ([#863](https://github.com/apecloud/kubeblocks/pull/863), @xuriwuyun) 108 109 ### Miscellaneous 110 - fix intermittent error when make test ([#272](https://github.com/apecloud/kubeblocks/pull/272), @wangyelei) 111 - fix #278 rename wesql appversion.name, fix #279 rename wesql cd.name ([#300](https://github.com/apecloud/kubeblocks/pull/300), @ZhaoDiankui) 112 - rename wesql appversion.name, fix #279 ([#304](https://github.com/apecloud/kubeblocks/pull/304), @ZhaoDiankui) 113 - Support/consensus associated test cases ([#414](https://github.com/apecloud/kubeblocks/pull/414), @free6om) 114 - cli support generic delete logic ([#454](https://github.com/apecloud/kubeblocks/pull/454), @ldming) 115 - upgrade gh api ([#469](https://github.com/apecloud/kubeblocks/pull/469), @JashBook) 116 - add concurrent reconciles for dataprotection ([#472](https://github.com/apecloud/kubeblocks/pull/472), @dengshaojiang) 117 - support to generate release notes ([#473](https://github.com/apecloud/kubeblocks/pull/473), @ldming) 118 - CI add tag to stale issues ([#484](https://github.com/apecloud/kubeblocks/pull/484), @ahjing99) 119 - rename main helm chart directory to helm ([#512](https://github.com/apecloud/kubeblocks/pull/512), @yimeisun) 120 - optimize output after dbaas install ([#515](https://github.com/apecloud/kubeblocks/pull/515), @yimeisun) 121 - probe improvement ([#518](https://github.com/apecloud/kubeblocks/pull/518), @xuriwuyun) 122 - consensus role label update ([#522](https://github.com/apecloud/kubeblocks/pull/522), @free6om) 123 - check PR title ([#529](https://github.com/apecloud/kubeblocks/pull/529), @JashBook) 124 - speed up dbctl cluster list ([#542](https://github.com/apecloud/kubeblocks/pull/542), @ldming) 125 - add user docs ([#554](https://github.com/apecloud/kubeblocks/pull/554), @TalktoCrystal) 126 - Create user_doc.yml ([#560](https://github.com/apecloud/kubeblocks/pull/560), @ahjing99) 127 - change check branch name location ([#571](https://github.com/apecloud/kubeblocks/pull/571), @JashBook) 128 - enable WeSQL role changed probe ([#576](https://github.com/apecloud/kubeblocks/pull/576), @ldming) 129 - update WeSQL helm version ([#579](https://github.com/apecloud/kubeblocks/pull/579), @ldming) 130 - add-user-docs ([#604](https://github.com/apecloud/kubeblocks/pull/604), @michelle-0808) 131 - have no ST1006 (Poorly chosen receiver name) staticcheck removed ([#614](https://github.com/apecloud/kubeblocks/pull/614), @nashtsai) 132 - follow staticcheck ST1003 ([#616](https://github.com/apecloud/kubeblocks/pull/616), @iziang) 133 - update old wesql image ([#648](https://github.com/apecloud/kubeblocks/pull/648), @ldming) 134 - wesql cluster helm chart is back ([#673](https://github.com/apecloud/kubeblocks/pull/673), @ldming) 135 - upgrade wesql version ([#717](https://github.com/apecloud/kubeblocks/pull/717), @JashBook) 136 - add test case for dbctl and fix playground guide ([#718](https://github.com/apecloud/kubeblocks/pull/718), @ldming) 137 - adjust ci checkout ([#760](https://github.com/apecloud/kubeblocks/pull/760), @JashBook) 138 - update wesql chart version to 0.1.5 ([#767](https://github.com/apecloud/kubeblocks/pull/767), @ldming) 139 - fix ci install setup-envtest fail ([#778](https://github.com/apecloud/kubeblocks/pull/778), @JashBook) 140 - fix misspelling of words ([#818](https://github.com/apecloud/kubeblocks/pull/818), @JashBook) 141 - adjust the note that contains the subject ([#822](https://github.com/apecloud/kubeblocks/pull/822), @JashBook) 142 - add helm install/validate before uploading ([#825](https://github.com/apecloud/kubeblocks/pull/825), @JashBook) 143 144 ## Breaking Changes 145 146 None.