Documentation ¶
Index ¶
- func ConfigMapsFromFile(myDep *appsv1.Deployment, ns string, scheme *runtime.Scheme) (configMaps []corev1.ConfigMap)
- func ConfigureHostname(object *api.CustomObject, cr *api.KieApp, hostname string)
- func ConsolidateObjects(env api.Environment, cr *api.KieApp) api.Environment
- func ConstructObject(object api.CustomObject, appObject api.KieAppObject) api.CustomObject
- func GetEnvironment(cr *api.KieApp, service kubernetes.PlatformService) (api.Environment, error)
- func GetImage(imageURL string) (image, imageTag, imageContext string)
- func GetMajorMinorMicro(productVersion string) (major, minor, micro string)
- func GetMinorImageVersion(productVersion string) string
- func GetProduct(cr *api.KieApp) (product string)
- func GetServerSet(cr *api.KieApp, requestedIndex int) (serverSet api.KieServerSet, kieName string)
- func IsOcpCA(cr *api.KieApp) bool
- func Pbool(b bool) *bool
- func Pint(i int) *int
- func Pint32(i int32) *int32
- func SetDefaults(cr *api.KieApp)
- func UseEmbeddedFiles(service kubernetes.PlatformService) (opName string, depNameSpace string, useEmbedded bool)
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 GetMajorMinorMicro ¶
GetMajorMinorMicro ...
func GetMinorImageVersion ¶
GetMinorImageVersion ...
func GetServerSet ¶
GetServerSet retrieves to correct ServerSet for processing and the DeploymentName
func SetDefaults ¶
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.