Steps to Reproduce Issue
- Deploy the litmus portal
- Create an environment in the portal
- Deploy the
litmus-agent chart via ArgoCD and add values to create a new infrastructure. Making sure to let the deployment create the infraSecret and infraConfigmap
- The
subscriber-secret and subscriber-configmap get populated with the correct values and every starts up
- Run a sync on ArgoCD
- The hook annotations on the
subscriber-secret and subscriber-configmap will delete the kubernetes resources and remove the required information
- The
pre-install-webhook will start up and complete with the message Infra already exist. This will create but not populate the subscriber-secret and subscriber-configmap.
- The
subscriber and event-tracker deployments fail because the required environment variables do not exist
Requested Feature
Requested Fix in Code
- Update
[client.go](https://github.com/litmuschaos/test-tools/blob/master/custom/litmus-helm-agent/pkg/litmus/client.go#L161) to add/update the required variables to the secret if the "Infra already exists"
- This may require changes elsewhere in the code though
Requested Fix in Helm Chart
Current (undesired) Workaround
- Create your own
subscriber-secret and subscriber-configmap without the hook annotations
- However this will NOT WORK if the
subscriber-secret and subscriber-configmap are deleted or altered in anyway
Other People Facing the Same Issues
litmuschaos/litmus-helm#412
litmuschaos/litmus-helm#334
#4892
#4786
Steps to Reproduce Issue
litmus-agentchart via ArgoCD and add values to create a new infrastructure. Making sure to let the deployment create theinfraSecretandinfraConfigmapsubscriber-secretandsubscriber-configmapget populated with the correct values and every starts upsubscriber-secretandsubscriber-configmapwill delete the kubernetes resources and remove the required informationpre-install-webhookwill start up and complete with the messageInfra already exist. This will create but not populate thesubscriber-secretandsubscriber-configmap.subscriberandevent-trackerdeployments fail because the required environment variables do not existRequested Feature
Requested Fix in Code
[client.go](https://github.com/litmuschaos/test-tools/blob/master/custom/litmus-helm-agent/pkg/litmus/client.go#L161)to add/update the required variables to the secret if the "Infra already exists"Requested Fix in Helm Chart
helm.shhook annotations frominfra_config_maphelm.shhook annotations frominfra-secretCurrent (undesired) Workaround
subscriber-secretandsubscriber-configmapwithout the hook annotationssubscriber-secretandsubscriber-configmapare deleted or altered in anywayOther People Facing the Same Issues
litmuschaos/litmus-helm#412
litmuschaos/litmus-helm#334
#4892
#4786