dns

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2023 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeDeployment

func MakeDeployment(name, namespace, image string) *appsv1.Deployment

func MakeNetworkPolicy

func MakeNetworkPolicy(name, namespace, tenantID string, kubeEndpoints *corev1.EndpointSubset) *networkingv1.NetworkPolicy

func MakeRole

func MakeRole(name, namespace string) *rbacv1.Role

func MakeRoleBinding

func MakeRoleBinding(name, namespace string) *rbacv1.RoleBinding

func MakeService

func MakeService(name, namespace string) *corev1.Service

func MakeServiceAccount

func MakeServiceAccount(name, namespace string) *corev1.ServiceAccount

Types

type DNSProcessor

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

func NewDNSProcessor

func NewDNSProcessor(
	downstreamKubeClient kubernetes.Interface,
	syncerNamespaceInformerFactory kubernetesinformers.SharedInformerFactory,
	syncTargetName string,
	syncTargetUID types.UID,
	dnsNamespace string,
	dnsImage string) *DNSProcessor

func (*DNSProcessor) EnsureDNSUpAndReady

func (d *DNSProcessor) EnsureDNSUpAndReady(ctx context.Context, namespaceLocator shared.NamespaceLocator) (bool, error)

EnsureDNSUpAndReady creates all DNS-related resources if necessary. It also checks that the DNS Deployment for this workspace are effectively reachable through the Service. It returns true if the DNS is setup and reachable, and returns an error if there was an error during the check or creation of the DNS-related resources.

func (*DNSProcessor) ServiceLister

func (d *DNSProcessor) ServiceLister() listerscorev1.ServiceLister

Jump to

Keyboard shortcuts

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