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(charts): remove erroneous 'metadata' key from ClusterRole object #119

Merged

Conversation

mikedougherty
Copy link
Contributor

There is an extra 'metadata' key in this object.

Previously when building the chart wrapped by kustomize-v5.4.1 using the helmCharts generator, this error would occur:

at 11:04:15 $ kustomize build --enable-helm --load-restrictor=LoadRestrictionsNone . >/dev/null ; echo $?
Error: could not parse rnode slice into resource map: missing metadata.name in object {{rbac.authorization.k8s.io/v1 ClusterRole} {{ } map[] map[]}}

1

With this change, the chart is buildable and kustomize does not report an error:

at 11:04:05 $ kustomize build --enable-helm --load-restrictor=LoadRestrictionsNone . >/dev/null ; echo $?

0

Hopefully this is straightforward, please let me know if there is any other info I can provide.

My team and I are looking forward to trying out this component, cheers!

@mikedougherty mikedougherty force-pushed the fixup-clusterrole-extra-metadata branch from cd5c16c to 68e8246 Compare May 3, 2024 18:07
@mikedougherty mikedougherty force-pushed the fixup-clusterrole-extra-metadata branch from 68e8246 to d2dbbfb Compare May 3, 2024 18:16
@JimBugwadia JimBugwadia enabled auto-merge (squash) June 14, 2024 17:39
@JimBugwadia JimBugwadia merged commit c60c51a into kyverno:main Jun 14, 2024
10 of 19 checks passed
stone-z pushed a commit to giantswarm/reports-server-upstream that referenced this pull request Jul 4, 2024
stone-z pushed a commit to giantswarm/reports-server-upstream that referenced this pull request Jul 4, 2024
stone-z pushed a commit to giantswarm/reports-server-upstream that referenced this pull request Jul 9, 2024
vishal-chdhry pushed a commit that referenced this pull request Jul 10, 2024
* Create sync-from-upstream.yaml

Signed-off-by: Zach Stone <[email protected]>

* Update sync-from-upstream.yaml

Signed-off-by: Zach Stone <[email protected]>

* fix(charts): remove erroneous 'metadata' key from ClusterRole object (#119)

Signed-off-by: Mike Dougherty <[email protected]>
Co-authored-by: Jim Bugwadia <[email protected]>
Signed-off-by: Zach Stone <[email protected]>

* Enable metrics endpoint and add service monitor

Signed-off-by: Zach Stone <[email protected]>

* Update generated install

Signed-off-by: Zach Stone <[email protected]>

* Do not enable ServiceMonitor by default

Signed-off-by: Zach Stone <[email protected]>

* Rerun codegen

Signed-off-by: Zach Stone <[email protected]>

---------

Signed-off-by: Zach Stone <[email protected]>
Signed-off-by: Mike Dougherty <[email protected]>
Co-authored-by: Mike Dougherty <[email protected]>
Co-authored-by: Jim Bugwadia <[email protected]>
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.

2 participants