Skip to content

Commit d851c78

Browse files
authored
Merge pull request #3463 from jandubois/graduate-base
Graduate base/file embedding
2 parents 2625f08 + dceb0b6 commit d851c78

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

pkg/limatmpl/embed.go

-11
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,6 @@ import (
2424
"github.com/sirupsen/logrus"
2525
)
2626

27-
var warnBaseIsExperimental = sync.OnceFunc(func() {
28-
logrus.Warn("`base` is experimental")
29-
})
30-
31-
var warnFileIsExperimental = sync.OnceFunc(func() {
32-
logrus.Warn("`provision[*].file` and `probes[*].file` are experimental")
33-
})
34-
3527
// Embed will recursively resolve all "base" dependencies and update the
3628
// template with the merged result. It also inlines all external provisioning
3729
// and probe scripts.
@@ -114,7 +106,6 @@ func (tmpl *Template) embedAllBases(ctx context.Context, embedAll, defaultBase b
114106
}
115107

116108
func (tmpl *Template) embedBase(ctx context.Context, baseLocator limayaml.LocatorWithDigest, embedAll bool, seen map[string]bool) error {
117-
warnBaseIsExperimental()
118109
logrus.Debugf("Embedding base %q in template %q", baseLocator.URL, tmpl.Locator)
119110
if err := tmpl.Unmarshal(); err != nil {
120111
return err
@@ -632,7 +623,6 @@ func (tmpl *Template) embedAllScripts(ctx context.Context, embedAll bool) error
632623
if p.File == nil {
633624
continue
634625
}
635-
warnFileIsExperimental()
636626
// Don't overwrite existing script. This should throw an error during validation.
637627
if p.Script != "" {
638628
continue
@@ -650,7 +640,6 @@ func (tmpl *Template) embedAllScripts(ctx context.Context, embedAll bool) error
650640
if p.File == nil {
651641
continue
652642
}
653-
warnFileIsExperimental()
654643
newName := "script"
655644
switch p.Mode {
656645
case limayaml.ProvisionModeData:

website/content/en/docs/releases/experimental.md

-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ The following features are experimental and subject to change:
1212
- `video.display: vnc` and relevant configuration (`video.vnc.display`)
1313
- `audio.device`
1414
- `mountInotify: true`
15-
- `base:` and variations like `base[]:` and `base[].url`
16-
- `provision[].file:` and alternative `provision[].file.url:`
17-
- `probes[].file:` and alternative `probes[].file.url:`
1815

1916
The following commands are experimental and subject to change:
2017

0 commit comments

Comments
 (0)