Documentation
¶
Index ¶
- Constants
- func AdaptAuditConfig(cpContext component.ControlPlaneContext, auditCfgMap *corev1.ConfigMap) error
- func GenerateKubeConfig(cpContext component.ControlPlaneContext, cert *corev1.Secret, url string) ([]byte, error)
- func InClusterKASURL(platformType hyperv1.PlatformType) string
- func NewComponent() component.ControlPlaneComponent
- type KubeAPIServer
- type KubeAPIServerConfigParams
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 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
}
func NewConfigParams ¶
func NewConfigParams(hcp *hyperv1.HostedControlPlane) KubeAPIServerConfigParams
Source Files
¶
Click to show internal directories.
Click to hide internal directories.