Documentation ¶
Index ¶
- Constants
- func Compare(a, b []byte) bool
- func GetClient() client.Client
- func GetEnv(key, fallback string) string
- func GetOperatorIDAnnotation(obj metav1.Object) string
- func IsOpenShift() bool
- func OperatorID() string
- func Pbool(b bool) *bool
- func Pint(i int32) *int32
- func RemoveFileExtension(fileName string) string
- func RemoveKnownExtension(fileName, extension string) string
- func SetClient(client client.Client)
- func SetIsOpenShift(cfg *rest.Config)
- type ApplicationPropertiesBuilder
Constants ¶
View Source
const (
HttpScheme = "http"
)
Variables ¶
This section is empty.
Functions ¶
func GetClient ¶
GetClient default client created by the main operator's thread. It's safe to use since it's set when the operator main function runs.
func GetOperatorIDAnnotation ¶
GetOperatorIDAnnotation to safely get the operator id annotation value.
func IsOpenShift ¶
func IsOpenShift() bool
IsOpenShift is a global flag that can be safely called across reconciliation cycles, defined at the controller manager start.
func OperatorID ¶
func OperatorID() string
func RemoveFileExtension ¶
func RemoveKnownExtension ¶
func SetIsOpenShift ¶
SetIsOpenShift sets the global flag isOpenShift by the controller manager. We don't need to keep fetching the API every reconciliation cycle that we need to know about the platform.
Types ¶
type ApplicationPropertiesBuilder ¶
type ApplicationPropertiesBuilder interface { WithInitialProperties(initialProperties *properties.Properties) ApplicationPropertiesBuilder WithImmutableProperties(immutableProperties *properties.Properties) ApplicationPropertiesBuilder WithDefaultManagedProperties(defaultManagedProperties *properties.Properties) ApplicationPropertiesBuilder BuildAsString() string Build() *properties.Properties }
func NewApplicationPropertiesBuilder ¶
func NewApplicationPropertiesBuilder() ApplicationPropertiesBuilder
Click to show internal directories.
Click to hide internal directories.