cvas22 opened a new pull request, #1050:
URL: https://github.com/apache/apisix-helm-chart/pull/1050

   Fixes #993
   
   The ingress controller chart generates the webhook CA and cert with 
`genCA`/`genSignedCert` and relies on `lookup` to keep the live ones. Argo CD 
renders offline, so `lookup` returns nothing and every comparison wants a new 
Secret and `caBundle`. The app never settles and an automated sync rotates the 
webhook trust chain.
   
   This adds the cert-manager path suggested in the issue:
   
   ```yaml
   webhook:
     certManager:
       enabled: true
       # issuerRef: {name: my-ca, kind: ClusterIssuer}   # optional, 
self-signed Issuer otherwise
       # duration: 8760h
   ```
   
   When it's on, the chart renders a `Certificate` for the webhook service 
(writing into the same secret name the deployment already mounts), a 
self-signed `Issuer` unless `issuerRef` is set, adds 
`cert-manager.io/inject-ca-from` to the ValidatingWebhookConfiguration and 
leaves `caBundle` out so the cainjector fills it. Nothing is generated at 
render time, so two `helm template` runs with the same input give identical 
output. Combining it with `certificate.provided` fails with a clear message. 
With it off (the default) nothing changes.
   
   ## Notes
   
   I checked it with `helm template`: the default render is the same as before, 
two renders with `certManager.enabled=true` hash the same, there's no 
`caBundle` in that mode, the custom `issuerRef` drops the self-signed Issuer, 
and enabling both options fails. Bumped the chart to 1.5.0 since it's a new 
option and added the README rows the way helm-docs lays them out. I didn't run 
it against a live cluster with cert-manager, so a second pair of eyes there 
would be nice.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to