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

feat: add prompting to confirm delete certificate #20547

Merged

Conversation

pasha-codefresh
Copy link
Member

It allows for prompt behavior configuration through settings or flags. By default, prompts are disabled, ensuring no change to existing functionality. However, users can enable prompts for their CLI if desired.

Details here:

#19528

@pasha-codefresh pasha-codefresh requested a review from a team as a code owner October 26, 2024 19:43
Copy link

bunnyshell bot commented Oct 26, 2024

❌ Preview Environment deleted from Bunnyshell

Available commands (reply to this comment):

  • 🚀 /bns:deploy to deploy the environment

Copy link

codecov bot commented Oct 26, 2024

Codecov Report

Attention: Patch coverage is 0% with 17 lines in your changes missing coverage. Please review.

Please upload report for BASE (master@16e7517). Learn more about missing BASE report.
Report is 5 commits behind head on master.

Files with missing lines Patch % Lines
cmd/argocd/commands/cert.go 0.00% 17 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##             master   #20547   +/-   ##
=========================================
  Coverage          ?   55.18%           
=========================================
  Files             ?      324           
  Lines             ?    55101           
  Branches          ?        0           
=========================================
  Hits              ?    30409           
  Misses            ?    22083           
  Partials          ?     2609           

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

}
} else {
fmt.Println("No certificates were removed (none matched the given patterns)")
fmt.Printf("The command to to remove all certificates for '%s' was cancelled.\n", hostNamePattern)
Copy link
Member

Choose a reason for hiding this comment

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

nit:

Suggested change
fmt.Printf("The command to to remove all certificates for '%s' was cancelled.\n", hostNamePattern)
fmt.Printf("The command to remove all certificates for '%s' was cancelled.\n", hostNamePattern)

fmt.Printf("Removed cert for '%s' of type '%s' (subtype '%s')\n", cert.ServerName, cert.CertType, cert.CertSubType)
}
} else {
fmt.Println("No certificates were removed (none matched the given patterns)")
Copy link
Member

Choose a reason for hiding this comment

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

nit: patterns -> pattern

@ishitasequeira ishitasequeira enabled auto-merge (squash) October 28, 2024 11:58
@ishitasequeira ishitasequeira merged commit 29d5229 into argoproj:master Oct 28, 2024
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.

2 participants