Skip to content

Label merge errors are unreadable #1803

Closed

Description

@smarterclayton

#1797 triggered this error in hack/test-cmd.sh when adding labels to a template on process. The underlying cause is probably something in my pull, but the messages are effectively unreadable and need to be improved (there should not be the %v in the error, for one).

Template "ruby-helloworld-sample" is invalid: [Config.item[4].labels: invalid value '<*>(0xc20b7b0010)unable to add labels to Template.: dst key already set to a different value (ErrorOnDifferentDstKeyValue=1), 'name'='ruby-sample-build'': error applying labels name=mytemplate,template=application-template-stibuild to &{{ } {ruby-sample-build      0001-01-01 00:00:00 +0000 UTC <nil> map[name:ruby-sample-build template:application-template-stibuild] map[]} [{github 0xc20a54e000 <nil> <nil>} {generic <nil> 0xc20a54e170 <nil>} {imageChange <nil> <nil> 0xc2089e7720}] 0 {{Git 0xc20ab732c0 } <nil> {STI <nil> 0xc20a7c6180 <nil>} {0xc208801c70   }}}, Config.item[5].labels: invalid value '<*>(0xc20b7b0330)unable to add labels to Template.DeploymentConfig.Template.ControllerTemplate.Template: dst key already set to a different value (ErrorOnDifferentDstKeyValue=1), 'name'='frontend'': error applying labels name=mytemplate,template=application-template-stibuild to &{{ } {frontend      0001-01-01 00:00:00 +0000 UTC <nil> map[name:mytemplate template:application-template-stibuild] map[]} [{ImageChange 0xc208ae6d80}] {{Recreate <nil> 0xc20a54f370} {1 map[name:frontend] <nil> 0xc20993b000}} 0 <nil>}, Config.item[7].labels: invalid value '<*>(0xc20b7b0730)unable to add labels to Template.DeploymentConfig.Template.ControllerTemplate.Template: dst key already set to a different value (ErrorOnDifferentDstKeyValue=1), 'name'='database'': error applying labels name=mytemplate,template=application-template-stibuild to &{{ } {database      0001-01-01 00:00:00 +0000 UTC <nil> map[name:mytemplate template:application-template-stibuild] map[]} [{ConfigChange <nil>}] {{Recreate <nil> <nil>} {1 map[name:database] <nil> 0xc20993bf00}} 0 <nil>}]

Activity

  1. added
    kind/bug
    on Apr 19, 2015
  2. liggitt commented on May 8, 2015

    @liggitt
    Contributor

    @smarterclayton duh, <*>(0xc20b7b0010) isn't a valid value

  3. smarterclayton commented on May 8, 2015

    @smarterclayton
    ContributorAuthor

    Thansk

  4. smarterclayton commented on May 8, 2015

    @smarterclayton
    ContributorAuthor

    Also, fixed by my other changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions