File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
pkg/console/subresource/deployment Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ func DefaultDownloadsDeployment(
114
114
115
115
func withReplicas (deployment * appsv1.Deployment , infrastructureConfig * configv1.Infrastructure ) {
116
116
replicas := int32 (SingleNodeConsoleReplicas )
117
- if infrastructureConfig .Status .InfrastructureTopology != configv1 .SingleReplicaTopologyMode {
117
+ if infrastructureConfig .Status .ControlPlaneTopology != configv1 .SingleReplicaTopologyMode {
118
118
replicas = int32 (DefaultConsoleReplicas )
119
119
}
120
120
deployment .Spec .Replicas = & replicas
@@ -126,7 +126,7 @@ func withAffinity(
126
126
component string ,
127
127
) {
128
128
affinity := & corev1.Affinity {}
129
- if infrastructureConfig .Status .InfrastructureTopology != configv1 .SingleReplicaTopologyMode {
129
+ if infrastructureConfig .Status .ControlPlaneTopology != configv1 .SingleReplicaTopologyMode {
130
130
affinity = & corev1.Affinity {
131
131
PodAntiAffinity : & corev1.PodAntiAffinity {
132
132
RequiredDuringSchedulingIgnoredDuringExecution : []corev1.PodAffinityTerm {{
Original file line number Diff line number Diff line change @@ -542,7 +542,7 @@ func TestWithConsoleAnnotations(t *testing.T) {
542
542
ResourceVersion : "12345" ,
543
543
},
544
544
Status : configv1.InfrastructureStatus {
545
- InfrastructureTopology : configv1 .SingleReplicaTopologyMode ,
545
+ ControlPlaneTopology : configv1 .SingleReplicaTopologyMode ,
546
546
},
547
547
}
548
548
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ func TestDeploymentsReplicas(t *testing.T) {
34
34
}
35
35
36
36
var expectedReplicas int32
37
- if infrastructureConfig .Status .InfrastructureTopology == configv1 .SingleReplicaTopologyMode {
37
+ if infrastructureConfig .Status .ControlPlaneTopology == configv1 .SingleReplicaTopologyMode {
38
38
expectedReplicas = int32 (deploymentsub .SingleNodeConsoleReplicas )
39
39
} else {
40
40
expectedReplicas = int32 (deploymentsub .DefaultConsoleReplicas )
You can’t perform that action at this time.
0 commit comments