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 Helm charts #1828

Merged
merged 2 commits into from Apr 20, 2021
Merged

Fix Helm charts #1828

merged 2 commits into from Apr 20, 2021

Conversation

treydock
Copy link
Member

Related issue

#1827

What type of PR is this

/kind bug

Proposed Changes

Fix Helm template rendering and make some parts a little more consistent

Proof Manifests

The following is now successful

helm template kyverno charts/kyverno/

Checklist

  • I have read the contributing guidelines.
  • [] I have added tests that prove my fix is effective or that my feature works.
  • [] My PR contains new or altered behavior to Kyverno and
    • [] I have added or changed the documentation myself in an existing PR and the link is:
    • [] I have raised an issue in kyverno/website to track the doc update and the link is:
    • [] I have read the PR documentation guide and followed the process including adding proof manifests to this PR.

Further Comments

Signed-off-by: Trey Dockendorf <tdockendorf@osc.edu>
Copy link
Member

@realshuting realshuting left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@treydock - thanks for investigating it, looks good!

{{- if eq (include "kyverno.podSecurityDefault" (merge (dict "name" $name) .)) "true" }}
apiVersion: kyverno.io/v1
kind: ClusterPolicy
metadata:
name: {{ $name }}
name: disallow-add-capabilities
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to hard code the name here? I didn't see this for other policies.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, that was something I accidentally committed while trying to debug the original issue. I've reverted back to using $name variable.

@realshuting realshuting self-assigned this Apr 20, 2021
Signed-off-by: Trey Dockendorf <tdockendorf@osc.edu>
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

2 participants