dns

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: Apache-2.0 Imports: 24 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 added in v0.11.0

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,
	serviceAccountLister listerscorev1.ServiceAccountLister,
	roleLister listersrbacv1.RoleLister,
	roleBindingLister listersrbacv1.RoleBindingLister,
	deploymentLister listersappsv1.DeploymentLister,
	serviceLister listerscorev1.ServiceLister,
	endpointLister listerscorev1.EndpointsLister,
	networkPolicyLister listersnetworkingv1.NetworkPolicyLister,
	syncTargetUID types.UID,
	syncTargetName string,
	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.

Jump to

Keyboard shortcuts

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