https://pulumi.com logo
#kubernetes
Title
# kubernetes
n

numerous-energy-27817

02/05/2024, 2:37 PM
is there a way in pulumi to say "*update only this one deployment*, ignore update of the rest of resources" regardless if they need update or not? Because commenting out those resources leads to deletion, which is not what I need, I need to quickly update a few particular resources and not touch any other resources
b

billowy-engine-58246

02/05/2024, 2:51 PM
Hi Genadz! Yes, within pulumi you can use the
--target
argument and provide the UPN towards the resource. The UPN can be seen in the
pulumi up --diff
and
pulumi stack export
commands. Note that if there are other resources that are dependent on the target resource, you might also need to execute
--target-dependents
in order to update them as well.
n

numerous-energy-27817

02/05/2024, 6:07 PM
Cool! is there also a way to do it programmatically in the program? like do as usual inside pulumi.Run() but before returning specify the target to context? 👀
g

gifted-balloon-26385

02/06/2024, 3:38 AM