build_owner_references

Function build_owner_references 

Source
pub fn build_owner_references(instance: &Bind9Instance) -> Vec<OwnerReference>
Expand description

Builds owner references for a resource owned by a Bind9Instance

Sets up cascade deletion so that when the Bind9Instance is deleted, all its child resources (Deployment, Service, ConfigMap) are automatically deleted.

§Arguments

  • instance - The Bind9Instance that owns this resource

§Returns

A vector containing a single OwnerReference pointing to the instance