-
Notifications
You must be signed in to change notification settings - Fork 302
Operators in Metadata #1143
Comments
I was doing some reading last night, and it turns out systemd actually supports some of this (similar) already in unit files. Here's the article I was reading (look under the header of "Language Issues") Though I'm guessing something like..
..wouldn't work..? |
I don't really have an issue with this, but we need to put some effort into design before we can move forward. |
Variable expansion in the MachineMetadata field would be a good use case too, for example in a template I could specify that no two units will be placed in the same datacenter or on a machine which is already running the service.
|
If define metadata in fleet conf, such as "ram=1024", we can define the operator in [X-Fleet] unit as below: [X-Fleet] MachineMetadata=ram>=2048 The operators have been supported: "<=", ">=", "!=", "<", ">", "=" If the operatior are "<=", ">=", "!=", "<", ">", the value should be integer, otherwise, the unit will never be launched. Fixes coreos#1143
Update documentation. Fixes coreos#1143
That would be pretty awesome indeed. Is there a way of dealing with list values at all? For example, if I have several groups, like Would you also consider supporting lists and |
@ianbytchek +1 |
If define metadata in fleet conf, such as "ram=1024", we can define the operator in [X-Fleet] unit as below: [X-Fleet] MachineMetadata=ram>=2048 The operators have been supported: "<=", ">=", "!=", "<", ">", "=" If the operatior are "<=", ">=", "!=", "<", ">", the value should be integer, otherwise, the unit will never be launched. Fixes coreos#1143
Update documentation. Fixes coreos#1143
If define metadata in fleet conf, such as "ram=1024", we can define the operator in [X-Fleet] unit as below: [X-Fleet] MachineMetadata=ram>=2048 The operators have been supported: "<=", ">=", "!=", "<", ">", "=" If the operatior are "<=", ">=", "!=", "<", ">", the value should be integer, otherwise, the unit will never be launched. Fixes coreos#1143
Update documentation. Fixes coreos#1143
Would the authors consider allowing operators in metadata?
ie:
This + way to update metadata easier = dynamic metadata, awesome? lame? opinions?
thanks
The text was updated successfully, but these errors were encountered: