# ask-community


12/01/2022, 10:19 PM
Hey all :) Is there recommended way of adding compute tags (eg. k8s resources) to ops? I would like to be able supply tags at runtime depending on infra that the op is being run on. eg maybe dev has 1/10th of the data so only requires 1/10th the memory and cpu. it would be cool to be able to supply these either at runtime or via the configured api


12/01/2022, 10:44 PM
hi @Oliver! One pattern that we encourage people towards is just using environment variables to switch between different behaviors. so you could set the tags to be some function of an environment variable, i.e.
Copy code
@op(tags={"foo": "bar"} if os.getenv("IS_PROD") else {"foo": "baz"})
🌈 1