manifestgen

package
v0.33.0 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2022 License: Apache-2.0 Imports: 4 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

View Source
const (
	PartOfLabelKey   = "app.kubernetes.io/part-of"
	PartOfLabelValue = "flux"
	InstanceLabelKey = "app.kubernetes.io/instance"
	VersionLabelKey  = "app.kubernetes.io/version"
)

These labels can be used to track down the namespace, custom resource definitions, deployments, services, network policies, service accounts, cluster roles and cluster role bindings belonging to Flux.

View Source
const GenWarning = "# This manifest was generated by flux. DO NOT EDIT."

Variables

This section is empty.

Functions

func MkdirTempAbs added in v0.30.2

func MkdirTempAbs(dir, pattern string) (string, error)

MkdirTempAbs creates a tmp dir and returns the absolute path to the dir. This is required since certain OSes like MacOS create temporary files in e.g. `/private/var`, to which `/var` is a symlink.

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