Labels and annotations
Labels
You can use labels to attach arbitrary identifying metadata to objects.
Labels are key/value maps:
metadata:
labels:
"key1": "value-1"
"key2": "value-2"
Note
The keys in the map must be string, but values can be any scalar types (string, boolean, or numeric).Labels are not persistent
Jikkou is completely stateless. In other words, it will not store any state about the describe resources objects. Thus, when retrieving objects from your system labels may not be reattached to the metadata objects.Example
metadata:
labels:
environment: "stating"
Annotations
You can use annotations to attach arbitrary non-identifying metadata to objects.
Annotations are key/value maps:
metadata:
annotations:
key1: "value-1"
key2: "value-2"
Note
The keys in the map must be string, but the values can be of any scalar types (string, boolean, or numeric).Built-in Annotations
jikkou.io/ignore
Used on: All Objects.
This annotation indicates whether the object should be ignored for reconciliation.
jikkou.io/bypass-validations
Used on: All Objects.
This annotation indicates whether the object should bypass the validation chain. In other words, no validations will be applied on the object.
jikkou.io/delete
Used on: All Objects.
This annotation indicates (when set to true
) that the object should be deleted from your system.
jikkou.io/resource-location
Used by jikkou.
This annotation is automatically added by Jikkou to an object when loaded from your local filesystem.
jikkou.io/items-count
Used by jikkou.
This annotation is automatically added by Jikkou to an object collection grouping several resources of homogeneous type.