Documentation ¶
Index ¶
- Constants
- func ReconcileAuditConfig(auditCfgMap *corev1.ConfigMap, ownerRef config.OwnerRef, ...) error
- func ReconcileBootstrapKubeconfigSecret(secret, cert, ca *corev1.Secret, ownerRef config.OwnerRef, externalURL string) error
- func ReconcileConfig(config *corev1.ConfigMap, ownerRef hcpconfig.OwnerRef, ...) error
- func ReconcileEgressSelectorConfig(config *corev1.ConfigMap, ownerRef hcpconfig.OwnerRef) error
- func ReconcileExternalKubeconfigSecret(secret, cert, ca *corev1.Secret, ownerRef config.OwnerRef, ...) error
- func ReconcileKubeAPIServerDeployment(deployment *appsv1.Deployment, ownerRef config.OwnerRef, ...) error
- func ReconcileLocalhostKubeconfigSecret(secret, cert, ca *corev1.Secret, ownerRef config.OwnerRef, apiServerPort int32) error
- func ReconcileOauthMetadata(cfg *corev1.ConfigMap, ownerRef config.OwnerRef, externalOAuthAddress string, ...) error
- func ReconcileService(svc *corev1.Service, strategy *hyperv1.ServicePublishingStrategy, ...) error
- func ReconcileServiceCAPIKubeconfigSecret(secret, cert, ca *corev1.Secret, ownerRef config.OwnerRef, apiServerPort int32) error
- func ReconcileServiceKubeconfigSecret(secret, cert, ca *corev1.Secret, ownerRef config.OwnerRef, apiServerPort int32) error
- func ReconcileServiceStatus(svc *corev1.Service, strategy *hyperv1.ServicePublishingStrategy, ...) (host string, port int32, err error)
- type KubeAPIServerConfigParams
- type KubeAPIServerImages
- type KubeAPIServerParams
- func (p *KubeAPIServerParams) AdditionalCORSAllowedOrigins() []string
- func (p *KubeAPIServerParams) AuditPolicyProfile() configv1.AuditProfileType
- func (p *KubeAPIServerParams) ClusterNetwork() string
- func (p *KubeAPIServerParams) ConfigParams() KubeAPIServerConfigParams
- func (p *KubeAPIServerParams) DefaultNodeSelector() string
- func (p *KubeAPIServerParams) ExternalIPConfig() *configv1.ExternalIPConfig
- func (p *KubeAPIServerParams) ExternalKubeconfigKey() string
- func (p *KubeAPIServerParams) ExternalRegistryHostNames() []string
- func (p *KubeAPIServerParams) ExternalURL() string
- func (p *KubeAPIServerParams) FeatureGates() []string
- func (p *KubeAPIServerParams) InternalRegistryHostName() string
- func (p *KubeAPIServerParams) NamedCertificates() []configv1.APIServerNamedServingCert
- func (p *KubeAPIServerParams) ServiceAccountIssuerURL() string
- func (p *KubeAPIServerParams) ServiceNetwork() string
- func (p *KubeAPIServerParams) ServiceNodePortRange() string
- func (p *KubeAPIServerParams) TLSSecurityProfile() *configv1.TLSSecurityProfile
- type KubeAPIServerServiceParams
Constants ¶
View Source
const ( KubeAPIServerConfigKey = "config.json" OauthMetadataConfigKey = "oauthMetadata.json" AuditLogFile = "audit.log" EgressSelectorConfigKey = "config.yaml" DefaultEtcdPort = 2379 )
View Source
const (
AuditPolicyConfigMapKey = "policy.yaml"
)
View Source
const (
EgressSelectorConfigMapKey = "config.yaml"
)
View Source
const (
KubeconfigKey = "kubeconfig"
)
Variables ¶
This section is empty.
Functions ¶
func ReconcileAuditConfig ¶
func ReconcileConfig ¶
func ReconcileKubeAPIServerDeployment ¶
func ReconcileKubeAPIServerDeployment(deployment *appsv1.Deployment, ownerRef config.OwnerRef, deploymentConfig config.DeploymentConfig, namedCertificates []configv1.APIServerNamedServingCert, cloudProviderConfigRef *corev1.LocalObjectReference, images KubeAPIServerImages, config *corev1.ConfigMap, auditWebhookRef *corev1.LocalObjectReference) error
func ReconcileOauthMetadata ¶
func ReconcileService ¶
func ReconcileService(svc *corev1.Service, strategy *hyperv1.ServicePublishingStrategy, owner *metav1.OwnerReference, apiServerPort int) error
func ReconcileServiceStatus ¶
Types ¶
type KubeAPIServerConfigParams ¶
type KubeAPIServerConfigParams struct { ExternalIPConfig *configv1.ExternalIPConfig ClusterNetwork string ServiceNetwork string NamedCertificates []configv1.APIServerNamedServingCert APIServerPort 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 }
type KubeAPIServerImages ¶
type KubeAPIServerParams ¶
type KubeAPIServerParams struct { APIServer *configv1.APIServer `json:"apiServer"` FeatureGate *configv1.FeatureGate `json:"featureGate"` Network *configv1.Network `json:"network"` Image *configv1.Image `json:"image"` Scheduler *configv1.Scheduler `json:"scheduler"` CloudProvider string `json:"cloudProvider"` CloudProviderConfig *corev1.LocalObjectReference `json:"cloudProviderConfig"` ServiceAccountIssuer string `json:"serviceAccountIssuer"` ServiceCIDR string `json:"serviceCIDR"` PodCIDR string `json:"podCIDR"` AdvertiseAddress string `json:"advertiseAddress"` ExternalAddress string `json:"externalAddress"` ExternalPort int32 `json:"externalPort"` ExternalOAuthAddress string `json:"externalOAuthAddress"` ExternalOAuthPort int32 `json:"externalOAuthPort"` EtcdURL string `json:"etcdAddress"` APIServerPort int32 `json:"apiServerPort"` KubeConfigRef *hyperv1.KubeconfigSecretRef `json:"kubeConfigRef"` AuditWebhookRef *corev1.LocalObjectReference `json:"auditWebhookRef"` config.DeploymentConfig config.OwnerRef Images KubeAPIServerImages `json:"images"` }
func NewKubeAPIServerParams ¶
func NewKubeAPIServerParams(ctx context.Context, hcp *hyperv1.HostedControlPlane, globalConfig config.GlobalConfig, images map[string]string, externalOAuthAddress string, externalOAuthPort int32) *KubeAPIServerParams
func (*KubeAPIServerParams) AdditionalCORSAllowedOrigins ¶
func (p *KubeAPIServerParams) AdditionalCORSAllowedOrigins() []string
func (*KubeAPIServerParams) AuditPolicyProfile ¶
func (p *KubeAPIServerParams) AuditPolicyProfile() configv1.AuditProfileType
func (*KubeAPIServerParams) ClusterNetwork ¶
func (p *KubeAPIServerParams) ClusterNetwork() string
func (*KubeAPIServerParams) ConfigParams ¶
func (p *KubeAPIServerParams) ConfigParams() KubeAPIServerConfigParams
func (*KubeAPIServerParams) DefaultNodeSelector ¶
func (p *KubeAPIServerParams) DefaultNodeSelector() string
func (*KubeAPIServerParams) ExternalIPConfig ¶
func (p *KubeAPIServerParams) ExternalIPConfig() *configv1.ExternalIPConfig
func (*KubeAPIServerParams) ExternalKubeconfigKey ¶
func (p *KubeAPIServerParams) ExternalKubeconfigKey() string
func (*KubeAPIServerParams) ExternalRegistryHostNames ¶
func (p *KubeAPIServerParams) ExternalRegistryHostNames() []string
func (*KubeAPIServerParams) ExternalURL ¶
func (p *KubeAPIServerParams) ExternalURL() string
func (*KubeAPIServerParams) FeatureGates ¶
func (p *KubeAPIServerParams) FeatureGates() []string
func (*KubeAPIServerParams) InternalRegistryHostName ¶
func (p *KubeAPIServerParams) InternalRegistryHostName() string
func (*KubeAPIServerParams) NamedCertificates ¶
func (p *KubeAPIServerParams) NamedCertificates() []configv1.APIServerNamedServingCert
func (*KubeAPIServerParams) ServiceAccountIssuerURL ¶
func (p *KubeAPIServerParams) ServiceAccountIssuerURL() string
func (*KubeAPIServerParams) ServiceNetwork ¶
func (p *KubeAPIServerParams) ServiceNetwork() string
func (*KubeAPIServerParams) ServiceNodePortRange ¶
func (p *KubeAPIServerParams) ServiceNodePortRange() string
func (*KubeAPIServerParams) TLSSecurityProfile ¶
func (p *KubeAPIServerParams) TLSSecurityProfile() *configv1.TLSSecurityProfile
type KubeAPIServerServiceParams ¶
type KubeAPIServerServiceParams struct { APIServerPort int OwnerReference *metav1.OwnerReference }
func NewKubeAPIServerServiceParams ¶
func NewKubeAPIServerServiceParams(hcp *hyperv1.HostedControlPlane) *KubeAPIServerServiceParams
Click to show internal directories.
Click to hide internal directories.