Open fsommar opened 3 years ago
Hi @fsommar thank you for reporting this issue. Unfortunately the Bigtable API does not allow for labels on clusters so config connector does not yet have a way to add a label:
https://cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.clusters#Cluster
Thanks @spew, I was afraid that would be the case. We can exclude Bigtable Clusters from our resource import list for now, so this is low on our priority.
There is no plan for Cloud Bigtable to support Labels in other resources under Instance. Tags might be a good alternative in the future.
Describe the bug Bigtable clusters created via a managed Bigtable instance are not labelled as managed by cnrm.
ConfigConnector Version 1.34.0
To Reproduce Create a
BigtableInstance
using e.g. the YAML snippet below. Verify that the instance itself has the labelmanaged-by-cnrm: true
:Observe that the clusters created by the instance KRM do not have the label
managed-by-cnrm: true
:As far as I understand, the cluster is managed by cnrm, although it might be considered indirectly or implicitly so. Would it be possible to propagate the label to clusters from an instance? We first entertained the idea of assuming that any child resource of a managed resource is itself managed. That does not hold true for BigQuery datasets and tables, and probably doesn't generalize to more things either.
YAML snippets: