Kong / kong-operator

Kong Operator for Kubernetes and OpenShift
https://konghq.com
Apache License 2.0
58 stars 27 forks source link

Support for defining service account in kong manifest #59

Closed piyushpgupta closed 3 years ago

piyushpgupta commented 3 years ago

i want to define service account be to used when creating the kong pod from kong operator. currently that support is provided in the Ingress Controller parameters.

is similar options can be provided to the kong configuration and possible for side car container.

rainest commented 3 years ago

The service account was originally created for the controller and later used for other purposes outside it. We never moved the configuration location to avoid a breaking change, but the account configured under the controller section will actually be used for both.

At present the only other setting that makes use of it is the PodSecurityPolicy, so it's only set if that or the controller are enabled. If you need to use it for something else, please open an issue on that charts repo referencing this issue (it'll be added there and we'll update the version of the chart included in the operator after).