 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- Constants
- Variables
- func AnnotateForService(httpCertSource v1alpha1.HTTPSCertsSource, isHTTPS bool, certName string) map[string]string
- func AnnotationsForPod() map[string]string
- func CompareConfigMap(cm1, cm2 *corev1.ConfigMap) bool
- func CompareRoutes(reqLogger logr.Logger, expectedRoute, foundRoute *routev1.Route) bool
- func Contains(s []corev1.LocalObjectReference, e corev1.LocalObjectReference) bool
- func DeleteResource(reqLogger *logr.Logger, client c.Client, foundResource ResourceObject) (reconcile.Result, error)
- func GetContainerBase(container operatorv1alpha1.Container) corev1.Container
- func GetLivenessProbe(probeHandler corev1.Handler) *corev1.Probe
- func GetOCPPrometheusSecretCheckScript() string
- func GetOCPSecretCheckScript() string
- func GetReadinessProbe(probeHandler corev1.Handler) *corev1.Probe
- func GetSecretToken(name string, namespace string, secretKey string, metaLabels map[string]string) (*corev1.Secret, error)
- func GetSecurityContext() *corev1.SecurityContext
- func GetVolume(name string, secretName string) corev1.Volume
- func ListsEqualsLikeSets(list1 []string, list2 []string) bool
- func RandString(length int) (string, error)
- func ShouldUpdateDeployment(reqLogger *logr.Logger, expectedSpec *corev1.PodTemplateSpec, ...) bool
- func UpdateCacheClusterExtensions(client c.Reader) error
- func UpdateOwner(reqLogger *logr.Logger, client c.Client, owner ResourceObject) (reconcile.Result, error)
- func UpdateResource(reqLogger *logr.Logger, client c.Client, expectedResource ResourceObject, ...) (reconcile.Result, error)
- func UpdateServiceIfNeeded(reqLogger *logr.Logger, client c.Client, expectedService *corev1.Service, ...) (reconcile.Result, error)
- func UpdateServiceMonitor(reqLogger *logr.Logger, client c.Client, ...) (reconcile.Result, error)
- type ResourceObject
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 PathType = networkingv1.PathTypeImplementationSpecific
    
      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 AnnotationsForPod ¶
func CompareConfigMap ¶ added in v1.6.0
Returns true if configmaps are equal
func CompareRoutes ¶ added in v1.7.0
Returns true if routes are equal
func Contains ¶
func Contains(s []corev1.LocalObjectReference, e corev1.LocalObjectReference) bool
func DeleteResource ¶
func GetContainerBase ¶
func GetContainerBase(container operatorv1alpha1.Container) corev1.Container
func GetOCPPrometheusSecretCheckScript ¶
func GetOCPPrometheusSecretCheckScript() string
func GetOCPSecretCheckScript ¶
func GetOCPSecretCheckScript() string
func GetSecretToken ¶
func GetSecurityContext ¶
func GetSecurityContext() *corev1.SecurityContext
func ListsEqualsLikeSets ¶ added in v1.10.0
we could use reflection to have this method for all types but for now strings would be enough
func RandString ¶
func ShouldUpdateDeployment ¶
func ShouldUpdateDeployment( reqLogger *logr.Logger, expectedSpec *corev1.PodTemplateSpec, foundSpec *corev1.PodTemplateSpec) bool
func UpdateOwner ¶
func UpdateResource ¶
func UpdateResource(reqLogger *logr.Logger, client c.Client, expectedResource ResourceObject, foundResource ResourceObject) (reconcile.Result, error)
func UpdateServiceIfNeeded ¶
func UpdateServiceMonitor ¶
func UpdateServiceMonitor(reqLogger *logr.Logger, client c.Client, expected, found *monitoringv1.ServiceMonitor) (reconcile.Result, error)
Types ¶
 Click to show internal directories. 
   Click to hide internal directories.