Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions pkg/package-server/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,8 @@ func (o *PackageServerOptions) Run(ctx context.Context) error {
// honours the cluster TLS security profile on first boot or during upgrades.
if o.SecureServing.MinTLSVersion == "" {
if err := applyClusterTLSProfile(ctx, clientConfig, o.SecureServing); err != nil {
return fmt.Errorf("failed to apply cluster TLS profile to serving options: %w", err)
log.WithError(err).Warn("Failed to apply cluster TLS profile to serving options, continuing with defaults. " +
"PSM will inject the correct TLS flags on next reconciliation.")
Comment on lines 229 to +231
}
}

Expand Down Expand Up @@ -348,7 +349,7 @@ func (op *Operator) syncOLMConfig(obj interface{}) error {
// This is the fallback path used when --tls-min-version is not provided via flags
// (i.e. before the PSM has had a chance to inject them).
func applyClusterTLSProfile(ctx context.Context, config *rest.Config, serving *genericoptions.SecureServingOptionsWithLoopback) error {
const lookupTimeout = 30 * time.Second
const lookupTimeout = 10 * time.Second
profileCtx, cancel := context.WithTimeout(ctx, lookupTimeout)
defer cancel()

Expand Down