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] ```