Skip to content

Deleting StorageBucketAccessControl or StorageDefaultObjectAccessControl fails if StorageBucket is deleted first #463

Description

@jcanseco

Checklist

Bug Description

Attempting to delete a StorageBucketAccessControl (or StorageDefaultObjectAccessControl) resource after its referenced StorageBucket has already been deleted fails with the following error:

Delete call failed: error fetching live state: error getting ID for resource: error getting value from reference: could not parse reference resolution value '' as string

It seems that the StorageBucket needs to be deleted first. Otherwise, the only way to unstuck the delete is to do a forced cleanup.

Additional Diagnostic Information

Kubernetes Cluster Version

Client Version: v1.21.0
Server Version: v1.18.16-gke.2100

Config Connector Version

1.49.1

Config Connector Mode

cluster

Log Output

N/A

Steps to Reproduce

Steps to reproduce the issue

  1. Apply both the StorageBucket and StorageBucketAccessControl below.
  2. Wait for both to be UpToDate.
  3. Delete the StorageBucket.
  4. Delete the StoageBucketAccessControl.
  5. Observe that StorageBucketAccessControl fails with DeleteFailed.

The same is true if you replace StorageBucketAccessControl with a StorageDefaultObjectAccessControl resource instead.

YAML snippets

  1. StorageBucket:
apiVersion: storage.cnrm.cloud.google.com/v1beta1
kind: StorageBucket
metadata:
  annotations:
    cnrm.cloud.google.com/project-id: my-project
  name: my-bucket
  1. StorageBucketAccessControl:
apiVersion: storage.cnrm.cloud.google.com/v1beta1
kind: StorageBucketAccessControl
metadata:
  name: my-bucket-access-control
spec:
  bucketRef:
    name: my-bucket
  entity: allAuthenticatedUsers
  role: READER

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions