Skip to content

Conversation

xinWeiWei24
Copy link
Contributor

When invoking helm.StringPathValuesApplier during a PATCH operation, passing runnerGroupSpec as a raw string fails if the body contains special characters "[" or "]", like this:

- patch:
    version: v1
    resource: pods
    namespace: kperf
    patchType: json
    name: test-pod4
    body: |
      [
        {
          "op": "replace",
          "path": "/metadata/labels",
          "value": {}
        }
      ]
  shares: 100

To resolve this:

  • runnerGroupSpec is now base64-encoded before being passed to Helm
  • Decoded in the Helm template using b64dec before applying toYaml

…thValuesApplier

When invoking helm.StringPathValuesApplier during a PATCH operation, passing runnerGroupSpec as a raw string fails if the body contains special characters like "[" or "]".

To resolve this:
- runnerGroupSpec is now base64-encoded before being passed to Helm
- Decoded in the Helm template using `b64dec` before applying `toYaml`
@xinWeiWei24 xinWeiWei24 requested a review from fuweid August 20, 2025 08:02
@fuweid fuweid merged commit 14d3322 into Azure:main Aug 21, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants