crossplane-contrib / crossplane-contrib/function-go-templating

Support go's embed FS

Open
#54 0 comments 3 reactions 0 assignees View on GitHub
enhancement good first issue
Dominant language
Go
Stars
100
Forks
65
Avg merge
2d 6h
Merged PRs (30d)
9

Description

### What problem are you facing?
"FileSystem" Templates loaded from configmaps is a wonky user experience which makes them not as extendable as possible.

### How could this Function help solve your problem?

If you support go's embed it will allow templates to actually be loaded from filesystem and embedded into the function as a virtual file system which is available at runtime.

https://pkg.go.dev/embed

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reviewing the current template-loading path for configmaps and the Go embed package documentation. Determine how an embedded virtual filesystem should be exposed at runtime, then verify that templates can be loaded from it while preserving the existing configuration behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.