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

feat: add a custom delimited Go template to Zarf templating #2140

Closed
wants to merge 4 commits into from

Conversation

Racer159
Copy link
Contributor

@Racer159 Racer159 commented Nov 13, 2023

Description

This is an experimental pull request to add Go templating to Zarf text templates.

Cue and YTT were also evaluated and if this is adopted an ADR should be created.

Related Issue

Fixes #1483

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Other (security config, docs update, etc)

Checklist before merging

Copy link

netlify bot commented Nov 13, 2023

Deploy Preview for zarf-docs ready!

Name Link
🔨 Latest commit f2bd1ac
🔍 Latest deploy log https://app.netlify.com/sites/zarf-docs/deploys/656683e8f41760000882a7af
😎 Deploy Preview https://deploy-preview-2140--zarf-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@Racer159 Racer159 added needs-adr needs-docs PR Label - Docs required to merge needs-tests PR Label - Tests required to merge needs-design labels Nov 13, 2023
@Racer159 Racer159 changed the title Add a custom delimited Go template to Zarf templating feat: add a custom delimited Go template to Zarf templating Nov 13, 2023
@bdw617
Copy link
Contributor

bdw617 commented Nov 29, 2023

Updated example of go templating into a values file:
example below simply populates a value in the podinfo values file with HiHowAreYou. This has been no means tested, and almost certainly NOT the way we're gong to solve this problem in the long term.

 zarf package create examples/helm-charts
 zarf package deploy zarf-package-helm-charts-amd64-0.0.1.tar.zst --set HELLO=HiHowAreYou --components=demo-helm-local-chart --confirm -l trace

@Noxsios
Copy link
Contributor

Noxsios commented Mar 21, 2024

Closing for now, mostly due to stale reasons, but also the scope of this effort is still not well-defined.

@Noxsios Noxsios closed this Mar 21, 2024
@Noxsios Noxsios deleted the templating-experiment branch March 21, 2024 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-design needs-docs PR Label - Docs required to merge needs-tests PR Label - Tests required to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Conditional Logic with Zarf Variables
3 participants