mondoohq / cnquery

open source, cloud-native, graph-based asset inventory

Home Page:https://cnquery.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Type error fetching subnetwork of GKE cluster

tas50 opened this issue · comments

Describe the bug
cnquery shows a type error instead of the subnetwork value in the GKE resource

cnquery shell gcp project 253146780735

cnquery> gcp.project.gke.clusters.first{*}.networkConfig
1 error occurred:
	* [gcp] cannot set 'region' in resource 'gcp.project.computeService.subnetwork', type does not match
gcp.project.gke.clusters.first.networkConfig: {
  dnsConfig: {
    clusterDns: "CLOUD_DNS"
    clusterDnsDomain: "cluster.local"
    clusterDnsScope: "CLUSTER_SCOPE"
  }
  defaultSnatStatus: {
    disabled: false
  }
  serviceExternalIpsConfig: {
    enabled: false
  }
  network: gcp.project.computeService.network name="default"
  networkPath: "projects/1234/global/networks/default"
  privateIpv6GoogleAccess: "PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED"
  id: "gcp.project.gkeService.cluster/1234/networkConfig"
  enableL4IlbSubsetting: false
  datapathProvider: "ADVANCED_DATAPATH"
  subnetwork: [gcp] cannot set 'region' in resource 'gcp.project.computeService.subnetwork', type does not match
  subnetworkPath: "projects/1234/regions/us-west4/subnetworks/default"
  enableIntraNodeVisibility: true
}
cnquery>