Skip to content

Allow unknown/extra keys for anchors/aliases #116

Closed

Description

@chendrix

Use case: Extracting common configurations/tasks into anchors & aliases

We wanted our pipeline yaml file to look like

do-that-thing: &do-that-thing
  task: do-that-thing
  file: my-repo/ci/scripts/do-that-thing

jobs:
- name: do-that-thing-over-here
  plan:
  - *do-that-thing
- name: do-that-thing-over-there
  plan:
  - *do-that-thing

When you fly configure, it parses correctly, but when it attempts to configure, gives you errors

failed to update configuration.
  response code: 400 Bad Request
  response body:
    unknown/extra keys:
      - do-that-thing

cc @robdimsdale

Activity

  1. concourse-bot commented on Aug 6, 2015

    @concourse-bot

    Hi there!

    We use Pivotal Tracker to provide visibility into what our team is working on. A story for this issue has been automatically created.

    The current status is as follows:

    • #100787560 Allow unknown/extra keys for anchors/aliases

    This comment, as well as the labels on the issue, will be automatically updated as the status in Tracker changes.

  2. added a commit that references this issue on Aug 17, 2016
  3. added a commit that references this issue on Oct 5, 2016
  4. JohannesRudolph commented on May 7, 2017

    @JohannesRudolph
    Contributor

    I've just tested this and confirm it works in v2.7 of concourse. @vito you can probably close this issue :-)

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

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