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
219cfa1f
Unverified
Commit
219cfa1f
authored
Jun 13, 2025
by
Biswa Panda
Committed by
GitHub
Jun 13, 2025
Browse files
feat: add dynamo pipeline example using inf-gw (#1512)
parent
a09ca3ec
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
+8
-7
deploy/cloud/operator/internal/controller/dynamocomponentdeployment_controller.go
...ternal/controller/dynamocomponentdeployment_controller.go
+6
-2
deploy/cloud/operator/internal/controller/dynamocomponentdeployment_controller_test.go
...l/controller/dynamocomponentdeployment_controller_test.go
+2
-5
No files found.
deploy/cloud/operator/internal/controller/dynamocomponentdeployment_controller.go
View file @
219cfa1f
...
...
@@ -1143,11 +1143,15 @@ func (r *DynamoComponentDeploymentReconciler) getGenericServiceName(dynamoCompon
return
r
.
getKubeName
(
dynamoComponentDeployment
,
dynamoComponent
,
false
)
}
func
(
r
*
DynamoComponentDeploymentReconciler
)
getKubeLabels
(
_
*
v1alpha1
.
DynamoComponentDeployment
,
dynamoComponent
*
v1alpha1
.
DynamoComponent
)
map
[
string
]
string
{
func
(
r
*
DynamoComponentDeploymentReconciler
)
getKubeLabels
(
dynamoComponentDeployment
*
v1alpha1
.
DynamoComponentDeployment
,
dynamoComponent
*
v1alpha1
.
DynamoComponent
)
map
[
string
]
string
{
labels
:=
map
[
string
]
string
{
commonconsts
.
KubeLabelDynamoComponent
:
dynamoComponent
.
Name
,
}
labels
[
commonconsts
.
KubeLabelDynamoComponentType
]
=
commonconsts
.
DynamoApiServerComponentName
if
dynamoComponentDeployment
!=
nil
&&
dynamoComponentDeployment
.
Labels
!=
nil
{
if
v
,
ok
:=
dynamoComponentDeployment
.
Labels
[
commonconsts
.
KubeLabelDynamoComponent
];
ok
&&
v
!=
""
{
labels
[
commonconsts
.
KubeLabelDynamoComponentType
]
=
v
}
}
return
labels
}
...
...
deploy/cloud/operator/internal/controller/dynamocomponentdeployment_controller_test.go
View file @
219cfa1f
...
...
@@ -905,7 +905,6 @@ func TestDynamoComponentDeploymentReconciler_generateLeaderWorkerSet(t *testing.
Namespace
:
"default"
,
Labels
:
map
[
string
]
string
{
commonconsts
.
KubeLabelDynamoComponent
:
"test-lws-component"
,
commonconsts
.
KubeLabelDynamoComponentType
:
commonconsts
.
DynamoApiServerComponentName
,
"instance-id"
:
"0"
,
},
},
...
...
@@ -920,7 +919,6 @@ func TestDynamoComponentDeploymentReconciler_generateLeaderWorkerSet(t *testing.
"instance-id"
:
"0"
,
"role"
:
"leader"
,
commonconsts
.
KubeLabelDynamoComponent
:
"test-lws-component"
,
commonconsts
.
KubeLabelDynamoComponentType
:
commonconsts
.
DynamoApiServerComponentName
,
},
Annotations
:
map
[
string
]
string
{
"scheduling.k8s.io/group-name"
:
"test-lws-deploy-0"
,
...
...
@@ -974,7 +972,6 @@ func TestDynamoComponentDeploymentReconciler_generateLeaderWorkerSet(t *testing.
"instance-id"
:
"0"
,
"role"
:
"worker"
,
commonconsts
.
KubeLabelDynamoComponent
:
"test-lws-component"
,
commonconsts
.
KubeLabelDynamoComponentType
:
commonconsts
.
DynamoApiServerComponentName
,
},
Annotations
:
map
[
string
]
string
{
"scheduling.k8s.io/group-name"
:
"test-lws-deploy-0"
,
...
...
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