Closed rinor closed 10 months ago
tags are heavily used by quite a few people/orgs so I do like the backwards compatibility of this; one change that i might suggest if you want to break it up into varying types - create a new tag struct and stick an enum in it to define the type with the default choice being the old style (eg: used for everything)
tags are heavily used by quite a few people/orgs so I do like the backwards compatibility of this; one change that i might suggest if you want to break it up into varying types - create a new tag struct and stick an enum in it to define the type with the default choice being the old style (eg: used for everything)
what if we add an extended attribute
to tags, containing the new specific attributes, that if present and set, will activate and use new functionality, i.e:
{
"CloudConfig": {
"Tags": [
{
"key": "instance-and-image",
"value": "instance-image"
}
]
}
}
{
"CloudConfig": {
"Tags": [
{
"key": "instance-and-image",
"value": "instance-image",
"attribute": {
"image_label": true,
"instance_label": true
}
}
]
}
}
feedback needed here
, we could even treat an empty attribute list as not set, so this config would have the same behavior/result as (1. and 2.){
"CloudConfig": {
"Tags": [
{
"key": "instance-and-image",
"value": "instance-image",
"attribute": {}
}
]
}
}
attribute
(true
or false
it doesn't matter), you opt-in for the new explicit config:
{
"CloudConfig": {
"Tags": [
{
"key": "this-goes-nowhere",
"value": "non-existent",
"attribute": {
"image_label": false,
"instance_label": false,
"instance_network": false,
"instance_metadata": false
}
}
]
}
}
In the meantime, I will update the code so we can check what it could look like
yeh - makes sense - i'm good w/these changes - is this ready to merge?
yeh - makes sense - i'm good w/these changes - is this ready to merge?
yes, will push also the updated ops docs a bit later
I need a bit more control over what goes where. The existing behavior is kept the same, unless one uses the new specific definitions.
true
only what you need)