Skip to content

Question: Why use labels and not annotations? #9

@twobiers

Description

@twobiers

I just stumbled across this function and believe it would be a good fit in our environment. However, while taking a closer look I was wondering why function relies on labels but not annotations. Also #7 includes a new label.
For example function-go-templating supports setting an gotemplating.fn.crossplane.io/composition-resource-name annotation to be used together with the function.

Am I missing any internal of crossplane that requires using labels here?

From the Kubernetes Documentation:

Labels Annotations
Labels are key/value pairs that are attached to objects such as Pods. Labels are intended to be used to specify identifying attributes of objects that are meaningful and relevant to users, but do not directly imply semantics to the core system. You can use Kubernetes annotations to attach arbitrary non-identifying metadata to objects. Clients such as tools and libraries can retrieve this metadata.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions