CAAPIM / apim-charts

Helm Charts for Layer7 API Management components.
MIT License
12 stars 49 forks source link

charts/portal - Option to force a redeploy #74

Closed scottchc1 closed 3 years ago

scottchc1 commented 3 years ago

Description of the change Conditionally add a timestamp annotation to each deployment template when the option "forceRedeploy" is true. The added/changed annotation guarantee kubernetes to see a difference and redeploy the pod.

forceRedeploy option applies to deployments and statefulsets of the main portal and druid components. it does NOT apply to:

Benefits This is useful for changes that isn't identified by kubeternes as a difference to redeploy pod when running helm upgrade, e.g. updated image on same tag @latest, or a single environment value change in configmap, etc.

Drawbacks

Applicable issues n/a

Additional information sample values edit

analytics:
  forceRedeploy: true
apim:
  forceRedeploy: true
authenticator:
  forceRedeploy: true
dispatcher:
  forceRedeploy: true
portalData:
  forceRedeploy: true
portalEnterprise:
  forceRedeploy: true
pssg:
  forceRedeploy: true
solr:
  forceRedeploy: true
tenantProvisioner:
  forceRedeploy: true
druid:
  forceRedeploy: true

Checklist

scottchc1 commented 3 years ago

draft for review; not merge ready, not fully updated - readme, values-production

scottchc1 commented 3 years ago

ready for approval & merge. please review

scottchc1 commented 3 years ago

NOTE: merge only after 5.0.2