-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
azurerm_kubernetes_flux_configuration
- added postBuild and wait properties to kustomization block
#25695
azurerm_kubernetes_flux_configuration
- added postBuild and wait properties to kustomization block
#25695
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test failure:
------- Stdout: -------
=== RUN TestAccKubernetesFluxConfiguration_kustomizationPostBuild
=== PAUSE TestAccKubernetesFluxConfiguration_kustomizationPostBuild
=== CONT TestAccKubernetesFluxConfiguration_kustomizationPostBuild
testcase.go:113: Step 1/2 error: Error running pre-apply refresh: exit status 1
Error: Missing key/value separator
on terraform_plugin_test.tf line 80, in resource "azurerm_kubernetes_flux_configuration" "test":
75: postBuild = {
76: substitute = {
77: "key" = "value",
78: "key2" = "value2"
79: }
80: substituteFrom {
Expected an equals sign ("=") to mark the beginning of the attribute value.
testing_new.go:79: Error retrieving state, there may be dangling resources: exit status 1
Error: Missing key/value separator
on terraform_plugin_test.tf line 80, in resource "azurerm_kubernetes_flux_configuration" "test":
75: postBuild = {
76: substitute = {
77: "key" = "value",
78: "key2" = "value2"
79: }
80: substituteFrom {
Expected an equals sign ("=") to mark the beginning of the attribute value.
--- FAIL: TestAccKubernetesFluxConfiguration_kustomizationPostBuild (2.04s)
FAIL
cce4852
to
6a77e6a
Compare
Hi all, I've rebased main to resolve a merge conflict that it came up with, and also resolved make depscheck. What I'm not sure of and would like some guidance around is how would you want the tests to be created when a client id, secret is required - as the run-gradually-deprecated checks are failing? It's failing where os.GetEnv("ARM_CLIENT_ID") etc is utilised but is the expected way to do this to create a service principal with the azuread provider? In these particular tests they require a service principal which can be provided - or can already existing service principals be leveraged since the User Assigned Managed Identity does not have secrets that can be used? Basically... What would be the best approach to leverage an application registration where I need to input the client id, tenant id and client secret as part of the resource test? As I'm only modifying these tests and didn't come up with them, I'd be happy with the easiest approach to resolving this. |
Hey @jayctran, The expectation is to create an application and service principal using the terraform-provider-azurerm/internal/services/containers/kubernetes_cluster_network_resource_test.go Lines 2298 to 2315 in c18bce7
|
Thanks @stephybun, that makes sense, I'll work on converting those older tests. Cheers |
6359f86
to
0ec8499
Compare
internal/services/containers/kubernetes_flux_configuration_resource_test.go
Outdated
Show resolved
Hide resolved
521b559
to
fe64484
Compare
Have just rebased this to get this up to date with main |
hi @katbyte @stephybun , following up on whether the tests could be triggered again for this? The issues with the tests should be fixed now. Thanks |
fe64484
to
0677783
Compare
Rebased to resolve merge conflicts |
@katbyte bumping this |
0677783
to
873ebc1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jayctran we had to revert something on main, could you perform a rebase? Once that's done I can approve and merge this 🙂
This reverts commit 7153aca.
Co-authored-by: Zhenhua Hu <[email protected]>
Co-authored-by: Zhenhua Hu <[email protected]>
Co-authored-by: Zhenhua Hu <[email protected]>
Co-authored-by: Zhenhua Hu <[email protected]>
…ource.go Co-authored-by: stephybun <[email protected]>
…ource.go Co-authored-by: stephybun <[email protected]>
Co-authored-by: stephybun <[email protected]>
Co-authored-by: stephybun <[email protected]>
eb76334
to
e1667a7
Compare
Thanks @stephybun. No problem, that's been rebased and branch updated. Cheers! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @jayctran LGTM 💯
* Update CHANGELOG.md for #28233 * Update for #28215 * Update CHANGELOG.md for #28279 * Update CHANGELOG.md #28269 * Update CHANGELOG.md #27876 * Update CHANGELOG.md #28069 * Update CHANGELOG.md for #28312 * Update CHANGELOG.md for #28278 * Update CHANGELOG.md #28311 * Update CHANGELOG.md undo 28311 * Update CHANGELOG.md #27874 * Update CHANGELOG.md * Update CHANGELOG for #28352 * Update CHANGELOG.md for #28390 * Update CHANGELOG.md for #28398 * Update CHANGELOG.md for #28425 * Update CHANGELOG.md #28427 * Update CHANGELOG.md #28280 * Update CHANGELOG.md for #28319 * Update CHANGELOG.md #24801 * Update for #28360 #28216 #27830 #28404 #27401 #27122 #27931 #28442 * Update for #28379 * Update CHANGELOG.md for #28281 * Update for #28380 * Update for #27375 * Update for #25695 * Update CHANGELOG.md #27985 * Update CHANGELOG.md - update release date manually until can be scripted * Update CHANGELOG.md revert date change as script available * pre-release script updates --------- Co-authored-by: stephybun <[email protected]> Co-authored-by: catriona-m <[email protected]> Co-authored-by: Wyatt Fry <[email protected]> Co-authored-by: sreallymatt <[email protected]> Co-authored-by: Matthew Frahry <[email protected]> Co-authored-by: kt <[email protected]>
Community Note
Description
PR Checklist
For example: “
resource_name_here
- description of change e.g. adding propertynew_property_name_here
”Changes to existing Resource / Data Source
Testing
Every time I tried to run the acceptance tests I hit this issue and couldn't get past it.
Got this working in the project I needed this for:
Change Log
Below please provide what should go into the changelog (if anything) conforming to the Changelog Format documented here.
azurerm_kubernetes_flux_configuration
- added postBuild and wait properties to kustomization block [Support for postBuild substitution in flux_configuration #24081]This is a (please select all that apply):
Related Issue(s)
Fixes #24081
Note
If this PR changes meaningfully during the course of review please update the title and description as required.