defaults

package
v0.0.0-...-d1d8335 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2023 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigMapsFromFile

func ConfigMapsFromFile(myDep *appsv1.Deployment, ns string, scheme *runtime.Scheme) (configMaps []corev1.ConfigMap)

ConfigMapsFromFile reads the files under the config folder and creates configmaps in the given namespace. It sets OwnerRef to operator deployment.

func ConfigureHostname

func ConfigureHostname(object *api.CustomObject, cr *api.KieApp, hostname string)

ConfigureHostname sets the HOSTNAME_HTTPS environment variable with the provided hostname IF not yet set AND SSO auth is configured AND SSO_CLIENT exists

func ConsolidateObjects

func ConsolidateObjects(env api.Environment, cr *api.KieApp) api.Environment

ConsolidateObjects construct all CustomObjects prior to creation

func ConstructObject

func ConstructObject(object api.CustomObject, appObject api.KieAppObject) api.CustomObject

ConstructObject returns an object after merging the environment object and the one defined in the CR

func GetEnvironment

func GetEnvironment(cr *api.KieApp, service kubernetes.PlatformService) (api.Environment, error)

GetEnvironment returns an Environment from merging the common config and the config related to the environment set in the KieApp definition

func GetImage

func GetImage(imageURL string) (image, imageTag, imageContext string)

GetImage ...

func GetMajorMinorMicro

func GetMajorMinorMicro(productVersion string) (major, minor, micro string)

GetMajorMinorMicro ...

func GetMinorImageVersion

func GetMinorImageVersion(productVersion string) string

GetMinorImageVersion ...

func GetProduct

func GetProduct(cr *api.KieApp) (product string)

GetProduct ...

func GetServerSet

func GetServerSet(cr *api.KieApp, requestedIndex int) (serverSet api.KieServerSet, kieName string)

GetServerSet retrieves to correct ServerSet for processing and the DeploymentName

func IsOcpCA

func IsOcpCA(cr *api.KieApp) bool

func Pbool

func Pbool(b bool) *bool

Pbool returns a pointer to a boolean

func Pint

func Pint(i int) *int

Pint returns a pointer to an integer

func Pint32

func Pint32(i int32) *int32

Pint32 returns a pointer to an integer

func SetDefaults

func SetDefaults(cr *api.KieApp)

SetDefaults set default values where not provided

func UseEmbeddedFiles

func UseEmbeddedFiles(service kubernetes.PlatformService) (opName string, depNameSpace string, useEmbedded bool)

UseEmbeddedFiles checks environment variables WATCH_NAMESPACE & OPERATOR_NAME

Types

This section is empty.

Jump to

Keyboard shortcuts

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