-
Notifications
You must be signed in to change notification settings - Fork 49
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
Implement airshipctl render command via Kustomize #16
Comments
@dukov is working on this |
Render command filters documents and prints them to user-defined output in a form of multi-document YAML. Sub-command receives following document filter flags: * label * annotation * apiVersion (a.k.a group-version) * kind * filter Related: #16 Change-Id: I7efb0a478e1070efd1791ab10d7c3946c8c28630
Filter evaluates logical expression written in Go format. This expression filters documents out from bundle. For example filter 'spec.image == "ubuntu:xenial" && metadata.label.app == "helm"' will return all documents which have values referenced by JSON path specified in the expression. Related: airshipit#15 Related: airshipit#16 Change-Id: I5881f80680863d18f35175eaed5f9d54d8a94e80
Kustomize filtering and rendering mechanisms are used. Related: airshipit#14 Related: airshipit#15 Related: airshipit#16 Change-Id: Ied06b95577772cc51f51f3ebb3acd441388d5cda
Looks like there is something very similar on the way upstream in kustomize: |
Looks like I may have closed this too early. |
This is an excellent feature and we definitely need to incorporate it! |
New Related ChangeLink: https://review.opendev.org/711487 |
@dukov with moving render to the phase command, should we close this issue out? Thanks |
Yes. Let's close it. |
Problem description (if applicable)
Airshipctl needs the ability to render documents for a site.
Proposed change
Implement airshipctl render command as a document CLI command. This should be done using Kustomize for rendering.
Potential impacts
None.
The text was updated successfully, but these errors were encountered: