From 286d0e6afb900e80d25fd99d0e65569567732dd2 Mon Sep 17 00:00:00 2001 From: Pasha Sviderski Date: Fri, 6 Nov 2026 19:41:26 +1000 Subject: [PATCH] docs(caddy): update description for 'uc caddy cert ls' command --- cmd/uc/caddy/cert/ls.go | 10 +++++++--- website/docs/9-cli-reference/uc_caddy_cert_ls.md | 7 +++++-- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/cmd/uc/caddy/cert/ls.go b/cmd/uc/caddy/cert/ls.go index 33d460d4..98fdb13d 100644 --- a/cmd/uc/caddy/cert/ls.go +++ b/cmd/uc/caddy/cert/ls.go @@ -17,6 +17,7 @@ import ( "github.com/psviderski/uncloud/internal/cli" "github.com/psviderski/uncloud/internal/cli/completion" "github.com/psviderski/uncloud/internal/cli/tui" + "github.com/psviderski/uncloud/internal/version" "github.com/psviderski/uncloud/pkg/api" "github.com/psviderski/uncloud/pkg/client" "github.com/spf13/cobra" @@ -35,10 +36,13 @@ func NewListCommand() *cobra.Command { Short: "List certificates in cluster storage for Caddy.", Long: `List certificates stored in the Uncloud cluster storage for Caddy. -Caddy must use the Uncloud storage module (https://github.com/unlabs-dev/caddy-uncloud) -configured with 'storage uncloud' in the global options for its certificates to appear here. +Caddy uses cluster storage by default. Certificates don't appear here if Caddy uses local storage, +for example, if it runs with a custom global config without 'storage uncloud' or was deployed with +uc v0.21.0 or earlier and not upgraded. -This inventory does not check whether Caddy currently serves or trusts a certificate.`, +This inventory does not check whether Caddy currently serves or trusts a certificate. + +See ` + version.DocsURL + `/concepts/ingress/cluster-storage-for-caddy for details.`, Args: cobra.NoArgs, RunE: func(cmd *cobra.Command, _ []string) error { uncli := cmd.Context().Value("cli").(*cli.CLI) diff --git a/website/docs/9-cli-reference/uc_caddy_cert_ls.md b/website/docs/9-cli-reference/uc_caddy_cert_ls.md index 9238f824..52b8988c 100644 --- a/website/docs/9-cli-reference/uc_caddy_cert_ls.md +++ b/website/docs/9-cli-reference/uc_caddy_cert_ls.md @@ -6,11 +6,14 @@ List certificates in cluster storage for Caddy. List certificates stored in the Uncloud cluster storage for Caddy. -Caddy must use the Uncloud storage module (https://github.com/unlabs-dev/caddy-uncloud) -configured with 'storage uncloud' in the global options for its certificates to appear here. +Caddy uses cluster storage by default. Certificates don't appear here if Caddy uses local storage, +for example, if it runs with a custom global config without 'storage uncloud' or was deployed with +uc v0.21.0 or earlier and not upgraded. This inventory does not check whether Caddy currently serves or trusts a certificate. +See https://uncloud.run/docs/concepts/ingress/cluster-storage-for-caddy for details. + ``` uc caddy cert ls [flags] ```