Help us shape the future of Go! Take the 2026 Go Developer Survey

utils

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2022 License: EPL-1.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigureServiceability

func ConfigureServiceability(pts *corev1.PodTemplateSpec, la *openlibertyv1beta2.OpenLibertyApplication)

ConfigureServiceability setups the shared-storage for serviceability

func Contains

func Contains(list []string, s string) bool

func CreateServiceabilityPVC

func CreateServiceabilityPVC(instance *openlibertyv1beta2.OpenLibertyApplication) *corev1.PersistentVolumeClaim

CreateServiceabilityPVC creates PersistentVolumeClaim for Serviceability

func CustomizeEnvSSO

func CustomizeEnvSSO(pts *corev1.PodTemplateSpec, instance *openlibertyv1beta2.OpenLibertyApplication, client client.Client, isOpenShift bool) error

CustomizeEnvSSO Process the configuration for SSO login providers

func CustomizeLibertyEnv

func CustomizeLibertyEnv(pts *corev1.PodTemplateSpec, la *openlibertyv1beta2.OpenLibertyApplication, client client.Client) error

CustomizeLibertyEnv adds configured env variables appending configured liberty settings

func ExecuteCommandInContainer

func ExecuteCommandInContainer(config *rest.Config, podName, podNamespace, containerName string, command []string) (string, error)

ExecuteCommandInContainer Execute command inside a container in a pod through API

func RegisterWithOidcProvider

func RegisterWithOidcProvider(regData RegisterData) (string, string, error)

func Remove

func Remove(list []string, s string) []string

func Validate

Validate if the OpenLibertyApplication is valid

Types

type RegisterData

type RegisterData struct {
	DiscoveryURL            string
	RouteURL                string
	RedirectToRPHostAndPort string
	ProviderId              string
	Scopes                  string
	GrantTypes              string
	InitialAccessToken      string
	InitialClientId         string
	InitialClientSecret     string
	RegistrationURL         string
	InsecureTLS             bool
}

Jump to

Keyboard shortcuts

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