Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kostadin-t opened this issue Jul 15, 2024 · 2 comments
Assignees

Comments

@kostadin-t
Copy link

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>

@markushaug
Copy link
Contributor

markushaug commented Aug 22, 2024

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

@markushaug markushaug self-assigned this Aug 22, 2024
@a-thaler
Copy link
Collaborator

a-thaler commented Oct 1, 2024

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?

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

No branches or pull requests

3 participants