You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
klog.V(1).Infof("Created asset %s with %d bytes", m.SourcePath, m.length)
ifm.length==0 {
returnfmt.Errorf("%s is an empty asset", m.SourcePath)
}
returnnil
}
Which results in every addon file running through a templater. Only some files need templating, but up to now templating files that don't need it hasn't caused any issues.
But while trying to update the Kubeflow addon the YAML file has templating that essentially is used as validation during runtime to check for version compatibilities, but we're trying to template the file on load, resulting in:
panic: Failed to define asset kubeflow/kubeflow.yaml: template: kubeflow/kubeflow.yaml:118901: function "Template_Version_And_Istio_Version_Mismatched_Check_Installation" not defined
goroutine 1 [running]:
k8s.io/minikube/pkg/minikube/assets.MustBinAsset({0x10317f7e0?}, {0x101f2a8ec, 0x16}, {0x101f29d94?, 0x1?}, {0x101f1131e?, 0x14000593928?}, {0x101efea1b?, 0x10?})
/Users/powellsteven/repo/minikube/pkg/minikube/assets/vm_assets.go:323 +0xb8
k8s.io/minikube/pkg/minikube/assets.init()
/Users/powellsteven/repo/minikube/pkg/minikube/assets/addons.go:780 +0x687c
We have strictly been suffixing files that need templating with .tmpl so we can use that to decide what files need our templating. Everything else just load normally.
The text was updated successfully, but these errors were encountered:
When adding addon files we call
MustBinAsset
:minikube/pkg/minikube/assets/addons.go
Lines 105 to 111 in 86fc9d5
Which calls
NewBinAsset
:minikube/pkg/minikube/assets/vm_assets.go
Lines 329 to 342 in 86fc9d5
Which calls
loadData
:minikube/pkg/minikube/assets/vm_assets.go
Lines 355 to 375 in 86fc9d5
Which results in every addon file running through a templater. Only some files need templating, but up to now templating files that don't need it hasn't caused any issues.
But while trying to update the Kubeflow addon the YAML file has templating that essentially is used as validation during runtime to check for version compatibilities, but we're trying to template the file on load, resulting in:
We have strictly been suffixing files that need templating with
.tmpl
so we can use that to decide what files need our templating. Everything else just load normally.The text was updated successfully, but these errors were encountered: