crd

package
v4.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2022 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Patch

type Patch func(crd *v1.CustomResourceDefinition)

type ReleaseAssetFileDefinition

type ReleaseAssetFileDefinition struct {
	Files    []string
	Owner    string
	Provider string
	Repo     string
	Version  string
}

type RemoteRepositoryDefinition

type RemoteRepositoryDefinition struct {
	Path      string // path to CRDs in repo, usually "config/crd"
	Owner     string // repo owner
	Provider  string // provider the CRD should be added to in helm charts
	Name      string // name of repo
	Reference string // tag or branch of repo to list files from
}

type Renderer

type Renderer struct {
	GithubClient *github.Client

	LocalCRDDirectory string
	OutputDirectory   string

	Patches map[string]Patch

	UpstreamAssets     []ReleaseAssetFileDefinition
	RemoteRepositories []RemoteRepositoryDefinition
}

func (Renderer) Render

func (r Renderer) Render(ctx context.Context, provider string) error

Render creates helm chart templates for the given provider by downloading upstream CRDs, merging them with local CRDs, patching them, and writing them to the corresponding provider helm template directory.

Jump to

Keyboard shortcuts

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