crossplane-contrib / provider-upjet-gcp

Official GCP Provider for Crossplane by Upbound.
Apache License 2.0
63 stars 65 forks source link

conversion webhook for bigquery.gcp.upbound.io/v1beta1, Kind=Dataset failed: Post "https://provider-gcp-bigquery-3f939b3rg.crossplane-system.svc:9443/convert?timeout=30s": service "provider-gcp-bigquery-3f939b3rg" not found #572

Open OMARZahranII opened 1 month ago

OMARZahranII commented 1 month ago

Is there an existing issue for this?

Affected Resource(s)

cloudplatform.gcp.upbound.io/v1beta1 - BigQuery

Resource MRs required to reproduce the bug

apiVersion: pkg.crossplane.io/v1
kind: Provider
metadata:
  name: provider-gcp-bigquery
spec:
  package: xpkg.upbound.io/upbound/provider-gcp-bigquery:v1.5.0

Steps to Reproduce

install the crossplane provider following the documented steps

What happened?

i was trying to use crossplane to deploy a bigquery dataset and i keep getting the mentioned erorr considering that i have deployed and interacted with alot of gcp crossplane providers i noticed that im getting this erorr only from the bigquery provider and specifically the dataset resource crd due to it using

  conversion:
    strategy: Webhook

and when i edit the crd manually to make it

  conversion:
    strategy: None

everything works but i want to modify this from the get go i don't want to do it manually every time considering that the provider will override my changes anyway, how to do so ?

Relevant Error Output Snippet

conversion webhook for bigquery.gcp.upbound.io/v1beta1, Kind=Dataset failed: Post "https://provider-gcp-bigquery-3f939b3rg.crossplane-system.svc:9443/convert?timeout=30s": service "provider-gcp-bigquery-3f939b3rg" not found

Crossplane Version

1.14.1

Provider Version

1.5.0

Kubernetes Version

v1.29.6

Kubernetes Distribution

GKE

Additional Info

No response

haarchri commented 1 month ago

can you show a kubectl get svc -n crossplane-system ?

OMARZahranII commented 1 month ago

Yes here is the output

provider-crossplane-castai              ClusterIP   34.118.228.200   <none>        9443/TCP   21d
provider-gcp-bigquery                   ClusterIP   34.118.237.221   <none>        9443/TCP   1d
provider-gcp-cloudfunctions             ClusterIP   34.118.236.191   <none>        9443/TCP   21d
provider-gcp-cloudplatform              ClusterIP   34.118.228.201   <none>        9443/TCP   21d
haarchri commented 1 month ago

this problem is fixed with crossplane 1.14.2 https://github.com/crossplane/crossplane/pull/5018 - please upgrade https://github.com/crossplane/crossplane/releases/tag/v1.14.2

Bluesboy commented 1 month ago

I have similar issue, with Subnetwork resource. For some reason kubectl get subnetwork exiting with timeout if any subnetwork manifest exists in the cluster. On other (testing) cluster though everything works fine.

OMARZahranII commented 3 weeks ago

thanks @haarchri the issue seems to be resolved after upgrading crossplane version 1.14.2