manifestgen

package
v0.5.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 6, 2021 License: Apache-2.0 Imports: 5 Imported by: 5

Documentation

Overview

Package manifestgen generates Kubernetes manifests for flux install and the Git source and Kustomization manifests for flux bootstrap.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manifest

type Manifest struct {
	// Relative path to the YAML file
	Path string
	// Content in YAML format
	Content string
}

Manifest holds the data of a multi-doc YAML

func (*Manifest) WriteFile

func (m *Manifest) WriteFile(rootDir string) (string, error)

WriteFile writes the YAML content to a file inside the the root path. If the file does not exist, WriteFile creates it with permissions perm, otherwise WriteFile overwrites the file, without changing permissions.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL