Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultImage = "coredns/coredns:1.11.0" ManifestRelativePath = "coredns/coredns.yaml" ManifestsOutputFolder = "/tmp/manifests-to-apply" VarImage = "IMAGE" VarHostDNS = "HOST_CLUSTER_DNS" VarRunAsUser = "RUN_AS_USER" VarRunAsNonRoot = "RUN_AS_NON_ROOT" VarRunAsGroup = "RUN_AS_GROUP" VarLogInDebug = "LOG_IN_DEBUG" )
Variables ¶
View Source
var ErrNoCoreDNSManifests = fmt.Errorf("no coredns manifests found")
Functions ¶
func ApplyManifest ¶
func GetGroupID ¶ added in v0.14.0
func GetGroupID() int64
GetGroupID retrieves the current group id and if the current process is running as root we fallback to GID 1001
func GetNameservers ¶ added in v0.15.0
GetNameservers returns nameservers (if any) listed in /etc/resolv.conf
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.