Documentation
¶
Index ¶
- type FlagTree
- type HelmValuesFromCobraFlags
- func (ctl *HelmValuesFromCobraFlags) AddCobraFlagsToCommand(cmd *cobra.Command, master bool)
- func (ctl *HelmValuesFromCobraFlags) AddHelmValueByCobraFlag(f *pflag.Flag)
- 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{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FlagTree ¶
type FlagTree struct { Version string `json:"version"` ClusterDomain string `json:"clusterDomain"` // Storage PGStorageClass string `json:"pgStorageClass"` PGSize string `json:"pgSize"` PGExistingClaim string `json:"pgExistingClaim"` MinioStorageClass string `json:"minioStorageClass"` MinioSize string `json:"minioSize"` MinioExistingClaim string `json:"minioExistingClaim"` RabbitMQStorageClass string `json:"rabbitmqStorageClass"` RabbitMQSize string `json:"rabbitmqSize"` RabbitMQExistingClaim string `json:"rabbitmqExistingClaim"` // Licensing LicensingUsername string `json:"licensingUsername"` LicensingPassword string `json:"licensingPassword"` LicensingUpstream string `json:"licensingUpstream"` // Web frontend configuration SessionCookieAge int `json:"sessionCookieAge"` FrontendReplicas int `json:"frontendReplicas"` HideLicenses bool `json:"hideLicenses"` OfflineMode bool `json:"offlineMode"` AdminEmail string `json:"adminEmail"` ErrorAdminEmail string `json:"errorAdminEmail"` RootURL string `json:"rootURL"` // SMTP configuration EmailEnabled bool `json:"emailEnabled"` EmailSMTPHost string `json:"emailSMTPHost"` EmailSMTPPort int `json:"emailSMTPPort"` EmailSMTPUser string `json:"emailSMTPUser"` EmailSMTPPassword string `json:"emailSMTPPassword"` EmailFrom string `json:"emailFrom"` EmailSecurity string `json:"emailSecurity"` EmailVerify bool `json:"emailVerify"` // LDAP Authentication LDAPEnabled bool `json:"ldapEnabled"` LDAPServerURI string `json:"ldapServerURI"` LDAPUserDNTemplate string `json:"ldapUserDNTemplate"` LDAPBindAsAuthenticating bool `json:"ldapBindAsAuthenticating"` LDAPBindDN string `json:"ldapBindDN"` LDAPBindPassword string `json:"ldapBindPassword"` LDAPStartTLS bool `json:"ldapStartTLS"` LDAPVerify bool `json:"ldapVerify"` LDAPRootCASecret string `json:"ldapRootCASecret"` LDAPRequireGroup string `json:"ldapRequireGroup"` LDAPUserSearch string `json:"ldapUserSearch"` LDAPUserSearchScope string `json:"ldapUserSearchScope"` LDAPGroupSearch string `json:"ldapGroupSearch"` LDAPGroupSearchScope string `json:"ldapGroupSearchScope"` LDAPNestedSearch bool `json:"ldapNestedSearch"` // Logging DisableFrontendLogging bool `json:"disableFrontendLogging"` DisableWorkerLogging bool `json:"disableWorkerLogging"` // Worker scaling WorkerReplicas int `json:"workerReplicas"` WorkerConcurrency int `json:"workerConcurrency"` // TODO: Patcher // Networking and security RootCASecret string `json:"rootCASecret"` HTTPProxy string `json:"httpProxy"` HTTPNoProxy string `json:"httpNoProxy"` // Minio MinioMode string `json:"minioMode"` // Ingress IngressEnabled bool `json:"ingressEnabled"` IngressHost string `json:"ingressHost"` IngressTLSEnabled bool `json:"ingressTLSEnabled"` IngressTLSSecretName string `json:"ingressTLSSecretName"` // External PostgreSQL ExternalPG bool `json:"ExternalPg"` ExternalPGHost string `json:"ExternalPgHost"` ExternalPGPort int `json:"ExternalPgPort"` ExternalPGUser string `json:"ExternalPgUser"` ExternalPGPassword string `json:"ExternalPgPassword"` ExternalPGDataBase string `json:"ExternalPgDataBase"` ExternalPGSSLMode string `json:"ExternalPgSSLMode"` ExternalPGRootCASecret string `json:"ExternalPgRootCASecret"` ExternalPGClientSecret string `json:"ExternalPgClientSecret"` // Secrets PGPassword string `json:"pgPassword"` PGExistingSecret string `json:"pgExistingSecret"` }
FlagTree is a set of fields needed to configure the BDBA 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 BDBA 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