resources

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2021 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const LicensingProductID = "068a62892a1e4db39641342e592daa25"
View Source
const LicensingProductMetric = "FREE"
View Source
const LicensingProductName = "IBM Cloud Platform Common Services"

Important product values needed for annotations

View Source
const OcpCheckString = "ocp-check-secret"
View Source
const OcpPrometheusCheckString = "ocp-prometheus-check-secret"

Variables

View Source
var DefaultSecretMode int32 = 420
View Source
var FalseVar = false
View Source
var IsODLM = true
View Source
var IsRouteAPI = true
View Source
var IsServiceCAAPI = true
View Source
var IsUIEnabled = false
View Source
var RHMPEnabled = false
View Source
var Seconds60 int64 = 60
View Source
var TrueVar = true
View Source
var UIPlatformSecretName = "platform-oidc-credentials"

Functions

func AnnotateForService

func AnnotateForService(httpCertSource v1alpha1.HTTPSCertsSource, isHTTPS bool, certName string) map[string]string

func AnnotationsForPod

func AnnotationsForPod() map[string]string

func CompareConfigMap added in v1.6.0

func CompareConfigMap(cm1, cm2 *corev1.ConfigMap) bool

Returns true if configmaps are equal

func CompareRoutes added in v1.7.0

func CompareRoutes(reqLogger logr.Logger, expectedRoute, foundRoute *routev1.Route) bool

Returns true if routes are equal

func DeleteResource

func DeleteResource(reqLogger *logr.Logger, client c.Client, foundResource ResourceObject) (reconcile.Result, error)

func GetContainerBase

func GetContainerBase(container operatorv1alpha1.Container) corev1.Container

func GetLivenessProbe

func GetLivenessProbe(probeHandler corev1.Handler) *corev1.Probe

func GetOCPPrometheusSecretCheckScript

func GetOCPPrometheusSecretCheckScript() string

func GetOCPSecretCheckScript

func GetOCPSecretCheckScript() string

func GetReadinessProbe

func GetReadinessProbe(probeHandler corev1.Handler) *corev1.Probe

func GetSecretToken

func GetSecretToken(name string, namespace string, secretKey string, metaLabels map[string]string) (*corev1.Secret, error)

func GetSecurityContext

func GetSecurityContext() *corev1.SecurityContext

func GetVolume

func GetVolume(name string, secretName string) corev1.Volume

func RandString

func RandString(length int) (string, error)

func ShouldUpdateDeployment

func ShouldUpdateDeployment(
	reqLogger *logr.Logger,
	expectedSpec *corev1.PodTemplateSpec,
	foundSpec *corev1.PodTemplateSpec) bool

func UpdateCacheClusterExtensions

func UpdateCacheClusterExtensions(client c.Reader) error

func UpdateOwner

func UpdateOwner(reqLogger *logr.Logger, client c.Client, owner ResourceObject) (reconcile.Result, error)

func UpdateResource

func UpdateResource(reqLogger *logr.Logger, client c.Client,
	expectedResource ResourceObject, foundResource ResourceObject) (reconcile.Result, error)

func UpdateServiceIfNeeded

func UpdateServiceIfNeeded(reqLogger *logr.Logger, client c.Client, expectedService *corev1.Service, foundService *corev1.Service) (reconcile.Result, error)

func UpdateServiceMonitor

func UpdateServiceMonitor(reqLogger *logr.Logger, client c.Client, expected, found *monitoringv1.ServiceMonitor) (reconcile.Result, error)

Types

type ResourceObject

type ResourceObject interface {
	metav1.Object
	runtime.Object
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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