swift-garage-61180
10/27/2023, 11:03 AMastonishing-tomato-18259
10/27/2023, 11:08 AMswift-garage-61180
10/27/2023, 11:08 AMkind: Deploy
name: api
noCache: [
["spec", "someKey", "hostName"]
]
spec:
someKey:
hostName: "${var.baseUrl}/api" # <--- omitted before hashing
...
ActionConfigContext
, but don't have access to everything that the spec has).astonishing-tomato-18259
10/27/2023, 11:53 AMnoCache
instead of full paths of keys and then we keep track of all the keys whose value have a template string with matching variable. Something like
kind: Deploy
name: api
noCache:
- var,baseUrl
spec:
someKey:
hostName: "${var.baseUrl}/api" # <--- omitted before hashing
...
const ignoreVars = ["base-hostname"]
https://github.com/garden-io/garden/pull/5237/commits/1ded5f05a4bd9d2f372c701ee7a84a06d9ff5cacdeploy.api - ignoredKeys: [ 'spec.ingresses.0.hostname' ]
deploy.vote - ignoredKeys: [ 'spec.ingresses.0.hostname', 'spec.env.HOSTNAME' ]
swift-garage-61180
10/27/2023, 12:48 PM