kas

package
v0.1.52 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: Apache-2.0 Imports: 49 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AuditPolicyConfigMapKey  = "policy.yaml"
	AuditPolicyProfileMapKey = "profile"
)
View Source
const (
	KubeAPIServerConfigKey  = "config.json"
	AuthenticationConfigKey = "auth.json"
	OauthMetadataConfigKey  = "oauthMetadata.json"
	AuditLogFile            = "audit.log"
	EgressSelectorConfigKey = "config.yaml"
	DefaultEtcdPort         = 2379
)
View Source
const (
	KonnectivityHealthPort      = 2041
	KonnectivityServerLocalPort = 8090
	KonnectivityServerPort      = 8091
)
View Source
const (
	ComponentName = "kube-apiserver"
)
View Source
const (
	KubeconfigKey = util.KubeconfigKey
)

Variables

This section is empty.

Functions

func AdaptAuditConfig

func AdaptAuditConfig(cpContext component.ControlPlaneContext, auditCfgMap *corev1.ConfigMap) error

func GenerateKubeConfig

func GenerateKubeConfig(cpContext component.ControlPlaneContext, cert *corev1.Secret, url string) ([]byte, error)

func InClusterKASURL

func InClusterKASURL(platformType hyperv1.PlatformType) string

func NewComponent

func NewComponent() component.ControlPlaneComponent

Types

type KubeAPIServer

type KubeAPIServer struct {
}

func (*KubeAPIServer) IsRequestServing

func (k *KubeAPIServer) IsRequestServing() bool

IsRequestServing implements controlplanecomponent.ComponentOptions.

func (*KubeAPIServer) MultiZoneSpread

func (k *KubeAPIServer) MultiZoneSpread() bool

MultiZoneSpread implements controlplanecomponent.ComponentOptions.

func (*KubeAPIServer) NeedsManagementKASAccess

func (k *KubeAPIServer) NeedsManagementKASAccess() bool

NeedsManagementKASAccess implements controlplanecomponent.ComponentOptions.

type KubeAPIServerConfigParams

type KubeAPIServerConfigParams struct {
	ExternalIPConfig             *configv1.ExternalIPConfig
	ClusterNetwork               []string
	ServiceNetwork               []string
	NamedCertificates            []configv1.APIServerNamedServingCert
	KASPodPort                   int32
	TLSSecurityProfile           *configv1.TLSSecurityProfile
	AdditionalCORSAllowedOrigins []string
	InternalRegistryHostName     string
	ExternalRegistryHostNames    []string
	DefaultNodeSelector          string
	AdvertiseAddress             string
	ServiceAccountIssuerURL      string
	CloudProvider                string
	CloudProviderConfigRef       *corev1.LocalObjectReference
	EtcdURL                      string
	FeatureGates                 []string
	NodePortRange                string
	AuditWebhookEnabled          bool
	ConsolePublicURL             string
	DisableProfiling             bool
	APIServerSTSDirectives       string
	Authentication               *configv1.AuthenticationSpec
	MaxRequestsInflight          string
	MaxMutatingRequestsInflight  string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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