From 08074cc8c70f67366bdff16aff234dba177dc415 Mon Sep 17 00:00:00 2001 From: hellertang Date: Tue, 1 Nov 2022 16:01:43 +0800 Subject: [PATCH] add changelog --- CHANGELOG.md | 197 ++++++++++++++++++++++++++++++++++ GNUmakefile | 4 +- scripts/draft-changelog.sh | 89 --------------- scripts/generate-changelog.sh | 4 +- scripts/release-note.tmpl | 11 ++ 5 files changed, 213 insertions(+), 92 deletions(-) delete mode 100755 scripts/draft-changelog.sh create mode 100644 scripts/release-note.tmpl diff --git a/CHANGELOG.md b/CHANGELOG.md index bd939135b4..8fffde106e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,200 @@ +## 1.78.6 (October 27, 2022) + +FEATURES: + +* **New Resource:** `tencentcloud_sts_caller_identity` ([#1340](https://github.com/tencentcloudstack/terraform-provider-tencentcloud/pull/1340)) + +ENHANCEMENTS: + +* provider: Specify req client header with -ldflag ([#1318](https://github.com/tencentcloudstack/terraform-provider-tencentcloud/pull/1318)) + +## 1.78.6 (October 27, 2022) + +FEATURES: + +* **New Resource:** `tencentcloud_tcm_mesh` ([#1328](https://github.com/tencentcloudstack/terraform-provider-tencentcloud/pull/1328)) +* **New Resource:** `tencentcloud_tcm_cluster_attachment` ([#1328](https://github.com/tencentcloudstack/terraform-provider-tencentcloud/pull/1328)) + +ENHANCEMENTS: + +* resource/tencentcloud_cdn_domain: support PostMaxSize Params. ([#1329](https://github.com/tencentcloudstack/terraform-provider-tencentcloud/pull/1329)) +* resource/tencentcloud_kubernetes_node_pool: Support tag specifications ([#1317](https://github.com/tencentcloudstack/terraform-provider-tencentcloud/pull/1317)) +* resource/tencentcloud_monitor_tmp_exporter_integration: support cluster initialization ([#1320](https://github.com/tencentcloudstack/terraform-provider-tencentcloud/pull/1320)) +* resource/tencentcloud_redis_instance: support update `security_groups` ([#1336](https://github.com/tencentcloudstack/terraform-provider-tencentcloud/pull/1336)) +* resource/tencentcloud_security_group_lite_rule: support protocol template creating/updating ([#1315](https://github.com/tencentcloudstack/terraform-provider-tencentcloud/pull/1315)) + +BUG FIXES: + +* data-source/tencentcloud_security_groups: support protocol template readings ([#1315](https://github.com/tencentcloudstack/terraform-provider-tencentcloud/pull/1315)) +* resource/tencentcloud_cdn_domain: Fix testing domain verification failed. ([#1329](https://github.com/tencentcloudstack/terraform-provider-tencentcloud/pull/1329)) +* resource/tencentcloud_kubernetes_node_pool: adjust `security_group_ids` type to unordered ([#1321](https://github.com/tencentcloudstack/terraform-provider-tencentcloud/pull/1321)) +* resource/tencentcloud_teo_zone: change tag description from zoneName to zoneId ([#1326](https://github.com/tencentcloudstack/terraform-provider-tencentcloud/pull/1326)) + +## 1.78.5 (October 17, 2022) + +COMMON: +* support env `PROVIDER_ASSUME_ROLE_SESSION_DURATION` + +ENHANCEMENTS: +* resource `tencentcloud_ckafka_instance` support tag change +* resource `tencentcloud_gaap_layer4_listener` support read proxy_id +* resource `tencentcloud_gaap_layer7_listener` support read proxy_id +* resource `tencentcloud_vpn_gateway` support change prepaid_renew_flag +* data source `tencentcloud_gaap_layer4_listener` support read proxy_id +* data source `tencentcloud_gaap_layer7_listener` support read proxy_id + +BUGFIXES: +* fix ckafka backend change +* fix clb unit test + +## 1.78.4 (October 12, 2022) + +COMMON: + +* Add default teo variable for testcases +* Fix teo, dnspod, cdn testcases + +ENHANCEMENTS: + +* resource `tencentcloud_kubernetes_node_pool` support hostname and instance name + +BUGFIXES: + +* resource `tencentcloud_ssl_free_certificate` optimize dv auth method import +* resource `tencentcloud_tem_application` support set tcr instance id +* resource `tencentcloud_vpc` distinguish normal and docker assistant cidr + +## 1.78.3 (September 29, 2022) + +ENHANCEMENTS: +* resource `tencentcloud_monitor_tmp_cvm_agent` support `agent_id` param + +BUGFIXES: +* resource `tencentcloud_security_group_rule` fix rule read error +* resource `tencentcloud_security_group_rule` fix one resource delete multi-rule which only description difference +* fix tke unit test + +## 1.78.2 (September 27, 2022) + +BUGFIXES: + +* resource `tencentcloud_tcr_instance` extend replications retry timeout + +## 1.78.1 (September 27, 2022) + +ENHANCEMENTS: + +* resource `tencentcloud_tcr_instance` support replications +* resource `tencentcloud_tcr_vpc_attachment` support cross region +* resource `tencentcloud_cos_bucket` add `force_clean` to support cleaning up all objects when a bucket is deleted + +## 1.78.0 (September 21, 2022) + +FEATURES: + +* resource `tencentcloud_teo_xxxx` support api v2 + +ENHANCEMENTS: + +* resource `tencentcloud_elasticsearch_instance` add `es_acl` to support whitelist and blacklist +* resource `tencentcloud_instance` add `key_ids`, deprecate `key_name` +* resource `tencentcloud_key_pair` change servcie params +* resource `tencentcloud_vpc_acl` support tag + +## 1.77.11 (September 19, 2022) + +ENHANCEMENTS: + +* resource `tencentcloud_key_pair` support cam policy with restrict tag permission + +## 1.77.10 (September 16, 2022) + +ENHANCEMENTS: + +* resource `tencentcloud_image` and `tencentcloud_cbs_storage` etc support cam policy with restrict tag permission (#1275) + +## 1.77.9 (September 14, 2022) + +FEATURES: + +* New resource `tencentcloud_monitor_grafana_instance` +* New resource `tencentcloud_monitor_grafana_integration` +* New resource `tencentcloud_monitor_grafana_notification_channel` +* New resource `tencentcloud_monitor_grafana_plugin` +* New resource `tencentcloud_monitor_grafana_sso_account` + +ENHANCEMENTS: + +* resource `tencentcloud_vpc` and `tencentcloud_instance` support cam policy with tag permission + +## 1.77.8 (August 24, 2022) + +FEATURES: + +* New resource `tencentcloud_cos_bucket_domain_certificate_attachment` (#1258) + +ENHANCEMENTS: + +* resource `tencentcloud_dnspod_record` support import (#1260) +* resource `tencentcloud_tem_application` update param desc (#1264) + +BUGFIXES: + +* resource `tencentcloud_monitor_tmp_instance` fix cluster agent status handle (#1261) +* resource `tencentcloud_tcaplus_idl` tcaplusdb support tdr (#1263) + +COMMON: + +* fix common testcases(#1259) + +## 1.77.7 (August 24, 2022) + +FEATURES: + +* New data source `tencentcloud_cynosdb_zone_config` + +ENHANCEMENTS: + +feat: redis - support field: param template (#1249) +* resource `tencentcloud_instance` system support bssd (#1253) +* resource `tencentcloud_kubernetes_cluster` support internet security group modify (#1248) +* resource `tencentcloud_kubernetes_cluster_endpoint` support internet security group modify (#1248) + +BUGFIXES: + +* resource `tencentcloud_cynosdb_cluster` param_items not effect in create cluster (#1238) +* resource `tencentcloud_monitor_tmp_tke_cluster_agent` update irregular type (#1241) +* resource `tencentcloud_monitor_tmp_tke_global_notification` update irregular type (#1241) + +COMMON: + +* feat: pr lable (#1250) +* fix: auto label (#1256) +* fix: update irregular type (#1241) + +## 1.77.6 (September 1, 2022) + +ENHANCEMENTS: +* update teo/tem doc + +## 1.77.5 (September 1, 2022) + +FEATURES: + +* new resource `tencentcloud_teo_zone` +* new resource `tencentcloud_teo_zone_setting` +* new resource `tencentcloud_teo_dns_record` +* new resource `tencentcloud_teo_dns_sec` +* new resource `tencentcloud_teo_load_balancing` +* new resource `tencentcloud_teo_origin_group` +* new resource `tencentcloud_teo_rule_engine` + +## 1.77.4 (August 24, 2022) + +ENHANCEMENTS: + +* support TencentCloud Prometheus + ## 1.77.3 (August 16, 2022) ENHANCEMENTS: diff --git a/GNUmakefile b/GNUmakefile index 01cf5f518c..3865832e09 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -3,6 +3,7 @@ GOFMT_FILES?=$$(find . -name '*.go' |grep -v vendor) PKG_NAME=tencentcloud WEBSITE_REPO=github.com/hashicorp/terraform-website PLATFORMS=darwin/amd64 freebsd/386 freebsd/amd64 freebsd/arm linux/386 linux/amd64 linux/arm openbsd/amd64 openbsd/386 solaris/amd64 windows/386 windows/amd64 +GO_VER ?= go default: build @@ -163,6 +164,7 @@ endif @$(MAKE) -C $(GOPATH)/src/$(WEBSITE_REPO) website-provider-test PROVIDER_PATH=$(shell pwd) PROVIDER_NAME=$(PKG_NAME) changelog: - ./scripts/draft-changelog.sh + cd .ci/tools && $(GO_VER) install github.com/hashicorp/go-changelog/cmd/changelog-build + ./scripts/generate-changelog.sh .PHONY: build sweep test testacc fmt fmtcheck lint tools test-compile doc hooks website website-lint website-test diff --git a/scripts/draft-changelog.sh b/scripts/draft-changelog.sh deleted file mode 100755 index 4c366c5f56..0000000000 --- a/scripts/draft-changelog.sh +++ /dev/null @@ -1,89 +0,0 @@ -#!/bin/sh - -# this script can generate draft changelog instead of painful writing it -# run with `make changelog` then copy it! - -version="" -gitTag=$(git describe --tag --abbrev=0) -IFS=. read -r major minor patch <<< "$gitTag" - -major=${major:1} - -type=$1 - -if [[ -z $type ]]; then - read -r -p "Specify semver: major, minor, patch(default) " input - - type=$input - if [[ -z $input ]]; then - type="patch" - fi -fi - -case $type in -v*) - version=$1 - ;; -major) - version="$((major + 1)).0.0" - ;; -minor) - version="$major.$((minor + 1)).0" - ;; -patch) - version="$major.$minor.$((patch+1))" -esac - -diffs=$(git diff --name-only HEAD $gitTag | grep "tencentcloud/*") - - -resource="^tencentcloud\/resource_tc_([a-z_]+)\.go$" -data="^tencentcloud\/data_source_tc_([a-z_]+)\.go$" -service="^tencentcloud\/([a-z_]+)\.go$" -test="([a-z_]+)_test$" - -items="" - - -for file in ${diffs}; do - module="" - fileType="resource" - if [[ $file =~ $resource ]]; then - module="tencentcloud_${BASH_REMATCH[1]}" - elif [[ $file =~ $data ]]; then - fileType="data source" - module="tencentcloud_${BASH_REMATCH[1]}" - elif [[ $file =~ $service ]]; then - fileType="service" - module="${BASH_REMATCH[1]}" - fi - - if [[ $module =~ $test ]]; then - module=${BASH_REMATCH[1]} - fi - if [[ $module != "" ]]; then - item="* $fileType \`$module\`" - if [[ ! $items =~ "$item" ]]; then - items="$items\n$item" - fi - fi - -done - -LANG=en_US -dateStr=$(date +"%B %d, %Y") - -template=" -## $version ($dateStr) -\n -\nFEATURES: -\nDEPRECATED: -\nENHANCEMENTS: -\nBUGFIXES: -\nCOMMON: -\n -$items -\n -" - -echo $template \ No newline at end of file diff --git a/scripts/generate-changelog.sh b/scripts/generate-changelog.sh index f6361ac95f..85678775bc 100755 --- a/scripts/generate-changelog.sh +++ b/scripts/generate-changelog.sh @@ -5,7 +5,7 @@ set -o nounset __dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" __parent="$(dirname "$__dir")" -__root="$(dirname "$__parent")" +__root="$(dirname "$__dir")" CHANGELOG_FILE_NAME="CHANGELOG.md" CHANGELOG_TMP_FILE_NAME="CHANGELOG.tmp" @@ -24,7 +24,7 @@ if [ -z "$PREVIOUS_CHANGELOG" ] then echo "Unable to locate previous changelog contents." exit 1 -fi +fi CHANGELOG=$($(go env GOPATH)/bin/changelog-build -this-release $TARGET_SHA \ -last-release $PREVIOUS_RELEASE_SHA \ diff --git a/scripts/release-note.tmpl b/scripts/release-note.tmpl new file mode 100644 index 0000000000..6fb7fb5cdf --- /dev/null +++ b/scripts/release-note.tmpl @@ -0,0 +1,11 @@ +{{- define "note" -}} +{{- if eq "new-resource" .Type -}} +* **New Resource:** `{{.Body}}` ([#{{- .Issue -}}](https://github.com/tencentcloudstack/terraform-provider-tencentcloud/pull/{{- .Issue -}})) +{{- else if eq "new-data-source" .Type -}} +* **New Data Source:** `{{.Body}}` ([#{{- .Issue -}}](https://github.com/tencentcloudstack/terraform-provider-tencentcloud/pull/{{- .Issue -}})) +{{- else if eq "new-guide" .Type -}} +* **New Guide:** `{{.Body}}` ([#{{- .Issue -}}](https://github.com/tencentcloudstack/terraform-provider-tencentcloud/pull/{{- .Issue -}})) +{{- else -}} +* {{.Body}} ([#{{- .Issue -}}](https://github.com/tencentcloudstack/terraform-provider-tencentcloud/pull/{{- .Issue -}})) +{{- end -}} +{{- end -}}