{
  "repo": "tidbcloud/gardener-resource-manager",
  "binary": "gardener-resource-manager",
  "binary_path": "cmd/gardener-resource-manager/main.go",
  "dependencies": {
    "HTTP GET /metrics": {
      "infrastructure": {
        "prometheus": {
          "conditions": [
            "Always"
          ],
          "operations": [
            {
              "operation": "Expose controller manager metrics",
              "trigger": "Manager starts with metrics-bind-address",
              "implementation": "ManagerOptions.Apply sets manager.Options.MetricsBindAddress from --metrics-bind-address"
            }
          ]
        }
      },
      "services": []
    },
    "HTTP GET /healthz": {
      "infrastructure": {
        "kubernetes": {
          "conditions": [
            "Always"
          ],
          "operations": [
            {
              "operation": "Run manager health probe against the source cluster clientset",
              "trigger": "healthz.AddToManager registers the healthz checker",
              "implementation": "healthz.DefaultAddOptions.ClientSet is populated from SourceClientOptions and mgr.AddHealthzCheck(\"healthz\", c.Check) exposes /healthz"
            }
          ]
        }
      },
      "services": []
    },
    "Runtime ResourceControllers.ManagedResourceReconcile": {
      "infrastructure": {
        "kubernetes": {
          "conditions": [
            "Always"
          ],
          "operations": [
            {
              "operation": "Watch ManagedResource CRs in the source cluster and apply rendered resources into the target cluster",
              "trigger": "resourcecontroller.AddToManager registers the managedresource controller",
              "implementation": "Reconciler reads ManagedResource secretRefs via the source-cluster client and uses targetClient plus targetRESTMapper to create, update, or delete target-cluster objects"
            }
          ]
        }
      },
      "services": []
    },
    "Runtime ResourceControllers.SecretReconcile": {
      "infrastructure": {
        "kubernetes": {
          "conditions": [
            "Always"
          ],
          "operations": [
            {
              "operation": "Watch ManagedResource and Secret objects to maintain finalizers on referenced Secrets",
              "trigger": "secretcontroller.AddToManager registers watches for ManagedResource and Secret",
              "implementation": "Secret reconciler lists ManagedResources in the source cluster and adds or removes the class finalizer on referenced Secrets"
            }
          ]
        }
      },
      "services": []
    },
    "Runtime ResourceControllers.HealthReconcile": {
      "infrastructure": {
        "kubernetes": {
          "conditions": [
            "Always"
          ],
          "operations": [
            {
              "operation": "Check health of applied target-cluster objects and update ManagedResource conditions",
              "trigger": "healthcontroller.AddToManager registers the health controller",
              "implementation": "Health reconciler fetches target-cluster objects through targetClient and writes ResourcesHealthy conditions back to the source-cluster ManagedResource status"
            }
          ]
        }
      },
      "services": []
    }
  }
}
