SAP-samples/kyma-runtime-learning-journey

error converting YAML to JSON: yaml: line 228: mapping values are not allowed in this context

Opened this issue · 2 comments

When doing kubectl apply -n default -f https://github.com/SAP-samples/kyma-runtime-learning-journey/blob/main/unit_3/functions/hello-world-function.yaml
I get error error: error parsing https://github.com/SAP-samples/kyma-runtime-learning-journey/blob/main/unit_3/functions/hello-world-function.yaml: error converting YAML to JSON: yaml: line 228: mapping values are not allowed in this context
PS C:\Users\Novarto>

Thank you for raising this issue. Our team will have a look into this and respond as soon as we have the solution.

BR,
Markus

Hi @kostadin-t ,
instead of applying the github based yaml file view, you need to apply the raw yaml file by using this URL in yout statement: https://raw.githubusercontent.com/SAP-samples/kyma-runtime-learning-journey/refs/heads/main/unit_3/functions/hello-world-function.yaml

Do you copied that command from somewhere which needs to get adjusted to the raw URL?