better-actor-92669
02/08/2021, 4:55 PMdel obj
but it doesn't work.
def remove_test_objects(obj):
# if obj["kind"] == "Pod" and 'test' in obj["metadata"]["name"]:
if 'test' in obj["metadata"]["name"]:
del obj
gorgeous-egg-16927
02/08/2021, 5:00 PMbetter-actor-92669
02/08/2021, 5:12 PM# Omit a resource from the Chart by transforming the specified resource definition to an empty List.
def omit_resource(obj, opts):
if obj["kind"] == "Pod" and obj["metadata"]["name"] == "test":
obj["apiVersion"] = "v1"
obj["kind"] = "List"