Documentation
¶
Index ¶
Constants ¶
View Source
const ( HostedClusterFinalizer = "hypershift.openshift.io/finalizer" ControlPlaneComponentFinalizer = "hypershift.openshift.io/component-finalizer" ReportingGracePeriodRequeueDuration = 25 * time.Second ImageStreamCAPI = "cluster-capi-controllers" ImageStreamAutoscalerImage = "cluster-autoscaler" )
View Source
const ( NeedManagementKASAccessLabel = "hypershift.openshift.io/need-management-kas-access" NeedMetricsServerAccessLabel = "hypershift.openshift.io/need-metrics-server-access" )
View Source
const (
ControlPlaneNamespaceLabelKey = "hypershift.openshift.io/hosted-control-plane"
)
View Source
const (
// DefaultSecurityContextUIDAnnnotation is used to store the allocated UID in namespace annotations
DefaultSecurityContextUIDAnnnotation = "hypershift.openshift.io/default-security-context-uid"
)
Variables ¶
View Source
var ( // NoopReconcile is just a default mutation function that does nothing. NoopReconcile controllerutil.MutateFn = func() error { return nil } CAPIComponents = []string{capimanagerv2.ComponentName, capiproviderv2.ComponentName} )
Functions ¶
func FindNodePoolStatusCondition ¶ added in v0.1.43
func FindNodePoolStatusCondition(conditions []hyperv1.NodePoolCondition, conditionType string) *hyperv1.NodePoolCondition
FindStatusCondition finds the conditionType in conditions.
func SetupWebhookWithManager ¶
func SetupWebhookWithManager(mgr ctrl.Manager, imageMetaDataProvider *hyperutil.RegistryClientImageMetadataProvider, logger logr.Logger) error
SetupWebhookWithManager sets up HostedCluster webhooks.
Types ¶
type DashboardTemplateData ¶ added in v0.1.10
type HostedClusterReconciler ¶
type HostedClusterReconciler struct {
client.Client
// ManagementClusterCapabilities can be asked for support of optional management cluster capabilities
ManagementClusterCapabilities capabilities.CapabiltyChecker
// HypershiftOperatorImage is the image used to deploy the control plane operator if
// 1) There is no hypershift.openshift.io/control-plane-operator-image annotation on the HostedCluster and
// 2) The OCP version being deployed is the latest version supported by Hypershift
HypershiftOperatorImage string
RegistryOverrides map[string]string
// SetDefaultSecurityContext is used to configure Security Context for containers
SetDefaultSecurityContext bool
// Clock is used to determine the time in a testable way.
Clock clock.WithTickerAndDelayedExecution
EnableOCPClusterMonitoring bool
EnableCIDebugOutput bool
PrivatePlatform hyperv1.PlatformType
OIDCStorageProviderS3BucketName string
S3Client awsapi.S3API
GCPOIDCStorageBucketName string
GCSClient gcpapi.GCSAPI
MetricsSet metrics.MetricsSet
SREConfigHash string
OperatorNamespace string
RegistryProvider globalconfig.RegistryProvider
KubevirtInfraClients kvinfra.KubevirtInfraClientMap
MonitoringDashboards bool
CertRotationScale time.Duration
EnableCVOManagementClusterMetricsAccess bool
EnableEtcdRecovery bool
FeatureSet configv1.FeatureSet
OpenShiftTrustedCAFilePath string
// via the shared ingress. Defaults to probeSharedIngressEndpoint. Override
// in tests to avoid real network calls.
ProbeSharedIngressEndpoint func(context context.Context, serviceIP string, servicePort int, kasHostname string) bool
// HCPEgressBlockCIDRs, when non-empty, provides a static list of CIDRs to
// block in HCP namespace egress NetworkPolicies. These replace the
// dynamically-discovered management cluster KAS endpoint IPs, eliminating
// NetworkPolicy churn during KAS rolling restarts that can trigger OVN
// port-group reconciliation races and cause traffic drops to HCP routers.
HCPEgressBlockCIDRs []string
// contains filtered or unexported fields
}
HostedClusterReconciler reconciles a HostedCluster object
func (*HostedClusterReconciler) SetupWithManager ¶
func (r *HostedClusterReconciler) SetupWithManager(mgr ctrl.Manager, createOrUpdate upsert.CreateOrUpdateProvider, metricsSet metrics.MetricsSet, operatorNamespace string) error
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
internal
|
|
|
platform/gcp
Package gcp provides Google Cloud Platform support for HyperShift.
|
Package gcp provides Google Cloud Platform support for HyperShift. |
Click to show internal directories.
Click to hide internal directories.