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]: Blob content update is not working #821

Open
1 task done
vinish86 opened this issue Sep 17, 2024 · 1 comment
Open
1 task done

[Bug]: Blob content update is not working #821

vinish86 opened this issue Sep 17, 2024 · 1 comment
Labels
bug Something isn't working needs:triage

Comments

@vinish86
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Affected Resource(s)

storage.azure.upbound.io/v1beta1 - Blob

Resource MRs required to reproduce the bug

I'm trying to update the blob's sourceContent, but it's not working.

MR

apiVersion: storage.azure.upbound.io/v1beta1
kind: Blob
metadata:
  name: test-blob
spec:
  forProvider:
    sourceContent: inline content for this blob edit1
    storageAccountName: testsa16252729
    storageContainerName: test-data
    type: Block
  providerConfigRef:
    name: default

Steps to Reproduce

First, I submit the MR with the initial source content. Once the blob is created, I update the MR file with new source content and resubmit it. Although sync and readiness show as true, the content in the blob isn't updated.

image

What happened?

This works in Terraform, where I notice that if there's any change to the blob content, the Terraform provider deletes the blob and re-creates it.

resource "azurerm_storage_blob" "create_blob" {
  name                   = local.blob_location
  storage_account_name   = local.storageAccountName
  storage_container_name = "application"
  type                   = "Block"
  source_content         = local.json_content
  lifecycle {
    create_before_destroy = true
  }
}

Relevant Error Output Snippet

No response

Crossplane Version

1.15.2

Provider Version

1.5.0

Kubernetes Version

1.28.2

Kubernetes Distribution

No response

Additional Info

No response

@vinish86 vinish86 added bug Something isn't working needs:triage labels Sep 17, 2024
@mergenci
Copy link
Collaborator

@vinish86, The behavior you reported is the expected behavior. By design, Crossplane doesn't delete external resources implicitly.

For reference, sourceContent is a ForceNew attribute in Terraform — also noted in the resource's Terraform documentation.

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
Development

No branches or pull requests

2 participants