Instrument GL-managed K8s resources: Part 3. group+version+kind

Goal

Instrument the group+version+kind combinations creation

Proposal

Because we can't add a list to the event, we'll need an event for each resource creation / deletion. One event for each GVK (group+version+kind).

Implementation plan:

  1. Define two events.
  2. Parse the applying template and get GVK resources from it. (We'll need to add this)
  3. Emit events for each GVK resource.

Add 2 events:

  • ensure_gvk_resource_for_managed_resource
  • delete_gvk_resource_for_managed_resource

The attributes for both events:

  • user id
  • project id
  • label: pricing tier (string)
  • property: environment tier (string)
  • value: environment id
Edited by Taka Nishida