alert

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultFlagTree = FlagTree{
	Version:           globals.AlertVersion,
	Registry:          "docker.io/blackducksoftware",
	StandAlone:        "true",
	ExposeService:     util.NODEPORT,
	PersistentStorage: "true",
	Port:              8443,
}

DefaultFlagTree ... [Dev Note]: These should match the Helm Chart's Values.yaml

Functions

func CRUDServiceOrRoute

func CRUDServiceOrRoute(restConfig *rest.Config, kubeClient *kubernetes.Clientset, namespace string, customerAppName string, isExposedUI interface{}, exposedServiceType interface{}, isChanged bool) error

CRUDServiceOrRoute will create or update Alert exposed service, or route in case of OpenShift

func FlagWasSet

func FlagWasSet(flagset *pflag.FlagSet, flagName string) bool

FlagWasSet returns true if a flag was changed and it exists, otherwise it returns false

func GetAlertCustomCertificateSecret

func GetAlertCustomCertificateSecret(namespace, secretName, customCertificate, customCertificateKey string) corev1.Secret

GetAlertCustomCertificateSecret ...

func GetAlertJavaKeystoreSecret

func GetAlertJavaKeystoreSecret(namespace, secretName, javaKeystore string) corev1.Secret

GetAlertJavaKeystoreSecret ...

Types

type FlagTree

type FlagTree struct {
	Version                     string
	DeploymentResourcesFilePath string
	Registry                    string
	PullSecrets                 []string
	StandAlone                  string
	ExposeService               string
	EncryptionPassword          string
	EncryptionGlobalSalt        string
	CertificateFilePath         string
	CertificateKeyFilePath      string
	JavaKeyStoreFilePath        string
	Environs                    []string
	PersistentStorage           string
	PVCStorageClass             string
	PVCFilePath                 string
	SecurityContextFilePath     string
	Port                        int32
}

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-Reporting helm chart to the cmd

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 stored in the struct will not be able to be used in the AlertSpec

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

Directories

Path Synopsis
client
clientset/versioned
This package has the automatically generated clientset.
This package has the automatically generated clientset.
clientset/versioned/fake
This package has the automatically generated fake clientset.
This package has the automatically generated fake clientset.
clientset/versioned/scheme
This package contains the scheme of the automatically generated clientset.
This package contains the scheme of the automatically generated clientset.
clientset/versioned/typed/alert/v1
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
clientset/versioned/typed/alert/v1/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.

Jump to

Keyboard shortcuts

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