Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Cloud Function creation fails with SetNew only operates on computed keys - region is not one #575

Closed
1 task done
trampfox opened this issue Jul 16, 2024 · 1 comment · Fixed by #576
Closed
1 task done
Labels
bug Something isn't working needs:triage

Comments

@trampfox
Copy link
Contributor

Is there an existing issue for this?

  • I have searched the existing issues

Affected Resource(s)

  • cloudfunctions.gcp.upbound.io/v1beta2

Resource MRs required to reproduce the bug

apiVersion: cloudfunctions.gcp.upbound.io/v1beta1
kind: Function
metadata:
  labels:
    testing.upbound.io/example-name: pubsub-cf
  name: pubsub-cf
spec:
  forProvider:
    availableMemoryMb: 128
    description: Crossplane Cloud Function
    entryPoint: helloPubSub
    region: europe-west1
    runtime: nodejs22
    sourceArchiveBucket: ***-cloud-function-sources
    sourceArchiveObject: ***_event-trigger.zip
  providerConfigRef:
    name: ***

I managed to reproduce the same issue using the cloudfunctions example manifest.

Steps to Reproduce

Apply the provided manifest by changing the sourceArchiveBucket and sourceArchiveObject values to a valid test bucket/object.

What happened?

The external Cloud Function has not been created and I see the following error in the resource status

    Status:
      At Provider:
      Conditions:
        Last Transition Time: 2024-07-16T13:53:30Z
        Message:
          observe failed:
            cannot compute the instance diff:
              failed to get *terraform.InstanceDiff: SetNew only operates on computed keys - region is not one
        Reason: ReconcileError
        Status: False
        Type: Synced

Relevant Error Output Snippet

No response

Crossplane Version

1.15.0

Provider Version

provider-gcp-cloudfunctions:v1.5.0

Kubernetes Version

v1.28.10

Kubernetes Distribution

GKE

Additional Info

The issue is similar to the one reported in #472 and solved by #490, but the switch to the new API was not done for the Cloud Functions resources

@Iapachonp
Copy link

hello i am having the same issue, i thought that the new 1.7.0 version will fix it but no, is there any work around for this i am blocked by this and the only solution i see it is to rollback to a stable version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs:triage
Projects
None yet
2 participants