kcm

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2023 License: Apache-2.0 Imports: 26 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, servingCA *corev1.ConfigMap, p *KubeControllerManagerParams, apiPort *int32) error

func ReconcileKCMServiceServingCA

func ReconcileKCMServiceServingCA(cm, combinedCA *corev1.ConfigMap, ownerRef config.OwnerRef) error

func ReconcileRecyclerConfig

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

func ReconcileService

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

func ReconcileServiceAccount

func ReconcileServiceAccount(sa *corev1.ServiceAccount) 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, images map[string]string, 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