You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit aa07b30
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: README.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -134,6 +134,9 @@ What upgrade does:
134
134
- Otherwise: prepends `include Makefile-common` to the first line so your existing targets are preserved
135
135
- Prints a deprecation warning if `values-global.yaml` still uses `main.clusterGroupName`, which the Validated Patterns operator deprecated in favor of `main.variant` in version 0.0.78 (`upgrade` does not modify the file; run `patternizer init` to migrate automatically)
136
136
- Prints a deprecation warning if the pattern does not use the [variants folder structure](https://validatedpatterns.io/blog/2026-08-04-variants-folder-structure/) (introduced in operator version 0.0.78) — that is, if `variants/<variant>/values-<variant>.yaml` is missing for the configured variant (`upgrade` does not move any files; run `patternizer init` to migrate automatically)
137
+
- Prints a warning if `global.singleArgoCD` is not set in `values-global.yaml`, recommending you set `global.singleArgoCD: true` if possible (see the [single ArgoCD instance](https://validatedpatterns.io/blog/2026-06-04-single-argocd-option/) blog post)
138
+
139
+
These warnings are written to stderr, grouped after the success message, so they stand out as a call to action.
returnfmt.Errorf("error checking for variants folder structure: %w", err)
99
+
returnnil, fmt.Errorf("error checking for variants folder structure: %w", err)
86
100
}
87
101
iffolderMissing {
88
-
fmt.Printf("Warning: this pattern does not use the variants folder structure (variants/%s/values-%s.yaml not found).\n", variant, variant)
89
-
fmt.Println("The Validated Patterns operator introduced the variants folder structure in version 0.0.78.")
90
-
fmt.Println("See https://validatedpatterns.io/blog/2026-08-04-variants-folder-structure/ for migration guidance.")
102
+
warnings=append(warnings, fmt.Sprintf("WARNING: not using the variants folder structure (variants/%s/values-%s.yaml not found; operator 0.0.78). See https://validatedpatterns.io/blog/2026-08-04-variants-folder-structure/", variant, variant))
91
103
}
92
104
93
-
fmt.Printf("Successfully upgraded pattern repository in %s\n", repoRoot)
returnnil, fmt.Errorf("error checking for singleArgoCD: %w", err)
108
+
}
109
+
ifmissingSingleArgoCD {
110
+
warnings=append(warnings, "WARNING: 'global.singleArgoCD' is not set. Set 'global.singleArgoCD: true' if possible. See https://validatedpatterns.io/blog/2026-06-04-single-argocd-option/")
111
+
}
112
+
113
+
returnwarnings, nil
114
+
}
115
+
116
+
// emitUpgradeWarnings prints deprecation warnings to stderr as a grouped block, separated
117
+
// from the normal stdout logs so they stand out as a call to action.
0 commit comments