generator

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2018 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderDeployCrdFiles added in v0.0.7

func RenderDeployCrdFiles(deployPath, apiVersion, kind string) error

func RenderOlmCatalog added in v0.0.6

func RenderOlmCatalog(c *Config, image, version string) error

RenderOlmCatalog generates catalog manifests "deploy/olm-catalog/*" The current working directory must be the project repository root

func RenderTestYaml added in v0.0.7

func RenderTestYaml(c *Config, image string) error

func RenderTestingContainerFiles added in v0.0.7

func RenderTestingContainerFiles(buildDir, projectName string) error

Types

type Config

type Config struct {
	// APIVersion is the kubernetes apiVersion that has the format of $GROUP_NAME/$VERSION.
	APIVersion string `yaml:"apiVersion"`
	// Kind is the kubernetes resource kind.
	Kind string `yaml:"kind"`
	// ProjectName is name of the new operator application
	// and is also the name of the base directory.
	ProjectName string `yaml:"projectName"`
}

type Generator

type Generator struct {
	// contains filtered or unexported fields
}

func NewGenerator

func NewGenerator(apiVersion, kind, operatorType, projectName, repoPath string, generatePlaybook bool) *Generator

NewGenerator creates a new scaffold Generator.

func (*Generator) Render

func (g *Generator) Render() error

Jump to

Keyboard shortcuts

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