dns

package
v1.4.8 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client holds the client for interacting with the k8s DNS system.

func NewClient

func NewClient(logger logrus.FieldLogger, kubeClient kubernetes.Interface) *Client

NewClient returns an initialized DNSClient object.

func (*Client) CheckDNSProvider

func (c *Client) CheckDNSProvider(ctx context.Context) (Provider, error)

CheckDNSProvider checks that the DNS provider deployed in the cluster is supported and returns it.

func (*Client) ConfigureCoreDNS

func (c *Client) ConfigureCoreDNS(ctx context.Context, coreDNSNamespace, clusterDomain, traefikMeshNamespace string) error

ConfigureCoreDNS patches the CoreDNS configuration for Traefik Mesh.

func (*Client) ConfigureKubeDNS

func (c *Client) ConfigureKubeDNS(ctx context.Context, clusterDomain, traefikMeshNamespace string) error

ConfigureKubeDNS patches the KubeDNS configuration for Traefik Mesh.

func (*Client) RestoreCoreDNS

func (c *Client) RestoreCoreDNS(ctx context.Context) error

RestoreCoreDNS restores the CoreDNS configuration to pre-install state.

func (*Client) RestoreKubeDNS

func (c *Client) RestoreKubeDNS(ctx context.Context) error

RestoreKubeDNS restores the KubeDNS configuration to pre-install state.

type Provider

type Provider int

Provider represents a DNS provider.

const (
	UnknownDNS Provider = iota
	CoreDNS
	KubeDNS
)

Supported DNS providers.

Jump to

Keyboard shortcuts

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