Gatekeeper webhook template format error
Created by: sagilio
/cc @wansir
output:
Task 'gatekeeper' failed:
******************************************************************************************************************************************************
{
"counter": 30,
"created": "2022-06-04T07:57:06.611191",
"end_line": 30,
"event": "runner_on_failed",
"event_data": {
"duration": 20.088268,
"end": "2022-06-04T07:57:06.611123",
"event_loop": null,
"host": "localhost",
"ignore_errors": null,
"play": "localhost",
"play_pattern": "localhost",
"play_uuid": "6ae56822-51b2-f4ad-b468-000000000005",
"playbook": "/kubesphere/playbooks/gatekeeper.yaml",
"playbook_uuid": "7a50e33d-fc10-4361-ac7b-61640389d2fa",
"remote_addr": "127.0.0.1",
"res": {
"_ansible_no_log": false,
"attempts": 3,
"changed": true,
"cmd": "/usr/local/bin/helm upgrade --install gatekeeper /kubesphere/kubesphere/gatekeeper --namespace gatekeeper-system --create-namespace -f /kubesphere/kubesphere/gatekeeper/custom-values-gatekeeper.yaml\n",
"delta": "0:00:00.887930",
"end": "2022-06-04 07:57:06.599385",
"invocation": {
"module_args": {
"_raw_params": "/usr/local/bin/helm upgrade --install gatekeeper /kubesphere/kubesphere/gatekeeper --namespace gatekeeper-system --create-namespace -f /kubesphere/kubesphere/gatekeeper/custom-values-gatekeeper.yaml\n",
"_uses_shell": true,
"argv": null,
"chdir": null,
"creates": null,
"executable": null,
"removes": null,
"stdin": null,
"stdin_add_newline": true,
"strip_empty_ends": true,
"warn": true
}
},
"msg": "non-zero return code",
"rc": 1,
"start": "2022-06-04 07:57:05.711455",
"stderr": "Error: YAML parse error on gatekeeper/templates/gatekeeper-validating-webhook-configuration-validatingwebhookconfiguration.yaml: error converting YAML to JSON: yaml: invalid map key: map[interface {}]interface {}{\".Values.validatingWebhookFailurePolicy\":interface {}(nil)}",
"stderr_lines": [
"Error: YAML parse error on gatekeeper/templates/gatekeeper-validating-webhook-configuration-validatingwebhookconfiguration.yaml: error converting YAML to JSON: yaml: invalid map key: map[interface {}]interface {}{\".Values.validatingWebhookFailurePolicy\":interface {}(nil)}"
],
"stdout": "Release \"gatekeeper\" does not exist. Installing it now.",
"stdout_lines": [
"Release \"gatekeeper\" does not exist. Installing it now."
]
},
"role": "gatekeeper",
"start": "2022-06-04T07:56:46.522855",
"task": "GateKeeper | Installing GateKeeper",
"task_action": "command",
"task_args": "",
"task_path": "/kubesphere/installer/roles/gatekeeper/tasks/main.yaml:14",
"task_uuid": "6ae56822-51b2-f4ad-b468-000000000018",
"uuid": "7e995825-d33a-4ca5-aa1d-a2371f0951e9"
},
"parent_uuid": "6ae56822-51b2-f4ad-b468-000000000018",
"pid": 13068,
"runner_ident": "gatekeeper",
"start_line": 29,
"stdout": "fatal: [localhost]: FAILED! => {\"attempts\": 3, \"changed\": true, \"cmd\": \"/usr/local/bin/helm upgrade --install gatekeeper /kubesphere/kubesphere/gatekeeper --namespace gatekeeper-system --create-namespace -f /kubesphere/kubesphere/gatekeeper/custom-values-gatekeeper.yaml\\n\", \"delta\": \"0:00:00.887930\", \"end\": \"2022-06-04 07:57:06.599385\", \"msg\": \"non-zero return code\", \"rc\": 1, \"start\": \"2022-06-04 07:57:05.711455\", \"stderr\": \"Error: YAML parse error on gatekeeper/templates/gatekeeper-validating-webhook-configuration-validatingwebhookconfiguration.yaml: error converting YAML to JSON: yaml: invalid map key: map[interface {}]interface {}{\\\".Values.validatingWebhookFailurePolicy\\\":interface {}(nil)}\", \"stderr_lines\": [\"Error: YAML parse error on gatekeeper/templates/gatekeeper-validating-webhook-configuration-validatingwebhookconfiguration.yaml: error converting YAML to JSON: yaml: invalid map key: map[interface {}]interface {}{\\\".Values.validatingWebhookFailurePolicy\\\":interface {}(nil)}\"], \"stdout\": \"Release \\\"gatekeeper\\\" does not exist. Installing it now.\", \"stdout_lines\": [\"Release \\\"gatekeeper\\\" does not exist. Installing it now.\"]}",
"uuid": "7e995825-d33a-4ca5-aa1d-a2371f0951e9"
}
******************************************************************************************************************************************************