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

Fix: Dev setup #1815

Merged
merged 2 commits into from Apr 21, 2021
Merged

Fix: Dev setup #1815

merged 2 commits into from Apr 21, 2021

Conversation

vyankyGH
Copy link
Contributor

No description provided.

@realshuting
Copy link
Member

@treydock - do you know why Helm test is failing? Looks like the name was not replaced?

Run kubectl create namespace kyverno
namespace/kyverno created
Installing charts...

------------------------------------------------------------------------------------------------------------------------
 Charts to be processed:
------------------------------------------------------------------------------------------------------------------------
 kyverno => (version: "v1.3.5", path: "charts/kyverno")
------------------------------------------------------------------------------------------------------------------------

Installing chart 'kyverno => (version: "v1.3.5", path: "charts/kyverno")'...
Error: YAML parse error on kyverno/templates/policies/default/disallow-adding-capabilities.yaml: error converting YAML to JSON: yaml: line 6: did not find expected key
========================================================================================================================
........................................................................................................................
==> Events of namespace kyverno
........................................................................................................................
No resources found in kyverno namespace.
........................................................................................................................
<== Events of namespace kyverno
........................................................................................................................
========================================================================================================================
Deleting release 'kyverno-vuf3vkjvg0'...
Error: Error installing charts: Error processing charts
Error: uninstall: Release not loaded: kyverno-vuf3vkjvg0: release: not found
Error deleting Helm release: Error waiting for process: exit status 1
------------------------------------------------------------------------------------------------------------------------
 ✖︎ kyverno => (version: "v1.3.5", path: "charts/kyverno") > Error waiting for process: exit status 1
------------------------------------------------------------------------------------------------------------------------
Error installing charts: Error processing charts
Error: Process completed with exit code 1.

@treydock
Copy link
Member

@realshuting I think the issue is the syntax used in the policies name. Look at one that I believe works:

{{- $name := "require-default-proc-mount" }}

Then look at broken one:

{{ $name := "disallow-add-capabilities" -}}

The opening brackets need a hyphen and the hyphen should be removed from closing brackets.

@treydock
Copy link
Member

Actually that's not the issue, I am still getting errors with that fixed. The error even happens if you put in actual policy name instead of $name so something else must be going on.

@realshuting realshuting merged commit ab8d077 into kyverno:main Apr 21, 2021
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.

None yet

4 participants