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
If you run add app twice, first with the dry-run flag to see what should happen, a deploy key will be added to the cluster and then the second add will fail as unable to store secret with the same name.
What is the severity of the bug
Setting as minor for now given expected usage of dry-run... may raise to major.
see: A deploy key named wego-<kubecontext>-<appname> was found on the git provider, but not in the cluster. Deploy key generated and uploaded to git provider
gitops add app .
See error: Error: failed to create app service: error getting git clients: error setting up deploy keys: error storing deploy key: could not store secret: secrets "wego-<kubecontext>-<appname>" already exists
Expected behavior
A drier dry run
Config and Logs
If applicable, add logs to help explain your problem. please compress the output before attaching
gitops config
gitops cli call output (and parameters)
gitops-controller logs
Events from wego-* namespaces
kubectl cluster-info dump
Prometheus alerts
Flux logs
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
sympatheticmoose
changed the title
add app --dry run breaks add app by creating the deploy key
add app --dry-run breaks add app by creating the deploy key
Nov 9, 2021
Describe the bug
If you run add app twice, first with the dry-run flag to see what should happen, a deploy key will be added to the cluster and then the second add will fail as unable to store secret with the same name.
What is the severity of the bug
Setting as minor for now given expected usage of dry-run... may raise to major.
Environment
Affects versions
To Reproduce
Steps to reproduce the behavior:
gitops add app . --dry-run
A deploy key named wego-<kubecontext>-<appname> was found on the git provider, but not in the cluster. Deploy key generated and uploaded to git provider
gitops add app .
Error: failed to create app service: error getting git clients: error setting up deploy keys: error storing deploy key: could not store secret: secrets "wego-<kubecontext>-<appname>" already exists
Expected behavior
A drier dry run
Config and Logs
If applicable, add logs to help explain your problem. please compress the output before attaching
gitops
cli call output (and parameters)kubectl cluster-info dump
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: