sparse-intern-71089
09/04/2023, 11:45 AMdry-keyboard-94795
09/05/2023, 10:57 AMpulumi.Command + the deleted_with option on the Namespace, so that I can do a soft delete with kubectl directly (ie, mark as terminated, and let the cluster take care of it once all the finalizers are finished)dry-keyboard-94795
09/05/2023, 10:58 AMskipAwait specific to creation/update/delete steps would be handy, though!dry-keyboard-94795
09/05/2023, 11:41 AMNamespacePatch, but requires refreshes before the update that deletes the NS.
For reference:
k8s.core.v1.NamespacePatch(
self.name,
opts=self._default_opts.merge(p.ResourceOptions(depends_on=[ns], deleted_with=ns)),
metadata=k8s.meta.v1.ObjectMetaArgs(
name=ns.metadata["name"],
annotations={
"<http://pulumi.com/skipAwait|pulumi.com/skipAwait>": "true",
},
),
)dry-keyboard-94795
09/05/2023, 11:42 AM_default_opts is just parent=self in this case)