1
0
mirror of https://github.com/rancher/rke.git synced 2025-06-25 15:01:58 +00:00
rke/addons/addons.go

13 lines
330 B
Go

package addons
import "github.com/rancher/rke/templates"
func GetAddonsExcuteJob(addonName, nodeName, image string) (string, error) {
jobConfig := map[string]string{
"AddonName": addonName,
"NodeName": nodeName,
"Image": image,
}
return templates.CompileTemplateFromMap(templates.JobDeployerTemplate, jobConfig)
}