orca icon indicating copy to clipboard operation
orca copied to clipboard

fix(preconfigured job): Fix for k8s manifest resources limit/request …

Open j-sandy opened this issue 5 years ago • 1 comments

Fix for #6257

Issue Summary:

Putting limits/request in a custom job through ~/.hal/default/profiles/orca-local.yml, the custom stage breaks with an error as shown below. image

About the fix: In order to format above Map suitable for kubectl, "resources.request/limit.memory/cpu" field must take single value. This can be achieved by intercepting the preconfiguredMap object from class com.netflix.spinnaker.orca.clouddriver.pipeline.job.PreconfiguredJobStage and update it with required "resource" field format before passing it further.

j-sandy avatar Jan 27 '21 18:01 j-sandy

Hi - running into this exact issue, will start watching this changeset.

lpcruz avatar Feb 02 '22 19:02 lpcruz