AzBuilder / terrakube

Open source IaC Automation and Collaboration Software.
https://docs.terrakube.io
Apache License 2.0
496 stars 38 forks source link

Update ephemeral executor with node selector configuration #1205

Closed alfespa17 closed 1 month ago

alfespa17 commented 1 month ago

Adding option to specify node selector when running the executor component in ephemeral mode.

To use it we need to add the following:

api:
  env:
  - name: JAVA_TOOL_OPTIONS
    value: "-Dorg.terrakube.executor.ephemeral.nodeSelector.diskType=ssd -Dorg.terrakube.executor.ephemeral.nodeSelector.nodeType=spot"

The above will basically be the equivalent to:

  nodeSelector:
    disktype: ssd
    nodeType: spot

We just need to add the nodeSelector properties inside the application.property Dorg.terrakube.executor.ephemeral.nodeSelector.XXX=YYYY using JAVA_TOOL_OPTIONS environment variable to add the values.

Fix #1168

sonarcloud[bot] commented 1 month ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
50.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud