1
0
mirror of https://github.com/rancher/rke.git synced 2025-05-08 16:27:43 +00:00
rke/addons/addons.go
2018-07-17 09:49:49 -07:00

13 lines
331 B
Go

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