Skip to content

Commit

Permalink
fix(63): Correctly apply k8s service selector (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdelrhmanHamouda authored Nov 30, 2022
1 parent 06b5d33 commit 8820fe4
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,16 +163,16 @@ private PodTemplateSpec prepareSpecTemplate(LoadGenerationNode nodeConfig, Strin
* <p>
* Reference: <a href="https://kubernetes.io/docs/concepts/workloads/controllers/job/">Kubernetes Job Docs</a>
*
* @param nodeConfig The node configuration object
* @param nodeName The node name
* @return PodTemplateSpec
* @param nodeConfig The node configuration object.
* @param testName Test name.
* @return PodTemplateSpec.
*/
private ObjectMeta prepareTemplateMetadata(LoadGenerationNode nodeConfig, String nodeName) {
private ObjectMeta prepareTemplateMetadata(LoadGenerationNode nodeConfig, String testName) {

ObjectMeta templateMeta = new ObjectMetaBuilder()
// Labels
.addToLabels(APP_DEFAULT_LABEL, nodeConfig.getName())
.addToLabels(SERVICE_SELECTOR_LABEL, nodeName)
.addToLabels(APP_DEFAULT_LABEL, testName)
.addToLabels(SERVICE_SELECTOR_LABEL, nodeConfig.getName())
.addToLabels(nodeConfig.getLabels())

// Annotations
Expand Down

0 comments on commit 8820fe4

Please sign in to comment.