Skip to content

Commit

Permalink
fix(typo): fix field reference
Browse files Browse the repository at this point in the history
  • Loading branch information
tunahanertekin committed Mar 5, 2024
1 parent 58cbb61 commit b28ad1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/resources/v1alpha2/ros2_workload.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func GetStatefulSet(ros2Workload *robotv1alpha2.ROS2Workload, ssNamespacedName *

cfg := configure.PodSpecConfigInjector{}

container := ros2Workload.Spec.Containers[key]
container := ros2Workload.Spec.LaunchContainers[key]
ssAliasLabels := ros2Workload.Labels
ssAliasLabels["robolaunch.io/alias"] = container.Container.Name

Expand All @@ -87,7 +87,7 @@ func GetStatefulSet(ros2Workload *robotv1alpha2.ROS2Workload, ssNamespacedName *
Labels: ssAliasLabels,
},
Spec: appsv1.StatefulSetSpec{
Replicas: ros2Workload.Spec.Containers[key].Replicas,
Replicas: ros2Workload.Spec.LaunchContainers[key].Replicas,
Selector: &metav1.LabelSelector{
MatchLabels: map[string]string{
internal.ROS2_WORKLOAD_CONTAINER_SELECTOR_LABEL_KEY: container.Container.Name,
Expand Down

0 comments on commit b28ad1d

Please sign in to comment.