When you want to add a new worker model or a new worker model pattern, you have to use some variables that CDS gives you with interpolation. To use them for example for the --api flag, CDS provides a variable named API that you can use like this --api={{.API}}.
Here is the list of available variables:
string –> URI of the CDS API set in the hatchery configurationstring –> token set in the hatchery configurationstring –> Name of the workerstring –> basedir configuration set in the hatchery configurationbool –> http insecure configuration set in the hatchery configurationint64 –> ID of the model that the hatchery want to spawnint64 –> ID of the hatcherystringint64int64 –> Useful to know which workflow job the hatchery will launch spawning this workerintboolstringintstringstring