polarisreporting

package
v0.0.0-...-5d42de7 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPolarisReportingSecrets

func GetPolarisReportingSecrets(namespace, GCPServiceAccount string) (map[string]runtime.Object, error)

GetPolarisReportingSecrets returns the image pull secret for Polaris Reporting TODO: Refactor the Polaris code to use the same functions as Polaris-Reporting (this has less secrets and the secrets have different names)

Types

type FlagTree

type FlagTree struct {
	Version                  string
	FQDN                     string
	GCPServiceAccount        string
	IngressClass             string
	StorageClass             string
	ReportStorageSize        string
	EventstoreSize           string
	PostgresInternal         string
	PostgresHost             string
	PostgresPort             int
	PostgresUsername         string
	PostgresPassword         string
	PostgresSize             string
	PostgresSSLMode          string
	SMTPHost                 string
	SMTPPort                 int
	SMTPUsername             string
	SMTPPassword             string
	SMTPSenderEmail          string
	SMTPTlsMode              string
	SMTPTlsIgnoreInvalidCert string
	SMTPTlsTrustedHosts      string
}

FlagTree is a set of fields needed to configure the Polaris Reporting Helm Chart

type HelmValuesFromCobraFlags

type HelmValuesFromCobraFlags struct {
	// contains filtered or unexported fields
}

HelmValuesFromCobraFlags is a type for converting synopsysctl flags to Helm Chart fields and values args: map of helm chart field to value

func NewHelmValuesFromCobraFlags

func NewHelmValuesFromCobraFlags() *HelmValuesFromCobraFlags

NewHelmValuesFromCobraFlags returns an initialized HelmValuesFromCobraFlags

func (*HelmValuesFromCobraFlags) AddCobraFlagsToCommand

func (ctl *HelmValuesFromCobraFlags) AddCobraFlagsToCommand(cmd *cobra.Command, master bool)

AddCobraFlagsToCommand adds flags for the Polaris-Reporting helm chart to the cmd master=true is used to add all flags for creating an instance master=false is used to add a subset of flags for updating an instance

func (*HelmValuesFromCobraFlags) AddHelmValueByCobraFlag

func (ctl *HelmValuesFromCobraFlags) AddHelmValueByCobraFlag(f *pflag.Flag)

AddHelmValueByCobraFlag adds the helm chart field and value based on the flag set in synopsysctl

func (*HelmValuesFromCobraFlags) CheckValuesFromFlags

func (ctl *HelmValuesFromCobraFlags) CheckValuesFromFlags(flagset *pflag.FlagSet) error

CheckValuesFromFlags returns an error if a value set by a flag is invalid

func (*HelmValuesFromCobraFlags) GenerateHelmFlagsFromCobraFlags

func (ctl *HelmValuesFromCobraFlags) GenerateHelmFlagsFromCobraFlags(flagset *pflag.FlagSet) (map[string]interface{}, error)

GenerateHelmFlagsFromCobraFlags checks each flag in synopsysctl and updates the map to contain the corresponding helm chart field and value

func (*HelmValuesFromCobraFlags) GetArgs

func (ctl *HelmValuesFromCobraFlags) GetArgs() map[string]interface{}

GetArgs returns the map of helm chart fields to values

func (*HelmValuesFromCobraFlags) SetArgs

func (ctl *HelmValuesFromCobraFlags) SetArgs(args map[string]interface{})

SetArgs set the map to values

type PostgresSSLMode

type PostgresSSLMode string
const (
	PostgresSSLModeDisable PostgresSSLMode = "disable"
	//PostgresSSLModeAllow   PostgresSSLMode = "allow"
	// Not supported???
	//PostgresSSLModePrefer  PostgresSSLMode = "prefer"
	PostgresSSLModeRequire PostgresSSLMode = "require"
)

type SMTPTLSMode

type SMTPTLSMode string
const (
	SMTPTLSModeDisable         SMTPTLSMode = "disable"
	SMTPTLSModeTryStartTLS     SMTPTLSMode = "try-starttls"
	SMTPTLSModeRequireStartTLS SMTPTLSMode = "require-starttls"
	SMTPTLSModeRequireTLS      SMTPTLSMode = "require-tls"
)

Jump to

Keyboard shortcuts

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