kubeapiserverexposure

package
v1.40.1 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AnyDeployedSNI

func AnyDeployedSNI(ctx context.Context, c client.Client) (bool, error)

AnyDeployedSNI returns true if any SNI is deployed in the cluster.

func NewSNI

func NewSNI(
	client client.Client,
	applier kubernetes.Applier,
	namespace string,
	values *SNIValues,
) component.DeployWaiter

NewSNI creates a new instance of DeployWaiter which deploys Istio resources for kube-apiserver SNI access.

func NewService

func NewService(
	logger logrus.FieldLogger,
	crclient client.Client,
	values *ServiceValues,
	serviceKey client.ObjectKey,
	sniServiceKey client.ObjectKey,
	waiter retry.Ops,
	clusterIPFunc func(clusterIP string),
	ingressFunc func(ingressIP string),
) component.DeployWaiter

NewService creates a new instance of DeployWaiter for the Service used to expose the kube-apiserver. <waiter> is optional and it's defaulted to github.com/gardener/gardener/pkg/utils/retry.DefaultOps().

Types

type IstioIngressGateway

type IstioIngressGateway struct {
	Namespace string
	Labels    map[string]string
}

IstioIngressGateway contains the values for istio ingress gateway configuration.

type SNIValues

type SNIValues struct {
	Hosts                    []string
	NamespaceUID             types.UID
	APIServerClusterIP       string
	APIServerInternalDNSName string
	IstioIngressGateway      IstioIngressGateway
}

SNIValues configure the kube-apiserver service SNI.

type ServiceValues

type ServiceValues struct {
	Annotations map[string]string
	SNIPhase    component.Phase
}

ServiceValues configure the kube-apiserver service.

Jump to

Keyboard shortcuts

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