feat(tkn): add Tekton task to destroy Azure images#91
Conversation
cloud-importer destroy is provider-agnostic; swapping the backed-url from s3:// to azblob:// is sufficient to target Azure. This task mirrors the existing AWS destroy pattern with Azure credentials (ARM_CLIENT_ID/SECRET/TENANT_ID/SUBSCRIPTION_ID, AZURE_STORAGE_ACCOUNT, AZURE_STORAGE_KEY) mounted from a secret and the Pulumi state backend hardcoded to azblob://aipcc-productization/cloud-importer. Co-authored-by: Claude claude-sonnet-4-6 <noreply@anthropic.com> Signed-off-by: Xiyang Dong <xdong@redhat.com>
|
@XiyangDong is this a totally new I though we can use the ones we have just saying create or destroy? |
|
@adrianriobo I guess that Xiyang just replicated what we already had for AWS in my fork https://raw.githubusercontent.com/ppitonak/cloud-importer/refs/heads/tkn_destroy/tkn/destroy-aws.yaml I originally created a separate "destroy" task because existing tasks were not usable in our environment (they use workspaces) so I couldn't test them properly. I am not sure if anybody even uses them because they reference non-existing image Maybe this is a good time to fix all these issues
|
|
@adrianriobo could you provide some inputs on Pavol's comment? |
|
@XiyangDong I updated all tasks based on Adrian's input, it covers also destroying Azure images. #98 PTAL |
|
Close in favor of #98 |
cloud-importer destroy is provider-agnostic; swapping the backed-url from s3:// to azblob:// is sufficient to target Azure. This task mirrors the existing AWS destroy pattern with Azure credentials (ARM_CLIENT_ID/SECRET/TENANT_ID/SUBSCRIPTION_ID, AZURE_STORAGE_ACCOUNT, AZURE_STORAGE_KEY) mounted from a secret and the Pulumi state backend hardcoded to azblob://aipcc-productization/cloud-importer.