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
Currently, whenever a new resource is created, say when deployment or a stateful set is created, the configurator checks whether this resource type is version controlled. If so, the configurator adds the annotation 'config-sync-controller' to the resource. For example, deployments and stateful sets are version controlled, whereas jobs are not version controlled. Hence the configurator does not add the annotation 'config-sync-controller' to a job resource. Similarly, the configurator is expected to add this annotation to all the versioned resources at the time of the init process as well. To Reproduce
Steps to reproduce the behavior:
Create a ConfigMap
$ vi ConfigMap.yamlapiVersion: v1kind: ConfigMapmetadata:
name: demo-configdata:
# property-like keys; each key maps to a simple valueplayer_initial_lives: "3"ui_properties_file_name: "user-interface.properties"# file-like keysgame.properties: | android.apk=free fire,bgmi computer=stambled guys user-interface.properties: | color.good=purple color.bad=yellow allow.textmode=tru
$ kubectl apply -f ConfigMap.yaml
Create a deployment referencing the ConfigMap to apply deployment using
Check the annotation in the existing deployment ( Note:- configurator has added an annotation 'ccm-demo-config', but hasn't added the annotation 'config-sync-controller').
$ kubectl get deploy demo-deployment -o yaml'annotations: ccm-demo-config: xsszs'
Create a new deployment referencing the ConfigMap apply the deployment.
Check the annotations in the newly created deployment. ( Note:- configurator has added 2 annotations - 'ccm-demo-config' and 'config-sync-controller' and in 'spec.template.metadata.annotation'
Expected behavior
In step 5, the configurator must add the annotation 'config-sync-controller' to existing deployment at the time of the init process.
The text was updated successfully, but these errors were encountered:
gopaddle-io
changed the title
During the init process, configurator does not add the annotation 'config-sync-controller' to an existing deployme
During the init process, configurator does not add the annotation 'config-sync-controller' to an existing deployment
Feb 25, 2022
Describe the bug
Currently, whenever a new resource is created, say when deployment or a stateful set is created, the configurator checks whether this resource type is version controlled. If so, the configurator adds the annotation 'config-sync-controller' to the resource. For example, deployments and stateful sets are version controlled, whereas jobs are not version controlled. Hence the configurator does not add the annotation 'config-sync-controller' to a job resource. Similarly, the configurator is expected to add this annotation to all the versioned resources at the time of the init process as well.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
In step 5, the configurator must add the annotation 'config-sync-controller' to existing deployment at the time of the init process.
The text was updated successfully, but these errors were encountered: