Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Add support for numeric sensitive fields #287

@Lax77

Description

@Lax77

What problem are you facing?

Currently sensitive fields support is limited String, array of string or map of string.

When upgrading one of the provider that got built with terrajet, eg. provider-jet-datadog to v3.13.1 of terraform provider datadog ran into below issue.

panic: cannot generate crd for resource datadog_synthetics_test: cannot build types for Test: cannot build the Types: cannot infer type from schema of field options_list: cannot infer type from resource schema of element type of Test.OptionsList: cannot infer type from schema of field rum_settings: cannot infer type from resource schema of element type of Test.OptionsList.RumSettings: got type "*float64" for field "ClientTokenID", only types "string", "*string", []string, []*string, "map[string]string" and "map[string]*string" supported as sensitive

Above issue occurred as one of the resource introduced sensitive field of data type number and terrajet do not support numeric sensitive fields.

How could Terrajet help solve your problem?

Enhance NewSensitiveField to support numeric data type to be precise float64.

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