Skip to content

Ability to set defaultTags for provider #927

@dmitrykuleshov-goreel

Description

@dmitrykuleshov-goreel

We start adoption of Crossplane in our environment. And as usual (I assume) it is a migration from Terraform. As we have relatively big infrastructure, tagging is quite important for cost monitoring, ownership, etc.

This issue kinda relates to #254.

Because we migrate from terraform we were looking for functionality similar to default_tags.

I see that crossplane-runtime already sets some specific Tags, so communication between provider and runtime is already in place.

func GetExternalTags(mg Managed) map[string]string {
	tags := map[string]string{
		ExternalResourceTagKeyKind: strings.ToLower(mg.GetObjectKind().GroupVersionKind().GroupKind().String()),
		ExternalResourceTagKeyName: mg.GetName(),
	}

Is it something you can consider?
Potentially we would be interested in contribution, but need architectural guidance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions