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

bright-sandwich-93783

06/30/2021, 11:53 PM
but the only methods I see are
corev1.GetServiceAccount
which requires a Pulumi ID
s

steep-toddler-94095

07/01/2021, 12:48 AM
are you looking to pull it into state?
if so, you can
import
it. but if not, the solution is not Pulumi-specific - you can just use whatever programming language you are using to run the equivalent command as
kubectl annotate
g

gorgeous-egg-16927

07/01/2021, 1:31 AM
The pulumi ID is the
[namespace/]name
of the resource.
b

bright-sandwich-93783

07/01/2021, 9:33 PM
Thanks! kind of cumbersome that you need to sync up the declared resource config exactly with the config of the existing resource. In this case, that means figuring out all the fields of the SA, which you may not care about or even want managed by Pulumi
just some feedback there. In this case, I just want to "import" the annotation of the service account, meaning I only want Pulumi to track and care about changes to that field of the existing resource
5 Views