kcm

package
v0.1.32 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KubeControllerManagerConfigKey = "config.json"
	ServiceServingCAKey            = "service-ca.crt"
	RecyclerPodTemplateKey         = "recycler-pod.yaml"
)
View Source
const (
	AWSCloudProviderCredsKey = "credentials"
)
View Source
const (
	DefaultPort = 10257
)

Variables

This section is empty.

Functions

func ReconcileConfig

func ReconcileConfig(config, serviceServingCA *corev1.ConfigMap, ownerRef config.OwnerRef) error

func ReconcileDeployment

func ReconcileDeployment(deployment *appsv1.Deployment, config, rootCA, serviceServingCA *corev1.ConfigMap, p *KubeControllerManagerParams, platformType hyperv1.PlatformType) error

func ReconcileRecyclerConfig

func ReconcileRecyclerConfig(config *corev1.ConfigMap, ownerRef config.OwnerRef, releaseImageProvider *imageprovider.ReleaseImageProvider) error

func ReconcileService

func ReconcileService(svc *corev1.Service, owner config.OwnerRef) error

func ReconcileServiceMonitor

func ReconcileServiceMonitor(sm *prometheusoperatorv1.ServiceMonitor, ownerRef config.OwnerRef, clusterID string, metricsSet metrics.MetricsSet) error

Types

type KubeControllerManagerParams

type KubeControllerManagerParams struct {
	FeatureGate         *configv1.FeatureGateSpec    `json:"featureGate"`
	ServiceCA           []byte                       `json:"serviceCA"`
	CloudProvider       string                       `json:"cloudProvider"`
	CloudProviderConfig *corev1.LocalObjectReference `json:"cloudProviderConfig"`
	CloudProviderCreds  *corev1.LocalObjectReference `json:"cloudProviderCreds"`
	Port                int32                        `json:"port"`
	ServiceCIDR         string
	ClusterCIDR         string
	APIServer           *configv1.APIServerSpec `json:"apiServer"`
	DisableProfiling    bool                    `json:"disableProfiling"`

	config.DeploymentConfig
	config.OwnerRef
	HyperkubeImage          string `json:"hyperkubeImage"`
	AvailabilityProberImage string `json:"availabilityProberImage"`
	TokenMinterImage        string `json:"tokenMinterImage"`
}

func NewKubeControllerManagerParams

func NewKubeControllerManagerParams(ctx context.Context, hcp *hyperv1.HostedControlPlane, releaseImageProvider *imageprovider.ReleaseImageProvider, setDefaultSecurityContext bool) *KubeControllerManagerParams

func (*KubeControllerManagerParams) CipherSuites

func (p *KubeControllerManagerParams) CipherSuites() []string

func (*KubeControllerManagerParams) FeatureGates

func (p *KubeControllerManagerParams) FeatureGates() []string

func (*KubeControllerManagerParams) MinTLSVersion

func (p *KubeControllerManagerParams) MinTLSVersion() string

Jump to

Keyboard shortcuts

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