manifest

package
Version: v0.0.0-...-6c2d9fc Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2017 License: Apache-2.0 Imports: 7 Imported by: 3

Documentation

Overview

Package manifest provides tools for working with Kubernetes manifests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Files

func Files(chartDir string) ([]string, error)

Files gets a list of all manifest files inside of a chart.

chartDir should contain the path to a chart (the directory which holds a Chart.yaml file).

This returns an error if it can't access the directory.

func IsKeeper

func IsKeeper(data []byte) bool

IsKeeper returns true if a manifest has a "helm-keep": "true" annotation.

Types

type Manifest

type Manifest struct {
	Version, Kind, Name string
	// Filename of source, "" if no file
	Source          string
	VersionedObject *codec.Object
}

Manifest represents a Kubernetes manifest object.

func Parse

func Parse(filename string) ([]*Manifest, error)

Parse takes a filename, loads the file, and parses it into one or more *Manifest objects.

func ParseDir

func ParseDir(chartDir string) ([]*Manifest, error)

ParseDir parses all of the manifests inside of a chart directory.

The directory should be the Chart directory (contains Chart.yaml and manifests/)

This will return an error if the directory does not exist, or if there is an error parsing or decoding any yaml files.

Source Files

Jump to

Keyboard shortcuts

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