Skip to content
Snippets Groups Projects
Unverified Commit 04faba95 authored by Stefan Prodan's avatar Stefan Prodan
Browse files

Add DO NOT EDIT warn to bootstrap sync manifests

parent f712dada
No related branches found
No related tags found
No related merge requests found
......@@ -24,6 +24,8 @@ import (
securejoin "github.com/cyphar/filepath-securejoin"
)
const GenWarning = "# This manifest was generated by flux bootstrap. DO NOT EDIT."
// Manifest holds the data of a multi-doc YAML
type Manifest struct {
// Relative path to the YAML file
......
......@@ -107,7 +107,7 @@ func Generate(options Options) (*manifestgen.Manifest, error) {
return &manifestgen.Manifest{
Path: path.Join(options.TargetPath, options.Namespace, options.ManifestFile),
Content: fmt.Sprintf("---\n%s---\n%s", resourceToString(gitData), resourceToString(ksData)),
Content: fmt.Sprintf("%s\n---\n%s---\n%s", manifestgen.GenWarning, resourceToString(gitData), resourceToString(ksData)),
}, nil
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment