crd

package
v3.40.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Patch added in v3.27.0

type Patch func(crd *v1.CustomResourceDefinition)

type ReleaseAssetFileDefinition added in v3.27.0

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

type RemoteRepositoryDefinition added in v3.38.0

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 added in v3.27.0

type Renderer struct {
	GithubClient *github.Client

	LocalCRDDirectory string
	OutputDirectory   string

	Patches map[string]Patch

	UpstreamAssets     []ReleaseAssetFileDefinition
	RemoteRepositories []RemoteRepositoryDefinition
}

func (Renderer) Render added in v3.27.0

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