Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
dynamo
Commits
96b6cb51
Unverified
Commit
96b6cb51
authored
Jan 30, 2026
by
ls-2018
Committed by
GitHub
Jan 30, 2026
Browse files
feat: remove useless branch condition (#4920)
Signed-off-by:
acejilam
<
acejilam@gmail.com
>
parent
ec046928
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
deploy/operator/internal/controller/dynamographdeployment_controller.go
...r/internal/controller/dynamographdeployment_controller.go
+1
-2
No files found.
deploy/operator/internal/controller/dynamographdeployment_controller.go
View file @
96b6cb51
...
@@ -1046,9 +1046,8 @@ func (r *DynamoGraphDeploymentReconciler) reconcileK8sDiscoveryResources(ctx con
...
@@ -1046,9 +1046,8 @@ func (r *DynamoGraphDeploymentReconciler) reconcileK8sDiscoveryResources(ctx con
if
!
r
.
Config
.
IsK8sDiscoveryEnabled
(
dynamoDeployment
.
Annotations
)
{
if
!
r
.
Config
.
IsK8sDiscoveryEnabled
(
dynamoDeployment
.
Annotations
)
{
logger
.
Info
(
"K8s discovery is not enabled"
)
logger
.
Info
(
"K8s discovery is not enabled"
)
return
nil
return
nil
}
else
{
logger
.
Info
(
"K8s discovery is enabled"
)
}
}
logger
.
Info
(
"K8s discovery is enabled"
)
serviceAccount
:=
discovery
.
GetK8sDiscoveryServiceAccount
(
dynamoDeployment
.
Name
,
dynamoDeployment
.
Namespace
)
serviceAccount
:=
discovery
.
GetK8sDiscoveryServiceAccount
(
dynamoDeployment
.
Name
,
dynamoDeployment
.
Namespace
)
_
,
_
,
err
:=
commoncontroller
.
SyncResource
(
ctx
,
r
,
dynamoDeployment
,
func
(
ctx
context
.
Context
)
(
*
corev1
.
ServiceAccount
,
bool
,
error
)
{
_
,
_
,
err
:=
commoncontroller
.
SyncResource
(
ctx
,
r
,
dynamoDeployment
,
func
(
ctx
context
.
Context
)
(
*
corev1
.
ServiceAccount
,
bool
,
error
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment