Skip to content

Generate sweepers for resources that have custom delete code #26059

@c2thorn

Description

@c2thorn

What kind of contribution is this issue about?

Other (specify in details)

Details

Right now we have a fairly heavy handed check for detecting any custom deletion code: https://github.com/GoogleCloudPlatform/magic-modules/blob/main/mmv1/api/resource.go#L2466

While discussing #22642, we determined it is likely that we are not generating sweepers when they easily could be in these cases. It may be worthwhile to remove the custom deletion check, generate the sweepers by default, and simply turn off the sweeper if they don't work.

References

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions