Skip to content

Support for YAML Complex Data Types #6

@ghost

Description

I noticed that for the answers.yaml file I was not able to pass a complex data type.

massimo@LT00181468:~/data-factory$ cat answers.yaml
AppType: data_factory

UseAppInsights: true

SubnetWhiteList:
  - VNETResourceGroup: vnetRg1
    VNETName:          vnet1
    VNETSubnet:        vnetSubnet1
  - VNETResourceGroup: vnetRg2
    VNETName:          vnet2
    VNETSubnet:        vnetSubnet2
massimo@LT00181468:~/data-factory$ xl blueprint --use-defaults --answers answers.yaml
? Choose a blueprint: my-blueprint
Error while creating Blueprint: yaml: unmarshal errors:
  line 17: cannot unmarshal !!seq into string

I noticed that a complex string is supported but is it possible to have a complex data type supported?

Types

The types that can be used for inputs are:

  • Input: Used for simple text or number inputs.
  • SecretInput: Used for simple secret or password inputs. These are by default saved in secrets.xlvals files so that they won’t be checked in the GIT repo and will not be replaced with actual values in the template files.
    Select: Used for select inputs where user can choose from given options.
  • Confirm: Used for boolean inputs.
  • Editor: Used for multiline or complex text input.
  • SecretEditor: Used for multiline or complex secret inputs. These are by default saved in secrets.xlvals files so that they won’t be checked in the GIT repo and will not be replaced with actual values in the template files.
  • File: Used for fetching the content of a given file path.
  • SecretFile: Used for fetching the content of a given file path and treat it as secret. These are by default saved in secrets.xlvals files so that they won’t be checked in the GIT repo and will not be replaced with actual values in the template files.

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