Documentation ¶
Index ¶
- func MakeDeployment(name, namespace, image string) *appsv1.Deployment
- func MakeNetworkPolicy(name, namespace, tenantID string, kubeEndpoints *corev1.EndpointSubset) *networkingv1.NetworkPolicy
- func MakeRole(name, namespace string) *rbacv1.Role
- func MakeRoleBinding(name, namespace string) *rbacv1.RoleBinding
- func MakeService(name, namespace string) *corev1.Service
- func MakeServiceAccount(name, namespace string) *corev1.ServiceAccount
- type DNSProcessor
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 MakeRoleBinding ¶
func MakeRoleBinding(name, namespace string) *rbacv1.RoleBinding
func MakeService ¶
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.
Click to show internal directories.
Click to hide internal directories.