mirror of
https://github.com/rancher/rke.git
synced 2025-05-08 16:27:43 +00:00
13 lines
331 B
Go
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)
|
|
}
|