feat: expose scheduler-k3s autoscaling-auth state for read-back

Align autoscaling-auth:report with annotations and labels reporting so export tools can recover configured trigger auth via flat JSON keys and info flags, while stdout stays secret-safe unless --include-metadata is used.

Closes #8800
This commit is contained in:
Jose Diaz-Gonzalez committed 2026-07-07 18:07:39 -04:00
1 parent 25b1356435
commit b2c4f61387
10 files changed
+605 -37

No files matched your search

+3 -3
View File
@@ -108,7 +108,7 @@ func CommandAutoscalingAuthSet(appName string, trigger string, metadata map[stri
}
// CommandAutoscalingAuthReport displays a scheduler-k3s autoscaling keda trigger authentication report for one or more apps
func CommandAutoscalingAuthReport(appName string, format string, includeMetadata bool) error {
func CommandAutoscalingAuthReport(appName string, format string, includeMetadata bool, infoFlag string) error {
if len(appName) == 0 {
apps, err := common.DokkuApps()
if err != nil {
@@ -119,14 +119,14 @@ func CommandAutoscalingAuthReport(appName string, format string, includeMetadata
return err
}
for _, app := range apps {
if err := ReportAutoscalingAuthSingleApp(app, format, includeMetadata); err != nil {
if err := ReportAutoscalingAuthSingleApp(app, format, includeMetadata, infoFlag); err != nil {
return err
}
}
return nil
}
return ReportAutoscalingAuthSingleApp(appName, format, includeMetadata)
return ReportAutoscalingAuthSingleApp(appName, format, includeMetadata, infoFlag)
}
// CommandAnnotationsReport displays a scheduler-k3s annotations report for one or more apps