pkg

package
v0.0.0-...-9322a89 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2020 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ChartfileName is the default Chart file name.
	ChartfileName = "Chart.yaml"
	// ValuesfileName is the default values file name.
	ValuesfileName = "values.yaml"
	// TemplatesDir is the relative directory name for templates.
	TemplatesDir = "templates"
	// HelpersName is the name of the example NOTES.txt file.
	HelpersName = "_helpers.tpl"
)
View Source
const (
	ClusterName                    = "clusterName"
	GenerateName                   = "generateName"
	Namespace                      = "namespace"
	HostName                       = "hostName"
	Subdomain                      = "subdomain"
	Nodename                       = "nodeName"
	ServiceAccountName             = "serviceAccountName"
	Enabled                        = "enabled"
	Path                           = "path"
	EndpointsName                  = "endpointsName"
	VolumeID                       = "volumeID"
	Repository                     = "repository"
	Revision                       = "revision"
	Server                         = "Server"
	TargetPortal                   = "targetPortal"
	FSType                         = "fsType"
	Directory                      = "directory"
	User                           = "user"
	DiskName                       = "diskName"
	DataDiskURI                    = "dataDiskURI"
	VolumePath                     = "volumePath"
	ImagePullPolicy                = "imagePullPolicy"
	PDName                         = "pdName"
	IQN                            = "IQN"
	ISCSIInterface                 = "ISCSIInterface"
	Image                          = "image"
	ImageTag                       = "imageTag"
	ClusterIP                      = "clusterIP"
	ExternalName                   = "externalName"
	LoadBalancer                   = "loadBalancer"
	VolumeName                     = "volumeName"
	AccessMode                     = "accessMode"
	ServiceType                    = "serviceType"
	SessionAffinity                = "sessionAffinity"
	SecretName                     = "secretName"
	ShareName                      = "shareName"
	DatasetName                    = "datasetName"
	SecretFile                     = "secretFile"
	Group                          = "group"
	Volume                         = "volume"
	Registry                       = "registry"
	Keyring                        = "keyring"
	RadosUser                      = "radosUser"
	RBDImage                       = "RBDImage"
	RBDPool                        = "RBDPool"
	Persistence                    = "persistence"
	DeploymentStrategy             = "deploymentStrategy"
	ServiceName                    = "serviceName"
	Type                           = "type"
	Provisioner                    = "provisioner"
	RestartPolicy                  = "restartPolicy"
	ReclaimPolicy                  = "reclaimPolicy"
	MinReplicas                    = "minReplicas"
	MaxReplicas                    = "maxReplicas"
	TargetCPUUtilizationPercentage = "targetCPUUtilizationPercentage"
)

Variables

View Source
var ChartObject map[string][]string
View Source
var PreserveName bool

Functions

func InterfaceToSlice

func InterfaceToSlice(slice interface{}) []interface{}

func ReadLocalFiles

func ReadLocalFiles(dirName string) []string

func SaveChartfile

func SaveChartfile(filename string, cf *chart.Metadata) error

func VolumeTemplateForElement

func VolumeTemplateForElement(volumeName string, element string) string

Types

type Generator

type Generator struct {
	Location  string
	ChartName string
	YamlFiles []string
}

func (Generator) Create

func (g Generator) Create() (string, error)

type KubeObjects

type KubeObjects struct {
	ConfigMaps               []string
	Deployments              []string
	Daemons                  []string
	Jobs                     []string
	PersistentVolumes        []string
	PersistentVolumeClaims   []string
	Pods                     []string
	ReplicaSets              []string
	ReplicationControllers   []string
	Secrets                  []string
	Services                 []string
	StatefulSets             []string
	StorageClasses           []string
	HorizontalPodAutoscalers []string
}

func (KubeObjects) CheckFlags

func (ko KubeObjects) CheckFlags() bool

func (KubeObjects) Extract

func (ko KubeObjects) Extract() []string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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