Skip to main content

Module clusterdomain

Module clusterdomain 

Source
Expand description

Port of internal/clusterdomain/clusterdomain.go: discovers the DNS zone a cluster serves, through the sources its driver names in driver::Driver::domain_sources.

Modules§

resolve
Port of internal/clusterdomain/resolve.go: settles cluster.network.cluster_domain against the zone the cluster actually serves.

Structs§

DiscoverResult
Port of clusterdomain.Result: the zone a cluster’s DNS is confirmed to serve.

Enums§

ClusterDomainError
Port of clusterdomain.ErrNoZoneFound and the source-specific sentinels it wraps.

Constants§

COREDNS_COREFILE
Port of clusterdomain.CoreDNSCorefile: reads the kubernetes plugin zone from the Corefile in kube-system.
KUBELET_CONFIGZ
Port of clusterdomain.KubeletConfigz: reads the kubelet’s clusterDomain through nodes/proxy; usually admin-only.
KUBE_DNS_DOMAIN_ARG
Port of clusterdomain.KubeDNSDomainArg: reads the --domain argument of a kube-dns Deployment.
RESOLV_CONF_SEARCH
Port of clusterdomain.ResolvConfSearch: reads a probe pod’s /etc/resolv.conf search list; needs only the right to run a pod.

Functions§

defaults
Port of clusterdomain.Defaults: the chain for a driver with no opinion of its own.
discover
Port of clusterdomain.Discover.
first_node_name
Port of clusterdomain.firstNodeName.
is_forbidden
Port of clusterdomain.isForbidden. Takes Option since the Go original is called with a possibly-nil error.
parse_corefile
Port of clusterdomain.parseCorefile.
parse_kube_dns_args
Port of clusterdomain.parseKubeDNSArgs.
parse_kubelet_config_z
Port of clusterdomain.parseKubeletConfigZ.
parse_resolv_conf
Port of clusterdomain.parseResolvConf.
refused_or_absent
Port of clusterdomain.refusedOrAbsent, generalized to any ClusterDomainError.
sources_for
Port of clusterdomain.SourcesFor.