https://pulumi.com logo
b

blue-leather-96987

07/07/2022, 8:19 PM
I am having a bit of a hard time figuring out how I can ignore specific keys of the form: {[key: string]: string} Specifically: https://www.pulumi.com/registry/packages/gcp/api-docs/cloudrun/service/#annotations_nodejs
Say I have:
Copy code
template: {
          metadata: {
              annotations: {
                  "autoscaling.knative.dev/maxScale"     : "100"
                  "<http://run.googleapis.com/client-name|run.googleapis.com/client-name>"       : "gcloud"
I know I can ignoreChanges of all annotations by ignoring template.metadata.annotations, but how can I reference the
<http://run.googleapis.com/client-name|run.googleapis.com/client-name>
key? I tried a few things, like
"template.metadata.annotations[\"<http://autoscaling.knative.dev/maxScale|autoscaling.knative.dev/maxScale>\"]"
but it always gets detected
2 Views