Add system_relationship to opslevel_component_type#14723)#645
Merged
saditya370 merged 3 commits intoOpsLevel:mainfrom Apr 21, 2026
Merged
Add system_relationship to opslevel_component_type#14723)#645saditya370 merged 3 commits intoOpsLevel:mainfrom
saditya370 merged 3 commits intoOpsLevel:mainfrom
Conversation
added 2 commits
April 14, 2026 15:05
Mirror the existing owner_relationship implementation to support system_relationship on the opslevel_component_type resource and datasources. Bump opslevel-go to v2026.4.13 which exposes SystemRelationship on ComponentType and ComponentTypeInput.
Contributor
|
I think that the MR title is incorrect. |
Collaborator
Author
Thanks , fixed |
andrewstillv15
approved these changes
Apr 20, 2026
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.
Summary
owner_relationshipimplementation to addsystem_relationshipon theopslevel_component_typeresource and datasourcesopslevel-godependency tov2026.4.13(OpsLevel/opslevel-go#610) which exposesSystemRelationshiponComponentTypeandComponentTypeInputChanges
system_relationshipattribute withmanagement_rulesnested block (Create/Update/Read)system_relationshipto bothopslevel_component_typeandopslevel_component_typesdatasourcesresource_component_type_system_relationshiptest casetask docs— additive sections forsystem_relationshipon all 3 doc pagesNotes
system_relationshipis structurally identical toowner_relationship(singlemanagement_rulesfield, sameManagementRuleInputelement type) — confirmed against the backend Ruby sourcecomponentTypePropagateSystemRelationshipis intentionally out of scope — it's a one-shot bulk operation that doesn't map to declarative Terraform, and there's no precedent for it withowner_relationshipTest plan
go build ./...— passestask test— 104 passed, 0 failedsystemRelationshipon bothComponentTypeandComponentTypeInputcomponentTypeCreatemutation withsystemRelationshipround-trips correctlytask applywith a realsystem_relationshipconfig against a sandbox account (manual verification)Dependency
v2026.4.13