feat: relationships and fields needed by FinOps tree-policies - #62
Merged
Conversation
Adds the missing pieces that several azurerm + GKE tree-policies need to run:
- azure/compute: AvailabilitySetID on (Linux|Windows|)VirtualMachine, so
policies can detect VMs in availability sets.
- azure/compute: ManagedDisk.Relationships.{Linux,Windows,}VirtualMachine
populated via PostProcess from DiskAttachment rows and from inline
OSDisk/StorageOSDisk/StorageDataDisks references on legacy VMs.
- google/container: Cluster.Relationships.DefaultNodePool populated from
the inline default node pool.
- aws/ecs: drop unused TaskDefinitionRelationships.Services back-link to
avoid a Service<->TaskDefinition pointer cycle; policies that need
the reverse direction scan Services at runtime.
owenrumney
approved these changes
May 13, 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
Adds the missing pieces that several azurerm + GKE tree-policies need to run:
AvailabilitySetIDon(Linux|Windows|)VirtualMachine, so policies can detect VMs in availability sets.ManagedDisk.Relationships.{Linux,Windows,}VirtualMachinepopulated viaPostProcessfromDiskAttachmentrows and from inlineOSDisk/StorageOSDisk/StorageDataDisksreferences on legacy VMs.Cluster.Relationships.DefaultNodePoolpopulated from the inline default node pool.TaskDefinitionRelationships.Servicesback-link to avoid aService↔TaskDefinitionpointer cycle; policies that need the reverse direction scanServicesat runtime.Test plan