Skip to content

using $CONFIG_VALUES_JSON_PATCH_PATH in someModule hooks but it not work #536

@wuxiaocheng0506

Description

@wuxiaocheng0506

I'm try to appned some JSON patch to $CONFIG_VALUES_JSON_PATCH_PATH in someModule's hooks, but after all hooks done, the ConfigMap/addon-operator values not be updated.

such as:

# /modules/001-some-module/hooks/hook.sh

if [[ $binding == "beforeHelm" ]]; then
  ...
  cat > $CONFIG_VALUES_JSON_PATCH_PATH <<EOF
    [{"op":"add", "path":"/someModule/param11", "value":"value11"}]
EOF
fi

and then

kubectl -n test get cm/addon-operator -o=yaml

but the values of configmap not updated.

Environment:

  • Addon-operator version: v1.5.3
  • Helm version: v3.10.3
  • Kubernetes version: v1.24.17
  • Installation type (kubectl apply, helm chart, etc.):

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions