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

Policy Reporter: flag provided but not defined: -config #311

Closed
kravciak opened this issue Sep 29, 2023 · 2 comments · Fixed by #315
Closed

Policy Reporter: flag provided but not defined: -config #311

kravciak opened this issue Sep 29, 2023 · 2 comments · Fixed by #315
Labels
kind/bug Something isn't working

Comments

@kravciak
Copy link
Contributor

When I enable Policy Reporter then rancher-kubewarden-controller-ui fails to start.
There is an error in the logs:

ε k get pods -n cattle-kubewarden-system
NAME                                                             READY   STATUS              RESTARTS       AGE
rancher-kubewarden-controller-policy-reporter-778c5554c4-vf6c5   1/1     Running             0              5m1s
rancher-kubewarden-controller-596f95ccb6-vfwhk                   1/1     Running             0              5m1s
audit-scanner-28266107-5trrk                                     0/1     ContainerCreating   0              4m39s
rancher-kubewarden-controller-ui-56cb789774-x52hf                0/1     CrashLoopBackOff    5 (115s ago)   5m1s

ε k logs -n cattle-kubewarden-system rancher-kubewarden-controller-ui-56cb789774-x52hf
flag provided but not defined: -config
Usage of /app/policyreporter-ui:
  -backend string
    	PolicyReporter Host
  -dev
    	Enable CORS Header for development
  -kyverno-plugin string
    	Kyverno Plugin Host
  -log-size int
    	Max amount of persistet results (default 200)
  -port int
    	PolicyReporter UI port (default 8080)

Nightly test started to fail today on this error.

@kravciak
Copy link
Contributor Author

kravciak commented Sep 29, 2023

With @viccuad we found out that in #294 we downgraded kyverno/policy-reporter-ui from 1.8.4 (Published 5 months ago) to 1.15.1 (Published almost 2 years ago).

@viccuad
Copy link
Member

viccuad commented Sep 29, 2023

The soon to be released kubewarden-controller chart v1.6.2 contains a correct update of the policy-reporter dependency, and fixes this bug.

To not repeat this (or other) problems with policy-reporter chart dependencies in the future, I have opened:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants