Skip to content

Commit c9beaf1

Browse files
Merge pull request #939 from eggfoobar/arbiter-node-support
OCPEDGE-1345: feat: add arbiter node support for HA
2 parents 0068d8d + fee0db5 commit c9beaf1

File tree

187 files changed

+3494
-4244
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

187 files changed

+3494
-4244
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ require (
1111
github.com/go-bindata/go-bindata v3.1.2+incompatible
1212
github.com/go-test/deep v1.0.5
1313
github.com/google/go-cmp v0.6.0
14-
github.com/openshift/api v0.0.0-20241111120719-57564f6994b5
14+
github.com/openshift/api v0.0.0-20241211151016-1a7b90faeadf
1515
github.com/openshift/build-machinery-go v0.0.0-20240613134303-8359781da660
1616
github.com/openshift/client-go v0.0.0-20241001162912-da6d55e4611f
1717
github.com/openshift/library-go v0.0.0-20241023193830-022ad9c25e39

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,8 @@ github.com/onsi/ginkgo/v2 v2.19.0 h1:9Cnnf7UHo57Hy3k6/m5k3dRfGTMXGvxhHFvkDTCTpvA
146146
github.com/onsi/ginkgo/v2 v2.19.0/go.mod h1:rlwLi9PilAFJ8jCg9UE1QP6VBpd6/xj3SRC0d6TU0To=
147147
github.com/onsi/gomega v1.33.1 h1:dsYjIxxSR755MDmKVsaFQTE22ChNBcuuTWgkUDSubOk=
148148
github.com/onsi/gomega v1.33.1/go.mod h1:U4R44UsT+9eLIaYRB2a5qajjtQYn0hauxvRm16AVYg0=
149-
github.com/openshift/api v0.0.0-20241111120719-57564f6994b5 h1:VOUXgYKuQ4YzDUPajhmmROkCYrdpyDZFFCj1e4N5BYU=
150-
github.com/openshift/api v0.0.0-20241111120719-57564f6994b5/go.mod h1:Shkl4HanLwDiiBzakv+con/aMGnVE2MAGvoKp5oyYUo=
149+
github.com/openshift/api v0.0.0-20241211151016-1a7b90faeadf h1:v0zcEm7GikYbs/N+YLLpKV75ASm7WpMRiSDZpvJvXnk=
150+
github.com/openshift/api v0.0.0-20241211151016-1a7b90faeadf/go.mod h1:Shkl4HanLwDiiBzakv+con/aMGnVE2MAGvoKp5oyYUo=
151151
github.com/openshift/build-machinery-go v0.0.0-20240613134303-8359781da660 h1:F0zE2bmdVvaEd18VXuGYQdJJ1FYJu4MIDW9PYZWc9No=
152152
github.com/openshift/build-machinery-go v0.0.0-20240613134303-8359781da660/go.mod h1:8jcm8UPtg2mCAsxfqKil1xrmRMI3a+XU2TZ9fF8A7TE=
153153
github.com/openshift/client-go v0.0.0-20241001162912-da6d55e4611f h1:FRc0bVNWprihWS0GqQWzb3dY4dkCwpOP3mDw5NwSoR4=

pkg/console/subresource/deployment/deployment.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,12 @@ func DefaultDownloadsDeployment(
128128
// ShouldDeployHA returns true if the console should be deployed in HA mode.
129129
// If the control plane is externalized, the console should be deployed in HA mode based on the InfrastructureTopology,
130130
// otherwise it should be deployed in HA mode based on the ControlPlaneTopology.
131+
//
132+
// On HighlyAvailableArbiter control plane topologies, with a minimum of two full sized master nodes, we also deploy HA
133+
// since the default for HA is 2 pods.
131134
func ShouldDeployHA(infrastructureConfig *configv1.Infrastructure) bool {
132135
return infrastructureConfig.Status.ControlPlaneTopology == configv1.HighlyAvailableTopologyMode ||
136+
infrastructureConfig.Status.ControlPlaneTopology == configv1.HighlyAvailableArbiterMode ||
133137
(infrastructureConfig.Status.ControlPlaneTopology == configv1.ExternalTopologyMode &&
134138
infrastructureConfig.Status.InfrastructureTopology == configv1.HighlyAvailableTopologyMode)
135139
}

vendor/github.com/openshift/api/.golangci.yaml

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/openshift/api/Makefile

Lines changed: 16 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/openshift/api/apiserver/v1/types_apirequestcount.go

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/openshift/api/apiserver/v1/zz_generated.swagger_doc_generated.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)