-
Bug
-
Resolution: Done
-
Undefined
-
1.28.0, 1.29.0, 1.30.0, 1.31.0
-
None
-
None
-
False
-
None
-
False
-
-
Enhancement
-
Proposed
-
-
Issue
Currently regardless of KnativeServing configuration, SO always inserts
<default-domain>: ""
to the config-domain.
It is because the following line does not use ConfigureIfUnset.
https://github.com/openshift-knative/serverless-operator/blob/release-1.31/openshift-knative-operator/pkg/serving/extension.go#L98-L103
// Set the default host to the cluster's host. if domain, err := e.fetchClusterHost(ctx); err != nil { return fmt.Errorf("failed to fetch cluster host: %w", err) } else if domain != "" { common.Configure(&ks.Spec.CommonSpec, "domain", domain, "") }
It should use "ConfigureIfUnset" instead of "Configure".
Use case
For example, some users want to use the cluster local domain by default but it is not possible for this issue.
svc.cluster.local: ''"