mirror of
https://github.com/rancher/rke.git
synced 2025-07-03 10:37:19 +00:00
11 lines
352 B
Go
11 lines
352 B
Go
package addons
|
|
|
|
import (
|
|
rkeData "github.com/rancher/kontainer-driver-metadata/rke/templates"
|
|
"github.com/rancher/rke/templates"
|
|
)
|
|
|
|
func GetCoreDNSManifest(CoreDNSConfig interface{}, data map[string]interface{}) (string, error) {
|
|
return templates.CompileTemplateFromMap(templates.GetDefaultVersionedTemplate(rkeData.CoreDNS, data), CoreDNSConfig)
|
|
}
|