Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CES] use client from ctx in
opentelekomcloud_ces_alarmrule
(#1847)
[CES] use client from ctx in `opentelekomcloud_ces_alarmrule` Summary of the Pull Request Use client from ctx in opentelekomcloud_ces_alarmrule PR Checklist Refers to: #1840 Tests added/passed. Documentation updated. Schema updated. Release notes added. Acceptance Steps Performed === RUN TestCESAlarmRule_basic === PAUSE TestCESAlarmRule_basic === CONT TestCESAlarmRule_basic --- PASS: TestCESAlarmRule_basic (124.12s) PASS Process finished with the exit code 0 Reviewed-by: Rodion Gyrbu <fpsoff@outlook.com> Reviewed-by: Vladimir Vshivkov <None> Reviewed-by: Artem Lifshits <None>
- Loading branch information
1 parent
c6e97f7
commit 7c8afdf
Showing
4 changed files
with
30 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,5 @@ package ces | |
|
||
const ( | ||
errCreationClient = "error creating CESv1 client: %w" | ||
cesClientV1 = "ces-v1-client" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
enhancements: | ||
- | | ||
**[CES]** Reduce amount of init client requests in ``resource/opentelekomcloud_ces_alarmrule`` (`#1847 <https://github.com/opentelekomcloud/terraform-provider-opentelekomcloud/pull/1847>`_) |