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 023d862
Browse filesBrowse the repository at this point in the historyBrowse files
- If no `Makefile` exists: copies the default `Makefile`
133
133
- If a `Makefile` exists and already contains `include Makefile-common` anywhere: leaves it unchanged
134
134
- Otherwise: prepends `include Makefile-common` to the first line so your existing targets are preserved
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
+
- 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.
135
140
136
141
### Understanding Secrets Management
137
142
@@ -148,7 +153,7 @@ For more details on how secrets work in the framework, see the [Secrets Manageme
148
153
Running `patternizer init` creates the following:
149
154
150
155
- `values-global.yaml`: Global pattern configuration.
- `variants/<variant>/values-<variant>.yaml`: Variant-specific (cluster group) values, using the [variants folder structure](https://validatedpatterns.io/blog/2026-08-04-variants-folder-structure/). A legacy root-level `values-<variant>.yaml` is migrated into this folder automatically.
152
157
- `pattern.sh`: A utility script for common pattern operations (`install`, `upgrade`, etc.).
153
158
- `Makefile`: A simple Makefile that includes `Makefile-common`.
154
159
- `Makefile-common`: The core Makefile with all pattern-related targets.
returnnil, fmt.Errorf("error checking for variants folder structure: %w", err)
100
+
}
101
+
iffolderMissing {
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))
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