karmada icon indicating copy to clipboard operation
karmada copied to clipboard

how can we run the latest Kyverno in karmada-host

Open hackerboy01 opened this issue 2 years ago • 5 comments

Please provide an in-depth description of the question you have: The latest version of Kyverno has removed kubeconfig flags support, how can we run Kyverno in karmada-host?

https://github.com/karmada-io/karmada/blob/master/docs/working-with-kyverno.md

hackerboy01 avatar Jul 29 '22 03:07 hackerboy01

@Poor12 @AllenZMC Could you please take a look at this issues?

hackerboy01 avatar Jul 29 '22 06:07 hackerboy01

If kubeconfig flag is removed, you can try to set KUBECONFIG environment env in the Pod.

Poor12 avatar Jul 29 '22 06:07 Poor12

If kubeconfig flag is removed, you can try to set KUBECONFIG environment env in the Pod.

the latest Kyverno is only supported to run InClusterConfig. https://github.com/kyverno/kyverno/blob/main/cmd/kyverno/main.go#L121

hackerboy01 avatar Jul 29 '22 12:07 hackerboy01

Seems that it's removed in https://github.com/kyverno/kyverno/issues/3570. For my opinion, whether it's used by flag or environment env, Kyverno should support configurable KUBECONFIG. Could you start an issue in Kyverno community? Maybe we can push this thing together.

Poor12 avatar Jul 30 '22 02:07 Poor12

There is an issue here(https://github.com/kyverno/kyverno/discussions/4282) , we can push this thing together.

hackerboy01 avatar Aug 01 '22 09:08 hackerboy01

/cc @Poor12 Can we close this issue?

XiShanYongYe-Chang avatar Apr 24 '23 07:04 XiShanYongYe-Chang

Completed. /close

Poor12 avatar Apr 24 '23 07:04 Poor12

@Poor12: Closing this issue.

In response to this:

Completed. /close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

karmada-bot avatar Apr 24 '23 07:04 karmada-bot