You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Configurator adds the annotation in ConfigMap ‘updateMethod: ignoreWhenShared’ as the default updateMethod . IgnoreWhenShared does not perform a rollingUpdate on a deployment when a ConfigMap it uses is shared by multiple deployments. Add support for additional flags like 'updateWhenShared' to update the deployment when a ConfigMap it uses is shared by multiple deployments.
To Reproduce
Steps to reproduce the behavior:
1.Create ConfigMap.
$ kubectl apply -f demo-config.yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: demo-config
data:
# property-like keys; each key maps to a simple value
player_initial_lives: "3"
ui_properties_file_name: "user-interface.properties"# file-like keys
game.properties: |
android.apk=free fire,bgmi
computer=stambled guys
user-interface.properties: |
color.good=purple
color.bad=yellow
2.Get the ConfigMap.updateMethod is added in ConfigMap annotation level
Describe the bug
Configurator adds the annotation in ConfigMap ‘updateMethod: ignoreWhenShared’ as the default updateMethod . IgnoreWhenShared does not perform a rollingUpdate on a deployment when a ConfigMap it uses is shared by multiple deployments. Add support for additional flags like 'updateWhenShared' to update the deployment when a ConfigMap it uses is shared by multiple deployments.
To Reproduce
Steps to reproduce the behavior:
1.Create ConfigMap.
2.Get the ConfigMap.updateMethod is added in ConfigMap annotation level
3.Create deployment with ‘demo-config’ mounted
4.Get the ConfigMap. (Node:- annotation having the ‘deployments’)
5.Update the ConfigMap it will trigger the rolling update of that deployment.
6.Create a deployment with same ConfigMap.
7.Get the ConfigMap. Check the annotation it is having 2 deployments as comma separated.
8.Edit the ConfigMap. Now rollingUpdate will not happen.
Expected behavior
Support to add support for ‘updateWhenShared’ updateType.
The text was updated successfully, but these errors were encountered: