Repository navigation
feat(telemetrylink): resource labels - #1884
Open
ozanichkovsky wants to merge 5 commits into
Open
ozanichkovsky wants to merge 5 commits into
ozanichkovsky wants to merge 5 commits into
Conversation
Fyusel
requested changes
Nov 27, 2026
| ) | ||
|
|
||
| // TODO: remove once a telemetrylink SDK release containing ResourceLabels is available | ||
| replace github.com/stackitcloud/stackit-sdk-go/services/telemetrylink => github.com/ozanichkovsky/stackit-sdk-go/services/telemetrylink v0.0.0-20261124165215-44fa5fe74b97 |
|
|
||
| // testConfigVarsMaxLabelsRemoved sets an empty labels map so that the previously set label gets removed. | ||
| func testConfigVarsMaxLabelsRemoved() config.Variables { | ||
| newVars := make(config.Variables, len(testConfigVarsMin)) |
Contributor
There was a problem hiding this comment.
Suggested change
| newVars := make(config.Variables, len(testConfigVarsMin)) | |
| newVars := make(config.Variables, len(testConfigVarsMax)) |
| Description: schemaDescriptions["labels"], | ||
| ElementType: types.StringType, | ||
| Optional: true, | ||
| }, |
Contributor
There was a problem hiding this comment.
Found some issues during testing:
- add e.g. three labels in your terraform config and run terraform apply
labels = {
"key" = "value",
"key1" = "value1",
"key2" = "value2",
}
- remove one label and run terraform apply (e.g. key1)
-> state drift
│ Error: Provider produced inconsistent result after apply
│
│ When applying changes to stackit_telemetrylink.link, provider
│ "provider[\"registry.terraform.io/stackitcloud/stackit\"]" produced an unexpected new value: .labels: new element
│ "key1" has appeared.
│
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.
Additionally two more issues:
- removing the whole lables {} from the config does not work (this is different behavior than the router label implementation
- even labels = {} does result in state drifts
This branch has not been deployed
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Resource labels for telemetry link resources.
Depends on SDK changes #14095
Checklist
make fmtexamples/directory)make generate-docs(will be checked by CI)make test(will be checked by CI)make lint(will be checked by CI)