Skip to content

Add ability to add custom tags to instances.

Boros Gábor requested to merge smarnach/instance-tags into master

Created by: smarnach

This change add the ability to attach custom tags to instances.

The tags could be used in various ways:

  • Marking certain commonly used subsets of instances, e.g. a tag "beta-test" or "sandbox" or "maintained". This would make it easy to find all instances of certain types.
  • Temporarily tagging instances for redeployment. E.g. if we want to migrate a set of instances to a different database server, we could apply a tag "to-be-migrated-to-xyz" to them and remove the tag for each instance that has been successfully migrated. This is the motivating use case (based on this discussion).

Instances tags should eventually be shown in the UI, and it should be possible to filter the instance list by tag.

The PR is very basic in its current form, but sufficient to be useful in the Django shell. It's also minimally invasive; if we decide that the tags aren't that useful after all at some point, we can remove them again without any side effects.

Reviewers:

Merge request reports