Skip to content

Add JSON tags to types.NamespaceName #131313

@unmarshall

Description

@unmarshall

What would you like to be added?

Add JSON tags to types.NamespaceName.

Why is this needed?

This a very widely used type. If JSON tags are added then it allows to use this type as part of a custom resource definition. controller-gen expects JSON tags for all types/fields.

There are some projects that already duplicate this type (see here). In our project(s) we also wish to use this type as part of a CRD. Of course its small enough to re-define it but then everyone needs to do the same which i think can be prevented.

Metadata

Metadata

Assignees

Labels

kind/featureCategorizes issue or PR as related to a new feature.needs-triageIndicates an issue or PR lacks a `triage/foo` label and requires one.sig/api-machineryCategorizes an issue or PR as relevant to SIG API Machinery.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions