Skip to content

Commit 4a52856

Browse files
committed
replace string literal with API const
Signed-off-by: Marc Sluiter <[email protected]>
1 parent 14cf3dc commit 4a52856

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

controllers/cluster/capabilities.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,7 @@ func NewCapabilities(config *rest.Config, reader client.Reader, logger logr.Logg
6969
// see https://github.com/openshift/api/blob/c1fdeb0788c16659238d93ec45ce2e798c14eb88/config/v1/types_infrastructure.go#L129-L147
7070
if cpTopology == configv1.HighlyAvailableTopologyMode ||
7171
cpTopology == configv1.SingleReplicaTopologyMode ||
72-
// quick fix without updating openshift/api dependency, it would need too many other updates
73-
// see https://github.com/openshift/api/blob/017e9dd0276e4ed0242a759dffd419d728337876/config/v1/types_infrastructure.go#L142
74-
// update to const once deps are updated
75-
cpTopology == "HighlyAvailableArbiter" ||
72+
cpTopology == configv1.HighlyAvailableArbiterMode ||
7673
cpTopology == configv1.ExternalTopologyMode {
7774

7875
logger.Info("supported control plane topology", "topology", cpTopology)

0 commit comments

Comments
 (0)