Skip to content

SSA injected InjectedKey description can't be changed #671

Description

@fernandezcuesta

What happened?

When we configure a list for a provider, and don't want to have a default value (that is, we expect it to be a multi-item list), the description is always hardcoded to:

This is an injected field with a default value for being able to merge items of the parent object list.  

How can we reproduce it?

Have any multi-item list configured like:

		r.ServerSideApplyMergeStrategies["rule"] = config.MergeStrategy{
			ListMergeStrategy: config.ListMergeStrategy{
				MergeStrategy: config.ListTypeMap,
				ListMapKeys: config.ListMapKeys{
					InjectedKey: config.InjectedKey{
						Key: "index",
					},
				},
			},
		}

Where we omit the DefaultValue.

It would be nice to have a way to alter the ending description field.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    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