kubernetes

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2023 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EKS_ANNOTATION_KEY = "eks.amazonaws.com/role-arn"
)
View Source
var HelmChartKind = "helm_chart"

Functions

func GenerateEnvVarKeyValue

func GenerateEnvVarKeyValue(key string) (k string, v string)

func GenerateImagePlaceholder

func GenerateImagePlaceholder(unit string) string

func GenerateRoleArnPlaceholder

func GenerateRoleArnPlaceholder(unit string) string

func GenerateTargetGroupBindingPlaceholder

func GenerateTargetGroupBindingPlaceholder(unit string) string

Types

type DeploymentManifestData

type DeploymentManifestData struct {
	ExecUnitName       string
	FargateEnabled     string
	ReplicaCount       string
	ServiceAccountName string
	Image              string
	Namespace          string
}

type HelmExecUnit

type HelmExecUnit struct {
	Name               string
	Namespace          string
	Service            *core.SourceFile
	Deployment         *core.SourceFile
	Pod                *core.SourceFile
	ServiceAccount     *core.SourceFile
	TargetGroupBinding *core.SourceFile
	ServiceExport      *core.SourceFile
}

type KlothoHelmChart

type KlothoHelmChart struct {
	Name           string
	ValuesFiles    []string
	ExecutionUnits []*HelmExecUnit
	Directory      string
	Files          []core.File
	Values         []Value
}

func (*KlothoHelmChart) AssignFilesToUnits

func (t *KlothoHelmChart) AssignFilesToUnits() error

func (*KlothoHelmChart) Key

func (t *KlothoHelmChart) Key() core.ResourceKey

func (*KlothoHelmChart) OutputTo

func (t *KlothoHelmChart) OutputTo(dest string) error

func (*KlothoHelmChart) Type

func (*KlothoHelmChart) Type() string

type Kubernetes

type Kubernetes struct {
	Config *config.Application
	// contains filtered or unexported fields
}

func (Kubernetes) Name

func (p Kubernetes) Name() string

func (Kubernetes) Transform

func (p Kubernetes) Transform(result *core.CompilationResult, deps *core.Dependencies) error

type PersistEnvVars

type PersistEnvVars string

type ProviderValueTypes

type ProviderValueTypes string
const (
	TargetGroupTransformation              ProviderValueTypes = "target_group"
	ImageTransformation                    ProviderValueTypes = "image"
	EnvironmentVariableTransformation      ProviderValueTypes = "env_var"
	ServiceAccountAnnotationTransformation ProviderValueTypes = "service_account_annotation"
)

type ServiceAccountManifestData

type ServiceAccountManifestData struct {
	ExecUnitName string
	Namespace    string
}

type ServiceExportManifestData

type ServiceExportManifestData struct {
	ServiceName string
	Namespace   string
}

type ServiceManifestData

type ServiceManifestData struct {
	ExecUnitName string
	Namespace    string
}

type TargetGroupBindingManifestData

type TargetGroupBindingManifestData struct {
	ServiceName string
}

type Value

type Value struct {
	ExecUnitName        string                   // ExecUnitName signifies the exec unit that this value is for
	Kind                string                   // Kind is the kind of the kubernetes object this value is applied to
	Type                string                   // Type is the type of value expected
	Key                 string                   // Key is the key to be used in helms values.yaml file or cli
	EnvironmentVariable core.EnvironmentVariable //EnvironmentVariable provides information around what environment variable is needed for substitution
}

Values specifies the values that exist in the generated helm chart, which are necessary to provide during installation to run on the provider

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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