-
Notifications
You must be signed in to change notification settings - Fork 745
Open
Description
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 theinfraSecret
andinfraConfigmap
- The
subscriber-secret
andsubscriber-configmap
get populated with the correct values and every starts up - Run a sync on ArgoCD
- The hook annotations on the
subscriber-secret
andsubscriber-configmap
will delete the kubernetes resources and remove the required information - The
pre-install-webhook
will start up and complete with the messageInfra already exist
. This will create but not populate thesubscriber-secret
andsubscriber-configmap
. - The
subscriber
andevent-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
- Remove
helm.sh
hook annotations frominfra_config_map
- Remove
helm.sh
hook annotations frominfra-secret
Current (undesired) Workaround
- Create your own
subscriber-secret
andsubscriber-configmap
without the hook annotations- However this will NOT WORK if the
subscriber-secret
andsubscriber-configmap
are deleted or altered in anyway
- However this will NOT WORK if the
Other People Facing the Same Issues
litmuschaos/litmus-helm#412
litmuschaos/litmus-helm#334
#4892
#4786
Calvinaud, Monkman08, pierluigilenoci, dariolstella and ebongzzang
Metadata
Metadata
Assignees
Labels
No labels