Documentation
¶
Index ¶
- Constants
- Variables
- type FlagTree
- type HelmValuesFromCobraFlags
- func (ctl *HelmValuesFromCobraFlags) AddCobraFlagsToCommand(cmd *cobra.Command, isCreateCmd bool)
- func (ctl *HelmValuesFromCobraFlags) CheckValuesFromFlags(flagset *pflag.FlagSet) error
- func (ctl *HelmValuesFromCobraFlags) GenerateHelmFlagsFromCobraFlags(flagset *pflag.FlagSet) (map[string]interface{}, error)
- func (ctl *HelmValuesFromCobraFlags) GetArgs() map[string]interface{}
- func (ctl *HelmValuesFromCobraFlags) SetArgs(args map[string]interface{})
- type PostgresSSLMode
- type SMTPDetails
- type SMTPTLSMode
Constants ¶
const (
// EVENTSTORE_PV_SIZE eventstore PV size
EVENTSTORE_PV_SIZE = "50Gi"
// POSTGRES_PV_SIZE postgres PV size
POSTGRES_PV_SIZE = "50Gi"
// MONGODB_PV_SIZE mongo DB PV size
MONGODB_PV_SIZE = "5Gi"
// UPLOAD_SERVER_PV_SIZE upload server PV size
UPLOAD_SERVER_PV_SIZE = "10Gi"
// DOWNLOAD_SERVER_PV_SIZE download server PV size
DOWNLOAD_SERVER_PV_SIZE = "10Gi"
// REPORT_STORAGE_PV_SIZE report storage PV size
REPORT_STORAGE_PV_SIZE = "10Gi"
)
Variables ¶
var DefaultFlagTree = FlagTree{
Version: globals.PolarisVersion,
IngressClass: "nginx",
SMTPPort: 2525,
SMTPTlsMode: "require-starttls",
SMTPTlsTrustedHosts: "*",
SMTPTlsIgnoreInvalidCert: false,
PostgresInternal: false,
PostgresPort: 5432,
EventstoreSize: EVENTSTORE_PV_SIZE,
MongoDBSize: MONGODB_PV_SIZE,
DownloadServerSize: DOWNLOAD_SERVER_PV_SIZE,
UploadServerSize: UPLOAD_SERVER_PV_SIZE,
PostgresSize: POSTGRES_PV_SIZE,
EnableReporting: false,
ReportStorageSize: REPORT_STORAGE_PV_SIZE,
}
DefaultFlagTree ... [Dev Note]: These should match the Helm Chart's Values.yaml
Functions ¶
This section is empty.
Types ¶
type FlagTree ¶
type FlagTree struct {
Version string
EnvironmentName string
FQDN string
StorageClass string
GCPServiceAccountFilePath string
IngressClass string
PostgresHost string
PostgresPort int
PostgresUsername string
PostgresPassword string
PostgresSize string
PostgresSSLMode string
PostgresInternal bool
SMTPHost string
SMTPPort int
SMTPUsername string
SMTPPassword string
SMTPSenderEmail string
SMTPTlsMode string
SMTPTlsIgnoreInvalidCert bool
SMTPTlsTrustedHosts string
DownloadServerSize string
UploadServerSize string
EventstoreSize string
MongoDBSize string
ReportStorageSize string
EnableReporting bool
// contains filtered or unexported fields
}
FlagTree is a set of fields needed to configure the Polaris Reporting Helm Chart
func GetDefaultFlagTree ¶ added in v1.1.0
func GetDefaultFlagTree() *FlagTree
GetDefaultFlagTree ...
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, isCreateCmd bool)
AddCobraFlagsToCommand adds flags for the Polaris helm chart to the cmd The flags map to fields in the CRSpecBuilderFromCobraFlags struct.
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
type PostgresSSLMode ¶
type PostgresSSLMode string
PostgresSSLMode configures the Postgres SSL mode
const (
// PostgresSSLModeDisable denotes disabled postgres SSL mode
PostgresSSLModeDisable PostgresSSLMode = "disable"
// PostgresSSLModeRequire denotes require postgres SSL mode
PostgresSSLModeRequire PostgresSSLMode = "require"
)
type SMTPDetails ¶
type SMTPDetails struct {
Host string `json:"host"`
Port int `json:"port"`
Username string `json:"username,omitempty"`
Password string `json:"password,omitempty"`
SenderEmail string `json:"sender_email,omitempty"`
TLSMode SMTPTLSMode `json:"tlsMode"`
TLSCheckServerIdentity bool `json:"tlsCheckServerIdentity"`
TLSTrustedHosts string `json:"tlsTrustedHosts"`
}
SMTPDetails configures SMTP specifications
type SMTPTLSMode ¶
type SMTPTLSMode string
SMTPTLSMode configures the SMTP TLS mode
const (
// SMTPTLSModeDisable denotes disabled SMTP TLS mode
SMTPTLSModeDisable SMTPTLSMode = "disable"
// SMTPTLSModeTryStartTLS denotes try-starttls SMTP TLS mode
SMTPTLSModeTryStartTLS SMTPTLSMode = "try-starttls"
// SMTPTLSModeRequireStartTLS denotes require-starttls SMTP TLS mode
SMTPTLSModeRequireStartTLS SMTPTLSMode = "require-starttls"
// SMTPTLSModeRequireTLS denotes require-tls SMTP TLS mode
SMTPTLSModeRequireTLS SMTPTLSMode = "require-tls"
)