coredns

package
v0.17.0-alpha.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

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 ApplyManifest(ctx context.Context, defaultImageRegistry string, inClusterConfig *rest.Config, serverVersion *version.Info) error

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

func GetNameservers(resolvConf []byte) []string

GetNameservers returns nameservers (if any) listed in /etc/resolv.conf

func GetUserID added in v0.7.0

func GetUserID() int64

GetUserID retrieves the current user id and if the current process is running as root we fallback to UID 1001

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL