open-policy-agent / kube-mgmt

Sidecar for managing OPA instances in Kubernetes.
Apache License 2.0
235 stars 105 forks source link

{"code":"undefined_document","message":"document missing: data.system.main"} #225

Open sba30 opened 1 year ago

sba30 commented 1 year ago

We are running OPA Version - opa:0.51.0-rootless KubeMgmt -version kube-mgmt:8.2.0

The OPA pod restarted itself, and in the logs we see {"code":"undefined_document","message":"document missing: data.system.main"}, which then leads to the following error in our cluster

Internal error occurred: failed calling webhook "validating-webhook.openpolicyagent.org": failed to call webhook: the server could not find the requested resource

Once we delete the actually pod itself, then everything works as normal.

We believed that this was the fix to the this problem happening, https://github.com/open-policy-agent/kube-mgmt/issues/210 but we still encounter this issue.

eshepelyuk commented 1 year ago

Hello

AFAIS from the description, #210 doesn't address your issue.

211 and/or #221 may do, but they are not implemented yet.

For better understanding, plz attach your values.yaml

sba30 commented 1 year ago

HI, we are not using helm to deploy OPA

eshepelyuk commented 1 year ago

HI, we are not using helm to deploy OPA

Unfortunately, in this case I wouldn't be able to help.

sba30 commented 1 year ago

Was there anything specific you were looking for? Which i can check in our deployment files?