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

chore!: remove legacy repo support (#19768) #21249

Merged
merged 12 commits into from
Feb 3, 2025

Conversation

crenshaw-dev
Copy link
Member

@crenshaw-dev crenshaw-dev commented Dec 18, 2024

Closes #19768

Copy link

bunnyshell bot commented Dec 18, 2024

❌ Preview Environment deleted from Bunnyshell

Available commands (reply to this comment):

  • 🚀 /bns:deploy to deploy the environment

Signed-off-by: Michael Crenshaw <[email protected]>
Copy link

codecov bot commented Dec 19, 2024

Codecov Report

Attention: Patch coverage is 41.17647% with 10 lines in your changes missing coverage. Please review.

Project coverage is 55.67%. Comparing base (b4a63ae) to head (803dd3d).
Report is 11 commits behind head on master.

Files with missing lines Patch % Lines
util/db/repository.go 46.15% 4 Missing and 3 partials ⚠️
cmd/argocd/commands/admin/backup.go 0.00% 2 Missing ⚠️
cmd/argocd/commands/admin/admin.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #21249      +/-   ##
==========================================
+ Coverage   55.59%   55.67%   +0.07%     
==========================================
  Files         340      339       -1     
  Lines       57419    56802     -617     
==========================================
- Hits        31924    31625     -299     
+ Misses      22807    22531     -276     
+ Partials     2688     2646      -42     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Michael Crenshaw <[email protected]>
@crenshaw-dev crenshaw-dev changed the title chore!: remove legacy repo support (#19678) chore!: remove legacy repo support (#19768) Dec 19, 2024
@crenshaw-dev crenshaw-dev marked this pull request as ready for review January 14, 2025 15:41
@crenshaw-dev crenshaw-dev requested review from a team as code owners January 14, 2025 15:41
Comment on lines 205 to 210
secrets, err := acdClients.secrets.List(ctx, metav1.ListOptions{})
errors.CheckError(err)
for _, secret := range secrets.Items {
if isArgoCDSecret(referencedSecrets, secret) {
pruneObjects[kube.ResourceKey{Group: "", Kind: "Secret", Name: secret.GetName(), Namespace: secret.GetNamespace()}] = secret
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Argo is creating the resources from the UI as k8s Secret resource. I think we have to import/export them as part of the backup whenever they contain the argo-cd annotation/label

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, fixed!

util/db/repository.go Outdated Show resolved Hide resolved
Signed-off-by: Michael Crenshaw <[email protected]>
Signed-off-by: Michael Crenshaw <[email protected]>
@crenshaw-dev crenshaw-dev enabled auto-merge (squash) February 3, 2025 19:46
@crenshaw-dev crenshaw-dev merged commit 47bec8b into argoproj:master Feb 3, 2025
26 checks passed
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.

Remove support for legacy argocd-cm repo config
2 participants