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

[HELM UPDATE CONFIG]: Litmus-Agent Hooks break Subscriber-Secret and Subscriber Config Updates #4967

Open
seanocca opened this issue Nov 26, 2024 · 0 comments

Comments

@seanocca
Copy link

Steps to Reproduce Issue

  1. Deploy the litmus portal
  2. Create an environment in the portal
  3. 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
  4. The subscriber-secret and subscriber-configmap get populated with the correct values and every starts up
  5. Run a sync on ArgoCD
  6. The hook annotations on the subscriber-secret and subscriber-configmap will delete the kubernetes resources and remove the required information
  7. 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.
  8. 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

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

No branches or pull requests

1 participant