Back to godoc.org

Package generators

v0.3.6
Latest Go to latest

The latest major version is .

Published: May 15, 2020 | License: Apache-2.0 | Module: sigs.k8s.io/cluster-api

Index

Variables

var ClusterAPIGitHubManifestsFormat = "https://github.com/kubernetes-sigs/cluster-api//config?ref=%s"

ClusterAPIGitHubManifestsFormat is a convenience string to get Cluster API manifests at an exact revision. Set ClusterAPI.KustomizePath = fmt.Sprintf(ClusterAPIGitHubManifestsFormat, <some git ref>).

var KubeadmBootstrapGitHubManifestsFormat = "https://github.com/kubernetes-sigs/cluster-api//bootstrap/kubeadm/config?ref=%s"

KubeadmBootstrapGitHubManifestsFormat is a convenience string to get Cluster API manifests at an exact revision. Set KubeadmBootstrap.KustomizePath = fmt.Sprintf(KubeadmBootstrapGitHubManifestsFormat, <some git ref>).

var KubeadmControlPlaneGitHubManifestsFormat = "https://github.com/kubernetes-sigs/cluster-api//controlplane/kubeadm/config?ref=%s"

KubeadmControlPlaneGitHubManifestsFormat is a convenience string to get Cluster API manifests at an exact revision. Set KubeadmControlPlane.KustomizePath = fmt.Sprintf(KubeadmControlPlaneGitHubManifestsFormat, <some git ref>).

type CertManager

type CertManager struct {
	// ReleaseVersion defines the release version. Must be set.
	ReleaseVersion string
}

Generator generates the components for cert manager.

func (*CertManager) GetName

func (g *CertManager) GetName() string

GetName returns the name of the components being generated.

func (*CertManager) Manifests

func (g *CertManager) Manifests(_ context.Context) ([]byte, error)

Manifests return the generated components and any error if there is one.

type ClusterAPI

type ClusterAPI struct {
	// KustomizePath is a URL, relative or absolute filesystem path to a kustomize file that generates Cluster API manifests.
	// KustomizePath takes precedence over Version.
	KustomizePath string
	// Version defines the release version. If GitRef is not set Version must be set and will not use kustomize
	Version string
}

Generator generates provider components for CAPI

func (*ClusterAPI) GetName

func (g *ClusterAPI) GetName() string

GetName returns the name of the components being generated.

func (*ClusterAPI) Manifests

func (g *ClusterAPI) Manifests(ctx context.Context) ([]byte, error)

Manifests return the generated components and any error if there is one.

type KubeadmBootstrap

type KubeadmBootstrap struct {
	// KustomizePath is a URL, relative or absolute filesystem path to a kustomize file that generates the Kubeadm Bootstrap manifests.
	// KustomizePath takes precedence over Version.
	KustomizePath string
	// Version defines the release version. If GitRef is not set Version must be set and will not use kustomize.
	Version string
}

KubeadmBootstrap generates provider components for the Kubeadm bootstrap provider.

func (*KubeadmBootstrap) GetName

func (g *KubeadmBootstrap) GetName() string

GetName returns the name of the components being generated.

func (*KubeadmBootstrap) Manifests

func (g *KubeadmBootstrap) Manifests(ctx context.Context) ([]byte, error)

Manifests return the generated components and any error if there is one.

type KubeadmControlPlane

type KubeadmControlPlane struct {
	// KustomizePath is a URL, relative or absolute filesystem path to a kustomize file that generates the Kubeadm Control Plane provider manifests.
	// KustomizePath takes precedence over Version.
	KustomizePath string
	// Version defines the release version. If GitRef is not set Version must be set and will not use kustomize.
	Version string
}

KubeadmControlPlane generates provider components for the Kubeadm Control Plane provider.

func (*KubeadmControlPlane) GetName

func (g *KubeadmControlPlane) GetName() string

GetName returns the name of the components being generated.

func (*KubeadmControlPlane) Manifests

func (g *KubeadmControlPlane) Manifests(ctx context.Context) ([]byte, error)

Manifests return the generated components and any error if there is one.

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier