razee-io / Razee

Overview and docs
Apache License 2.0
423 stars 36 forks source link

Subscription info not present on RemoteResource in resource query #113

Closed finken2 closed 4 years ago

finken2 commented 4 years ago

Using the latest, i'm still not seeing subscription info on the resource query. The resource was created via subscription, the RemoteResource is there, the rolloutStatus is there, searchableData has some sub info, but the subscription property itself is null.

Note: this is only for the RemoteResource. The resource created by this remoteResource DOES have the subscription field.

  "data": {
    "resource": {
      "id": "5f2329e2f3657b9a3e4451e7",
      "selfLink": "/apis/deploy.razee.io/v1alpha2/namespaces/razeedeploy/remoteresources/clustersubscription-15004433-69d9-4569-9abf-958105bac205",
      "searchableData": {
        "kind": "RemoteResource",
        "name": "clustersubscription-15004433-69d9-4569-9abf-958105bac205",
        "namespace": "razeedeploy",
        "apiVersion": "deploy.razee.io/v1alpha2",
        "annotations[\"deploy_razee_io_clustersubscription\"]": "15004433-69d9-4569-9abf-958105bac205",
        "annotations[\"deploy_razee_io_data_hash\"]": "9a634d351dd5bf2d74685ac6242a98126717f130",
        "children": [
          "/api/v1/namespaces/default/configmaps/aaa-config-01"
        ]
      },
      "updated": "2020-07-30T20:38:45.119Z",
      "cluster": {
        "clusterId": "1c62ed0c-578a-4a96-9763-d0bec49083b1",
        "name": "enf-cluster-for-razee-3"
      },
      "subscription": null
    }
  },
mckaymic commented 4 years ago

Closing this for now. RemoteResources is not content delivered by the Subscription, it's the mechanism to deliver the content. Therefore it should not be related to the subscription from a resource link view