Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[lang] anchors are not supported #186

Closed
jorgemoralespou opened this issue Aug 13, 2020 · 14 comments
Closed

[lang] anchors are not supported #186

jorgemoralespou opened this issue Aug 13, 2020 · 14 comments
Labels
carvel triage This issue has not yet been triaged for relevance enhancement This issue is a feature request

Comments

@jorgemoralespou
Copy link

I've seen #172 and the limitations and this prevents processing/installing knative resources with ytt.

https://github.com/knative/serving/blob/6c3eb0433d235d5ba9768ada4e7be90ddeb74458/config/core/resources/configuration.yaml#L26-L55

@cppforlife cppforlife added the enhancement This issue is a feature request label Aug 13, 2020
@cppforlife cppforlife changed the title anchors are not supported [lang] anchors are not supported Aug 18, 2020
@cppforlife
Copy link
Contributor

we do want them to work since they may be used within third party configuration.

@cppforlife
Copy link
Contributor

@cppforlife cppforlife added the in progress Work has begun by a community member or a maintainer; this issue may be included in a future release label Aug 28, 2020
@cppforlife
Copy link
Contributor

this open PR to go-yaml fixes issue: go-yaml/yaml#364; however, after the fix cases like knative config:

  - << : *version
    name: v1beta1

present a challenge since they introduce duplicate keys.

@dprotaso
Copy link

this open PR to go-yaml fixes issue: go-yaml/yaml#364; however, after the fix cases like knative config:

  - << : *version
    name: v1beta1

present a challenge since they introduce duplicate keys.

but the last key listed should just override no? I'm guessing there's something in the spec regarding the behaviour

@aaronshurley
Copy link
Contributor

Some additional conversation/context in slack.

@pivotaljohn pivotaljohn added the recommended sponsored for prioritization into Carvel maintainer's backlog label Jun 23, 2021
@pivotaljohn
Copy link
Contributor

Adding to list of issues to review during pre-IPM ==> recommended

@pivotaljohn pivotaljohn removed the recommended sponsored for prioritization into Carvel maintainer's backlog label Jul 8, 2021
@groundnuty
Copy link

any progress on that? I'm attempting to port anchor heavy configurations to ytt and lack support for anchors is making it increasingly complicated

@pivotaljohn
Copy link
Contributor

@groundnuty asked

any progress on that? I'm attempting to port anchor heavy configurations to ytt and lack support for anchors is making it increasingly complicated

Unfortunately not, so far.

We've been in a "wait and hope for upstream fix" for some time now. So, while technically "in progress" is correct, we're really blocked on this upstream fix... (or we decide to find a way to land it in our own fork).

It be clear, it's in the Carvel maintainer's backlog 👍🏻 , but it's currently sitting below the OpenAPI Schema export feature 🤷🏻 .

@groundnuty
Copy link

groundnuty commented Sep 20, 2021

@pivotaljohn maybe it's somehow connected with the memorable moment, that go-yaml stopped supporting flexible/forward anchors? It broke a lot of anchoring features... here is the discussion, where you can find a commit that broke that: go-yaml/yaml#558 if that's the case you can just try to build with older version of go-yaml and see if it works, and if it does remove the anchor-breaking changes form your fork.

Just guessing here/trying to helpful :-)

@pivotaljohn
Copy link
Contributor

pivotaljohn commented Sep 20, 2021

Appreciate that, @groundnuty. I'm looking into this.

I'll update this comment with my "research", as I go.

Facts:

@hasufell
Copy link

This also stops me from migrating my yamls to ytt.

@pivotaljohn
Copy link
Contributor

FWIW, this issue was addressed on the main branch: #550 and will be included in the next release (coming soon).

@pivotaljohn
Copy link
Contributor

Released in v0.39.0.

@pivotaljohn pivotaljohn removed the in progress Work has begun by a community member or a maintainer; this issue may be included in a future release label May 17, 2022
@github-actions github-actions bot added the carvel triage This issue has not yet been triaged for relevance label May 17, 2022
@dprotaso
Copy link

woot! thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
carvel triage This issue has not yet been triaged for relevance enhancement This issue is a feature request
Projects
None yet
Development

No branches or pull requests

7 participants