Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added restartOnConfigChange flag to trigger Gateway Deployment if configMap changes during helm upgrade #261

Open
wants to merge 12 commits into
base: stable
Choose a base branch
from

Conversation

DamandeepToor
Copy link
Contributor

@DamandeepToor DamandeepToor commented Sep 16, 2023

Description of the change

Added restartOnConfigChange flag to trigger Gateway Deployment if configMap changes during helm upgrade

Benefits

Example , if User switches from one Database Server to Another , configMap will change and with change , user can control if gateway gets redeployed automatically or manually wants to restart the Gateway pods

Drawbacks

Applicable issues

  • fixes #

Additional information

Checklist

  • [] Chart version bumped in Chart.yaml according to semver.
  • [] Variables are documented in the README.md
  • [] Title of the PR starts with chart name (e.g. [charts/gateway])
  • [] If the chart contains a values-production.yaml apart from values.yaml, ensure that you implement the changes in both files

@DamandeepToor DamandeepToor changed the title Added annotation to trigger Gateway Deployment if configMap changes during helm upgrade Added estartOnConfigChange flag to trigger Gateway Deployment if configMap changes during helm upgrade Sep 25, 2023
@DamandeepToor DamandeepToor changed the title Added estartOnConfigChange flag to trigger Gateway Deployment if configMap changes during helm upgrade Added restartOnConfigChange flag to trigger Gateway Deployment if configMap changes during helm upgrade Sep 26, 2023
Copy link
Contributor

@Gazza7205 Gazza7205 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are no changes to the gateway-otk chart - is there a reason the version has been incremented?

For the documentation update (readme) please follow the current format. This release should have a dedicated header with any changes highlighted. Please also specify which config value changes will initiate a restart (as this only applies to the default configmap).

The deployment template doesn't account for no annotations. Kubernetes might automatically patch this but it would be better to either reference an empty object {} or not include it which is what happens currently.

The checksum will be added twice if additional annotations are present, the first if should check if there are additionalAnnotations.

Damandeep Kaur added 3 commits October 4, 2023 21:10
…nd handled no annotations along with not checking restartOnConfigChange flag with additionalAnnotations
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants