Uploaded image for project: 'OpenShift GitOps'
  1. OpenShift GitOps
  2. GITOPS-6160

Dynamically Populate and Update ConfigMap for Kubernetes Resource Relationships

XMLWordPrintable

    • 8
    • GitOps Crimson - Sprint 3268, GitOps Crimson - Sprint 3269, GitOps Crimson Sprint 3271

      Story (Required)

      Implement a mechanism to dynamically populate and update a ConfigMap that stores parent-child relationships of Kubernetes resources. This will involve listening to Kubernetes resource events and leveraging the ownerReferences }}field where applicable while handling special cases like {{Service and Endpoint relationships without ownerReferences.

      Acceptance Criteria (Mandatory)

      • ConfigMap Structure The ConfigMap should follow the structure below:
        apiVersion: v1
        kind: ConfigMap
        metadata:
          name: resource-relation-lookup
          namespace: argocd
        data:
          apps_Deployment: apps_ReplicaSet
          apps_ReplicaSet: core_Pod
          apps_StatefulSet: apps_ReplicaSet
          core_Service: core_Endpoint
         

         

        • Keys: Represent parent resources (e.g., apps_Deployment).
        • Values: Represent immediate child resources (e.g., apps_ReplicaSet).
      • Dynamic Updates
        • The ConfigMap should be updated dynamically when:
          • A new resource is created or deleted.
          • The ownerReferences field of a resource changes.
          • Relationships like ServiceEndpoint are detected based on labels or other metadata.

              rh-ee-mmeetei Mangaal Meetei
              rh-ee-anjoseph Anand Francis Joseph
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: