Skip to content

BUG REPORT (helm-converter) : problem when parsing datasource section when converting to VMAlert object #2398

Description

@ccaillet1974

Hi,

I've got the following error:

cannot unmarshal input file: error unmarshaling JSON: while decoding JSON: json: cannot unmarshal object into Go struct field VMAlertDatasourceSpec.server.datasource.HTTPAuth.headers of type []string
exit status 1

The corresponding datasource section of my values file is:

datasource:
    url: "http://lyo0-sfr-int-unify-vmauth.kube-vlogs.svc:8427"
    # url: "http://lyo0-int-cdn-cvlogs-vlselect.kube-vlogs.svc:9471/select/multitenant"
    # -- Basic auth for datasource
    # basicAuth:
    #   username: ""
    #   password: ""
    #   # -- Auth based on Bearer token for datasource
    bearer:
      # -- Token with Bearer token. You can use one of token or tokenFile. You don't need to add "Bearer" prefix string
      token: "Nzqh1+ow0l4N6MFkxV2kAFtXBen1v/R6nuWlv3xVO04="
    #   # -- Token Auth file with Bearer token. You can use one of token or tokenFile
    #   tokenFile: ""

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