Exporting Ignition's `renderConfig` functionality
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 974
- Forks
- 296
- Avg merge
- 6d 14h
- Merged PRs (30d)
- 9
Description
Feature Request
Exporting Ignition's renderConfig functionality so that external agents can resolve Ignition configs same way as Ignition engines does on nodes.
Desired Feature
Ignition uses renderConfig on machines to resolve remote sources for replace and append directives.
- right now
renderConfigfunction is unexported Fetcherstruct used by renderConfig can be vendored as it is part ofinternalpackage.
Exporting the renderConfig function would allow external agents to render an Ignition config that is complaint with Ignition's behaviour.
Specific Use Case
To manage the configuration for machines in Openshift clusters, there is plan to deploy an Ignition endpoint inside the cluster, that will serve Ignition config to machines. The config served to machines should be static and should have no remote sources.
Rendering the remote sources in the ignition config (that might have been provided by user) ensures that machines joining the cluster at a time in future continue to receive the same configuration even if the contents of the remote location have changed.
/cc: @crawford @yifan-gu
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with internal/exec/engine.go at the linked renderConfig implementation and trace how its Fetcher dependency is used. Review the surrounding package API and existing tests before deciding what a supported exported entry point should expose. Done means external agents can invoke equivalent rendering behavior for remote replace and append sources without relying on an unexported function.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- devops, tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100