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

Enable version controlling for config map changes #66

Merged
merged 2 commits into from
Jul 31, 2019

Conversation

BuddhiWathsala
Copy link
Contributor

Purpose

Resolve #64

Approach

Previously we have enabled the version controlling in SiddhiProcess level. In SiddhiProcess deployments, user can specify SiddhiApps as config maps. If the user changes the given config map that change is not visible for SiddhiProcess. Therefore SiddhiProcess does not change.

Here we add a primary watch function for config maps. From that, if someone changes the config map, the reconcile loop will trigger. We maintain an internal mapping for config map to SiddhiProcess. From that, we can identify the SiddhiProcess that we need to update when config map changes. Then the previous updating process of #57 continues the execution.

User stories

User can change stateful -> stateless and stateless->stateful without any problem. The operator will create remaining K8s artifacts in stateless->stateful scenario. Also, the operator will remove unwanted K8s artifacts in stateful -> stateless scenario.

Related PRs

#57

Test environment

minikube version: v1.2.0

@pcnfernando pcnfernando merged commit 5bcc130 into siddhi-io:master Jul 31, 2019
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.

Handle Siddhi applications being updated as a config map
3 participants