We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
architectures.GetArchitecture
1 parent 2c6dbee commit 4d1b637Copy full SHA for 4d1b637
pkg/util/architectures/static.go
@@ -64,12 +64,10 @@ func IsRunningStaticArchitecture(annotations map[string]string) bool {
64
}
65
66
func GetArchitecture(annotations map[string]string) DefaultArchitecture {
67
- isStatic := IsRunningStaticArchitecture(annotations)
68
- architecture := NonStatic
69
- if isStatic {
70
- architecture = Static
+ if IsRunningStaticArchitecture(annotations) {
+ return Static
71
72
- return architecture
+ return NonStatic
73
74
75
// GetMongoVersionForAutomationConfig returns the required version with potentially the suffix -ent.
0 commit comments