Documentation
¶
Index ¶
- Constants
- func GetEC2Client(ctx context.Context) (awsapi.EC2API, *aws.Config)
- func IsStorageAndCSIManaged(hostedControlPlane *hyperv1.HostedControlPlane) bool
- type HostedControlPlaneReconciler
- func (r *HostedControlPlaneReconciler) GetGuestClusterClient(ctx context.Context, hcp *hyperv1.HostedControlPlane) (*kubernetes.Clientset, error)
- func (r *HostedControlPlaneReconciler) LookupReleaseImage(ctx context.Context, hcp *hyperv1.HostedControlPlane) (*releaseinfo.ReleaseImage, error)
- func (r *HostedControlPlaneReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *HostedControlPlaneReconciler) SetupWithManager(mgr ctrl.Manager, createOrUpdate upsert.CreateOrUpdateFN, ...) error
Constants ¶
const ( // LastAppliedSecurityGroupTagsAnnotation is an annotation that stores the last applied security group tags for the hosted cluster. // This is used to track changes to security group tags and ensure that tags changes are applied to the default security group. // The value is a JSON string containing the tags. // Example: {"Name": "my-cluster", "Environment": "production"} LastAppliedSecurityGroupTagsAnnotation = "hypershift.openshift.io/last-applied-security-group-tags" DefaultAdminKubeconfigKey = "kubeconfig" ImageStreamAutoscalerImage = "cluster-autoscaler" ImageStreamClusterMachineApproverImage = "cluster-machine-approver" )
const ( // DeprecatedServiceEntryMessageFmt is exported so the HostedCluster controller test can // reconstruct the exact message without duplicating the text. DeprecatedServiceEntryMessageFmt = "The deprecated spec.services entry %q is present; remove this entry because the service is no longer used" // DeprecatedMultiArchMessage and the Deprecated*BackupKeyMessage constants are exported for // the same reason. DeprecatedMultiArchMessage = "The deprecated spec.platform.aws.multiArch field is set to true; remove it because it is no longer used" DeprecatedAESCBCBackupKeyMessage = "" /* 228-byte string literal not displayed */ DeprecatedAWSKMSBackupKeyMessage = "" /* 229-byte string literal not displayed */ DeprecatedAzureKMSBackupKeyMessage = "" /* 231-byte string literal not displayed */ )
Deprecation messages surfaced on the HostedClusterConfigurationDeprecated condition by reconcileDeprecatedConfigurationStatus. They are declared here, where they are produced, so that the controller and its tests (including the HostedCluster controller test that exercises how these messages are folded into the HostedCluster condition) share a single source of truth for the text. The *Fmt constants take a single %q argument identifying the deprecated element.
Variables ¶
This section is empty.
Functions ¶
func GetEC2Client ¶ added in v0.1.56
func IsStorageAndCSIManaged ¶
func IsStorageAndCSIManaged(hostedControlPlane *hyperv1.HostedControlPlane) bool
Types ¶
type HostedControlPlaneReconciler ¶
type HostedControlPlaneReconciler struct {
client.Client
GVKAccessChecker component.GVKAccessChecker
// ManagementClusterCapabilities can be asked for support of optional management cluster capabilities
ManagementClusterCapabilities capabilities.CapabiltyChecker
// SetDefaultSecurityContext is used to configure Security Context for containers
SetDefaultSecurityContext bool
// DefaultSecurityContextUID is the UID to use for the default security context
DefaultSecurityContextUID int64
// CertRotationScale determines how quickly we rotate certificates - should only be set faster in testing
CertRotationScale time.Duration
Log logr.Logger
ReleaseProvider releaseinfo.ProviderWithOpenShiftImageRegistryOverrides
UserReleaseProvider releaseinfo.Provider
EnableCIDebugOutput bool
OperateOnReleaseImage string
DefaultIngressDomain string
MetricsSet metrics.MetricsSet
EnableGMPMonitoring bool
KASHealthMetrics *kas.KASHealthMetrics
SREConfigHash string
EnableCVOManagementClusterMetricsAccess bool
ImageMetadataProvider imageregistry.ImageMetadataProvider
// contains filtered or unexported fields
}
func (*HostedControlPlaneReconciler) GetGuestClusterClient ¶ added in v0.1.2
func (r *HostedControlPlaneReconciler) GetGuestClusterClient(ctx context.Context, hcp *hyperv1.HostedControlPlane) (*kubernetes.Clientset, error)
func (*HostedControlPlaneReconciler) LookupReleaseImage ¶
func (r *HostedControlPlaneReconciler) LookupReleaseImage(ctx context.Context, hcp *hyperv1.HostedControlPlane) (*releaseinfo.ReleaseImage, error)
func (*HostedControlPlaneReconciler) SetupWithManager ¶
func (r *HostedControlPlaneReconciler) SetupWithManager(mgr ctrl.Manager, createOrUpdate upsert.CreateOrUpdateFN, hcp *hyperv1.HostedControlPlane) error