package
0.0.0-20240930135417-6e08bcaf2492
Repository: https://github.com/coredns/ci.git
Documentation: pkg.go.dev
# Functions
CorednsLogs returns the current coredns log.
CoreDNSPodIPs return the ips of all coredns pods.
DoIntegrationTest executes a test case.
DoIntegrationTests executes test cases.
FetchDockerContainerID fetches the docker container ID from the container name.
HasResourceRestarted verifies if any of the specified containers in the kube-system namespace has restarted.
Kubectl executes the kubectl command with the given arguments.
LoadCorefile calls loadCorefileAndZonefile without a zone file.
LoadCorefileAndZonefile constructs a configmap defining files for the corefile and zone, If restart is true, restarts the coredns pod to load the new configmap, and waits for the coredns pod to be ready.
No description provided by the author
ParseDigAXFR specifically parses AXFR responses which have a different format.
ParseDigResponse parses dig-like command output and returns a dns.Msg.
No description provided by the author
StartClientPod starts a dns client pod in the namespace.
UpstreamServer starts a local instance of coredns with the given zone file.
ValidateAXFR compares the dns records returned against a set of expected records.
WaitForClientPodRecord waits for the client pod A record to be served by CoreDNS.
WaitReady waits for n corednses to be ready or times out after maxWait seconds with an error.
WaitReady waits for 1 coredns to be ready or times out after maxWait seconds with an error.
# Constants
configmap is the header used for defining the coredns configmap.
configmap is the header used for defining the coredns configmap.
ExampleNet is an example upstream zone file.
KubednsConfigmap is the header used for defining the kube-dns configmap.
# Type aliases
DigParser is a function that specialises in parsing different responses from running dig.