render

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2018 License: Apache-2.0 Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	// Kind is the TypeMeta.Kind for the OperatorConfig.
	Kind = "MachineAPIOperatorConfig"
	// APIVersion is the TypeMeta.APIVersion for the OperatorConfig.
	APIVersion = "v1"
)

Variables

This section is empty.

Functions

func Manifests

func Manifests(config *OperatorConfig, data []byte) ([]byte, error)

Manifests takes the config object that contains the templated value, and uses that to render the templated manifest. 'config' must be non-nil, 'data' is the rawdata of a manifest file.

func PopulateTemplate

func PopulateTemplate(config *OperatorConfig, path string) ([]byte, error)

PopulateTemplate takes the config object, and uses that to render the templated manifest

Types

type AWSConfig

type AWSConfig struct {
	ClusterName           string `json:"clusterName"`
	ClusterID             string `json:"clusterID"`
	Region                string `json:"region"`
	AvailabilityZone      string `json:"availabilityZone"`
	Image                 string `json:"image"`
	ReleaseChannel        string `json:"releaseChannel"`
	ContainerLinuxVersion string `json:"containerLinuxVersion"`
	Replicas              string `json:"replicas"`
	WithCreds             bool   `json:"withCreds"`
}

AWSConfig contains specific config for AWS

type Images

type Images struct {
	ClusterAPIControllerAWS              string `json:"clusterAPIControllerAWS"`
	ClusterAPIControllerOpenStack        string `json:"clusterAPIControllerOpenStack"`
	ClusterAPIControllerLibvirt          string `json:"clusterAPIControllerLibvirt"`
	ClusterAPIControllerManagerAWS       string `json:"clusterAPIControllerManagerAWS"`
	ClusterAPIControllerManagerOpenStack string `json:"clusterAPIControllerManagerOpenStack"`
	ClusterAPIControllerManagerLibvirt   string `json:"clusterAPIControllerManagerLibvirt"`
	ClusterAPIServer                     string `json:"clusterAPIServer"`
	Etcd                                 string `json:"Etcd"`
}

Images allows build systems to inject images for MAO components.

type LibvirtConfig

type LibvirtConfig struct {
	URI         string `json:"uri"`
	NetworkName string `json:"networkName"`
	IPRange     string `json:"ipRange"`
	ClusterName string `json:"clusterName"`
	Replicas    string `json:"replicas"`
}

LibvirtConfig contains specific config for Libvirt

type OpenStackConfig

type OpenStackConfig struct {
}

type OperatorConfig

type OperatorConfig struct {
	metav1.TypeMeta `json:",inline"`
	TargetNamespace string           `json:"targetNamespace"`
	APIServiceCA    string           `json:"apiServiceCA"`
	Provider        string           `json:"provider"`
	AWS             *AWSConfig       `json:"aws"`
	OpenStack       *OpenStackConfig `json:"openstack,omitempty"`
	Libvirt         *LibvirtConfig   `json:"libvirt"`
	Images          *Images          `json:"images"`
}

OperatorConfig contains configuration for MAO

Jump to

Keyboard shortcuts

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