chart

package
v0.10.4 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type V9Cockroach

type V9Cockroach struct {
	Enable       *bool `yaml:"enable"`
	Certificates *struct {
		Production *string `yaml:"production"`
		Staging    *string `yaml:"staging"`
	} `yaml:"certificates"`
}

V9Cockroach represents the configuration for cockroach in a values file.

type V9ExtraJobs

type V9ExtraJobs struct {
	Name     *string           `yaml:"name"`
	Command  []string          `yaml:"command"`
	EnvVars  map[string]string `yaml:"envVars"`
	Schedule *string           `yaml:"schedule"`
	Image    *struct {
		Repository string `yaml:"repository"`
		Tag        string `yaml:"tag"`
	} `yaml:"certificates"`
	EnableDB      *bool   `yaml:"enableDB"`
	RestartPolicy *string `yaml:"restartPolicy"`
}

V9ExtraJobs represents extra jobs for the chart.

type V9File

type V9File struct {
	ChartVersion *string `yaml:"chartVersion"`

	ServiceLocation  *string `yaml:"serviceLocation"`
	ServiceNamespace *string `yaml:"serviceNamespace"`
	ServiceImage     *string `yaml:"serviceImage"`
	ServiceImageTag  *string `yaml:"serviceImageTag"`
	ServiceName      *string `yaml:"serviceName"`
	ServiceType      *string `yaml:"serviceType"`
	ServiceScope     *string `yaml:"serviceScope"`
	ServiceVersion   *string `yaml:"serviceVersion"`

	CIEnvironmentSlug     *string `yaml:"ciEnvironmentSlug"`
	CIPipelineID          *string `yaml:"ciPipelineId"`
	CIBuildID             *string `yaml:"ciBuildId"`
	CIEnvironmentHostname *string `yaml:"ciEnvironmentHostname"`

	LocalRedis  *int    `yaml:"localRedis"`
	MemoryStore *string `yaml:"memoryStore"`

	PrivateRegistryKey       *string                   `yaml:"privateRegistryKey"`
	Replicas                 *int                      `yaml:"replicas"`
	ProjectID                *string                   `yaml:"projectId"`
	PullPolicy               *string                   `yaml:"pullPolicy"`
	ProjectZone              *string                   `yaml:"projectZone"`
	DevelopmentVolumeMapping *int                      `yaml:"developmentVolumeMapping"`
	ServiceIngress           *int                      `yaml:"serviceIngress"`
	ServiceGrpcIngress       *int                      `yaml:"serviceGrpcIngress"`
	ServiceEnvironment       *string                   `yaml:"serviceEnvironment"`
	ClusterEnvironment       *string                   `yaml:"clusterEnvironment"`
	ServiceBranch            *string                   `yaml:"serviceBranch"`
	TLSKey                   *string                   `yaml:"tlsKey"`
	TLSCert                  *string                   `yaml:"tlsCert"`
	EnvVars                  map[string]string         `yaml:"envVars"`
	SecretEnvVars            map[string]V9SecretEnvVar `yaml:"secretEnvVars"`
	SetupJob                 *int                      `yaml:"setupJob"`
	SetupJobTimeout          *int                      `yaml:"setupJobTimeout"`
	JWTPublicURL             *string                   `yaml:"jwtPublicURL"`
	ExtraJobs                []V9ExtraJobs             `yaml:"extraJobs"`
	CockroachDB              *V9Cockroach              `yaml:"cockroachdb"`
}

V9File represents the file structure of a standard chart values file.

func ReadV9File

func ReadV9File(filename string) (V9File, error)

ReadV9File loads a version file from disk.

func (V9File) WriteTo

func (f V9File) WriteTo(out io.Writer) (int64, error)

WriteTo provides a method for writing the V9File to a template.

type V9SecretEnvVar

type V9SecretEnvVar struct {
	Name       *string `yaml:"name"`
	SecretName *string `yaml:"secretName"`
	Key        *string `yaml:"key"`
}

V9SecretEnvVar represents the key for environment variables derived from secrets.

type Version

type Version int

Version represents the value type for the chart version enum.

const (
	// V01 is the previous chart version for developing on the backend-specific infrastructure.
	V01 Version = iota
	// V9 is the latest chart version for developing on the backend-specific infrastructure.
	V9
	// VUnknown is an unknown chart version type.
	VUnknown
)

type VersionFile

type VersionFile struct {
	ChartVersion string `yaml:"chartVersion"`
}

VersionFile represents the file structure of a chart file only with version.

func ReadVersionFile

func ReadVersionFile(filename string) (VersionFile, error)

ReadVersionFile loads a version file from disk.

func (VersionFile) Version

func (f VersionFile) Version() Version

Version returns the correct version to be using.

Directories

Path Synopsis
Package templates provide templates for generating helm values files.
Package templates provide templates for generating helm values files.

Jump to

Keyboard shortcuts

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