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
1. Creates the `extra-manifests` directory in the output directory
236
-
2. Extracts all the extra manifests using the `siteconfig-generator` binary into this directory
235
+
2. Extracts all the extra manifests into this directory
237
236
3. Creates a `kustomization-configMapGenerator-snippet.yaml` file which includes a kustomize `configMapGenerator` that will sync the extra manifests ConfigMap on the hub cluster.
238
237
239
238
The extra manifest ConfigMap is automatically added to the `extraManifestRefs` field of the `ClusterInstance`.
You can merge the generated kustomization file with your original one to generate the ConfigMap and the `ClusterInstance`.
266
265
267
-
**Requirements:**
268
-
- The `siteconfig-generator` binary must be available in your system PATH (available in the `ztp-site-generator` container)
269
-
270
266
For the complete directory structure and detailed workflow, refer to the [SiteConfig documentation](https://github.com/stolostron/siteconfig/blob/main/docs/argocd.md#generate-extra-manifests-configmap-using-kustomize).
"Use a ConfigMap which contains the already merged MachineConfigs and reference it through extraManifestsRefs instead.\n")
454
454
}
455
455
456
-
// Check for extraManifestOnly
457
456
ifcluster.ExtraManifestOnly {
458
-
warningsCollector.AddWarning("WARNING: extraManifestOnly field is not supported in ClusterInstance and will be ignored. \n")
457
+
warningsCollector.AddWarning("WARNING: extraManifestOnly field is not part of ClusterInstance spec. "+
458
+
"Extra manifests will be generated from this SiteConfig and included in the extraManifestsRefs ConfigMap, but the full ClusterInstance CR set will also be generated.\n")
459
459
}
460
460
461
-
// Check for extraManifests
462
-
if (cluster.ExtraManifests.SearchPaths!=nil&&len(*cluster.ExtraManifests.SearchPaths) >0) ||
0 commit comments